In jenkins pipeline project, I'm trying to pass Global name/password pairs to .sh script. note that I've already tried passing "${env.MyCred}"; $MyCred; withCredentials - yet failed.
I do know that in other type of jenkins projects, one need to check the "Mask passwords and regexes (and enable global passwords)" in order to be able use them. Pipeline project miss this configuration ..
Any idea how? Is there something I'm missing here ?
THX - albert