Re: Jenkins Pipeline Plugin - how to inject global passwords?

2017-04-03 Thread kumar naresh
Hi, please help to get the global passwords list from jenkins using the groovy scripting. Regards, kumar. On Monday, April 25, 2016 at 3:25:14 PM UTC+5:30, Harry G. wrote: > > Please note: Credentials Binding works, but currently it is not possible > to mask passwords in the log with this

Re: Jenkins Pipeline Plugin - how to inject global passwords?

2016-05-13 Thread Brian Ray
Found a wrinkle to masking secrets in the log, in one of my edge cases Pipeline. I'm trying to determine whether this edge case warrants

Re: Jenkins Pipeline Plugin - how to inject global passwords?

2016-04-27 Thread Harry G.
Wow, this is strange! To be honest, my test case was a freestyle job and I assumed there should be no difference. I tried again and it really works in pipeline, but not in freestyle job - with exact same credential binding and same shell script! So I think this can help to fix JENKINS-24805 So

Re: Jenkins Pipeline Plugin - how to inject global passwords?

2016-04-26 Thread Brian Ray
I recently started experimenting with Credentials Binding with a Pipeline script passing a user-password credential down to a *sh*/*bat *step inside a *node* block, with the secret values masked perfectly in the log. (The step just executed some Groovy that *println System.getenv()'d* the

Re: Jenkins Pipeline Plugin - how to inject global passwords?

2016-04-25 Thread Ant Weiss
Hi all, thanks for your inputs. In fact I implemented this with Credentials Binding plugin and it worked great - masking the passwords as it should. On Monday, April 25, 2016 at 12:55:14 PM UTC+3, Harry G. wrote: > > Please note: Credentials Binding works, but currently it is not possible > to

Re: Jenkins Pipeline Plugin - how to inject global passwords?

2016-04-25 Thread Harry G.
Please note: Credentials Binding works, but currently it is not possible to mask passwords in the log with this solution. https://issues.jenkins-ci.org/browse/JENKINS-24805 A PR from Cloudbees is in work, but not finished

Jenkins Pipeline Plugin - how to inject global passwords?

2016-04-24 Thread Ant Weiss
For regular jobs if I don't want to make passwords publicly visible I use EnvInject plugin with either global or job passwords. This masks the passwords in log output and make them available as env variables. What is the right way to do this when wrting pipeline DSL scripts? Thanks a lot!!! --