Jenkins - Storing Passwords, Secrets, and Credentials
From the dashboard, select your pipeline:
In the default General tab, scroll down and click Add to add a secret.
Select the type of credentials you wish to store. Details of each type are further below.
Username / Password
Use this type whenever you have a username/password combination, such as authenticating with a Docker registry.
Secrets / Tokens
This is probably going to be the most commonly used type. Use this whenever there is a single string value that you need, such as an authorization token.
Use this type for storing SSH keys for logging into your remote servers for deployment etc.
First published: 16th April 2021