Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56081

Slave node environment path is duplicated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • slave-setup-plugin
    • None
    • Jenkins ver. 2.150.2
      Windows 10 pro
      Environment injector plugin 2.1.6

      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
      
      

       

            peppe Giuseppe Landolfi
            wibek Wim Bekker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: