Use a Named Password/Private Key
A named password/private key is a variable that users can use across a project's build job configurations, in any password/private key field in the job configuration, including external Git repositories as well as in SQLcl and Docker configurations.
When the value of the password or private key changes, you can edit and reset it and the new value will be applied to all jobs and configurations where the variable is used. However, if you change the selection from password to private key (or the other way around), you must you re-enter a new value for the password or private key.
Note that the named password/private key is not an environment variable. To use a named password/private key as an environment variable, create a Password/Private Key build parameter and set it to use the named password/private key.
Create and Manage Named Passwords/Private Keys
If you're a project owner, you can create, edit, and delete named passwords/private keys:
Action | How To |
---|---|
Create a named password/private key |
After you create the named password or named private key, share its name with your project users. |
Edit a named password/private key |
|
Delete a named password/private key |
After you delete the named password or private key, let your project users know that it's no longer available. |
Configure a Job to Use a Named Password/Private Key
Here's how you can configure a job that uses a named password/private key:
- Open the job’s configuration page.
- Click the Parameters tab.
- Click Add Parameter and select Password/Private Key Parameter.
- In the Name field, enter a name for the parameter, then
do one of the following:
- Click Save.