Skip to content

Instantly share code, notes, and snippets.

@bstopp

bstopp/Pipeline Secret

Last active April 20, 2021 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bstopp/2e9fe6eef1e80f97e90b37544cb5053f to your computer and use it in GitHub Desktop.
Save bstopp/2e9fe6eef1e80f97e90b37544cb5053f to your computer and use it in GitHub Desktop.
Mask Passwords Issue
node {
stage('Build') {
def pw = 'My Secret!'
List pairs = []
pairs << [var: 'SECRET_WORD', password: pw]
maskPasswords(varPasswordPairs: pairs) {
echo "Hello ${pw}!"
}
}
}
@bstopp
Copy link
Author

bstopp commented Apr 20, 2021

Secret_Snap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment