0

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

albertsha
  • 189
  • 1
  • 2
  • 15
  • 2
    Possible duplicate of [Hiding password in Jenkins pipeline script](https://stackoverflow.com/questions/42371909/hiding-password-in-jenkins-pipeline-script) – mkobit Dec 05 '17 at 22:01
  • @ mkobit - Works as shown!! Thx for prompt and professional response – albertsha Dec 06 '17 at 10:52

0 Answers0