Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Jenkins - Storing Passwords, Secrets, and Credentials

From the dashboard, select your pipeline:

Click configure

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.

SSH Keys

Use this type for storing SSH keys for logging into your remote servers for deployment etc.


Last updated: 5th May 2021
First published: 16th April 2021