-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
EnvInject version 1.91 and version 1.91.1
I created a local and global password.
In a shell step the password can be used successfully.
In the next build step of my build I have the Gradle plugin, the password arrives as asterisks.
As a work-around I have switched to use the MaskPassword plugin.
Test Script build.gradle:
task showGlobalEnv << {
println '\''Test match:'\'' + (System.env.TEST_ENV == 'T123')
System.env.TEST_ENV.each
}
Output from version 1.90 (successful):
Test match:true
T
1
2
3
Output from version 1.91 (failure):
Test match:false
*
*
*
*
*
*
*
*
- is duplicated by
-
JENKINS-28116 Password injection no longer supplies password
-
- Resolved
-
- is related to
-
JENKINS-30090 Add a direct unit test for JENKINS-27382
-
- Resolved
-
We just upgraded from 1.90 to 1.94 and the problem cropped up. Going to rollback to 1.90. This makes the sensitive variable functionality useless outside of the Execute Shell step. The password is passed as **** to all other plugins that make use of the EnvVars object.