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.
- Installed Credentials Binding Plugin, Environment Injector Plugin, Mask Passwords Plugin, Hudson PowerShell plugin
- Created a global password entry within manage credentials as gluser
- 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.
- 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?