-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: slave-setup-plugin
-
None
-
Environment: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
- Created a slave to run on localhost by Java Web Start.
- Add node properties environment variables, name: Path value: $Path;X;Y;Z
- 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
Â