I have two scripts first on file system,second into jenkins job. Second script calling the first and passed parameters into it. Parameters contains password parameter. How can I hide password into logs? I have tried to hide output by using exec command but problem wasn't solved.
Installing the Mask Password PluginFirst install the Jenkins Mask Passwords plugin. Navigate to manage Jenkins and click Manage Plugins. Search for Mask Passwords. Select the plugin then click “Download now and install after restart”.
If you don't have admin privileges, try to elevate your permissions by looking for an admin user in Global credentials first. To open Script Console navigate to http://localhost:8080/script . There you have it; now you can decrypt any Jenkins secret (if you have admin privileges).
Secret text - copy the secret text and paste it into the Secret field. Username and password - specify the credential's Username and Password in their respective fields. Secret file - click the Choose file button next to the File field to select the secret file to upload to Jenkins.
The Mask Passwords plugin does just that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With