07-21-2023, 09:07 PM
I am having trouble accessing the jenkins global password as an environment variable in powershell. I have done the following. Not sure what else I am missing.
1. Installed Credentials Binding Plugin, Environment Injector Plugin, Mask Passwords Plugin, Hudson PowerShell plugin
2. Created a global password entry within manage credentials as gluser
3. In my build, I have a powershell call with the build environment defined for inject passwords to the build as environment variables and checked for global passwords.
4. None of the following get me to reference the global password in my powershell scripts
`$env:gluser`
`$gluser`
None of them seem to let me access the global password within powershell call from Jenkins. Could someone please help?
1. Installed Credentials Binding Plugin, Environment Injector Plugin, Mask Passwords Plugin, Hudson PowerShell plugin
2. Created a global password entry within manage credentials as gluser
3. In my build, I have a powershell call with the build environment defined for inject passwords to the build as environment variables and checked for global passwords.
4. None of the following get me to reference the global password in my powershell scripts
`$env:gluser`
`$gluser`
None of them seem to let me access the global password within powershell call from Jenkins. Could someone please help?