Store credentials
This topic describes how to define one or more sets of credentials in the Configuration section of the CI Library for use with source artifacts. Admin global permissions are required to define these credentials. Once defined, you can use them to provide a username and password for any HTTP URL that requires authentication.
To create a credentials CI:
- In the top bar, click Explorer.
- Hover over Configuration, click , and select New > credentials > UsernamePasswordCredentials. Or you can right-click and select New > credentials > UsernamePasswordCredentials.
- In the Name field, enter a name for the credentials to use it throughout the system. Note: By using the name defaultNamedCredential, you can define a credentials server CI which is used in future defined source artifacts. For more information, see Default names for CIs in Deploy.
- In the Common section, in the Username and Password fields, enter the credentials you want to store.
- Click Save.
All the source artifacts (example: file.File
) have the option to choose the credentials you want to use to retrieve the artifact. This option is available in the Common section of the artifact. By default, no credentials are selected if there is no defaultNamedCredential defined.
If you do not want to use credentials or you want to retrieve an artifact from a server that does not require credentials, remove the credentials selection from the CI.
Note: When you import a package from a URL, you can select a set of credentials to use.