Do the Credentials “****” in Jenkins, Taken from the Credentials Plugin, Have the Username or the Password?

Problem Scenario
You want to use the credentials from the Jenkins credentials plugin in a Jenkins pipeline. When you assign the credentials to a variable in a pipeline, is it the username, the password, both or something else?

Solution
It is the username and password, but the two are separated by a colon. You will only see "****" in the console output (for security reasons). Here is an example: jdoe:goodP@$$w0rd!

The above is an example with a username of jdoe and a password of goodP@$$w0rd!

Leave a comment

Your email address will not be published. Required fields are marked *