Authentication

All requests to the Proxy must be authenticated using HTTP Basic Authentication over HTTPS. Credentials are provisioned by your Lineaje platform administrator and stored as a Jenkins (or CI system) credential referred as ARTIFACTORY_CREDS in below examples.

Credential format: username : password/token pair, base64-encoded in the Authorization header. When configured correctly, is handled automatically by Maven, pip, and npm.

chevron-rightReferencing Credentials in a Jenkinsfilehashtag

In the Jenkinsfile, use the credentials block to expose the username and password as environment variables:

ARTIFACTORY_CREDS = credentials(‘<ID>’) 
Username and Password are now available in environment as ARTIFACTORY_CREDS_USR, ARTIFACTORY_CREDS_PSW 

Last updated