Slave node environment path is duplicated

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When running a slave with the path set in environment variables the (added) path is duplicated.

      Steps

      1. Created a slave to run on localhost by Java Web Start.
      2. Add node properties environment variables, name: Path value: $Path;X;Y;Z
      3. Run pipeline job that displays the path

      Expected

      To see the path ending with ;X;Y;Z

      Actual

      The path ends with :X;Y;Z;X;Y;Z

       

      pipeline {
          agent {
              label 'slave-1'
          }
          stages {
              stage('path') {
                  steps {
                      bat('path')
                  }
              } //stage
          } //stages
      } //pipeline
      
      

       

            Assignee:
            Giuseppe Landolfi
            Reporter:
            Wim Bekker
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: