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 https://groups.google.com/forum/#!msg/jenkinsci-users/GgX3RSckVlI/LU8IqzqoMwAJ
Until this is done, the only way to mask passwords in the log is EnvInject or MaskPassword Plugin (with their respective backdraws). You could possibly externalize parts of your pipeline to a freestyle job and use them. Official doc suggests to turn off log (set +x), if you can do this reliably for all relevant jobs: https://cloudbees.zendesk.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs If you have several people working on build jobs/scripts I would discourage from doing this. Am Sonntag, 24. April 2016 16:33:22 UTC+2 schrieb Daniel Beck: > > > > On 24.04.2016, at 14:24, Ant Weiss <[email protected] <javascript:>> > wrote: > > > > What is the right way to do this when wrting pipeline DSL scripts? > > > > Credentials and Credentials Binding Plugin: > > https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Binding+Plugin > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/377a850d-c825-4334-bdd3-99ad51e42020%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
