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.
Creating ARTIFACTORY_CREDS in Jenkins
Generate a Lineaje CLI Personal Access Token in Lineaje Portal
Go to https://app.veedna.com/ and log in with your credentials.
From the left navigation panel, navigate to: Integrations → Deploy on Private Cloud → Lineaje CLI Personal Access Token
Click Generate Token.
You will be redirected to a new page where you will need to:
Authenticate again using your credentials.
Grant the required permissions.
Once the authentication is completed, return to the previous browser tab.
Copy the Personal Access Token (PAT) and store it securely. This token will be used when configuring credentials in Jenkins.
Add the Personal Access Token to Jenkins (Follow similar steps for CI of your choice)
Open Jenkins and navigate to: Manage Jenkins → Credentials
Under Stores scoped to Jenkins, select System.
From the left-hand menu under System, click Global credentials (unrestricted) to open the default domain. Credentials can also be configured at the folder level if more granular access control is required.
Click Add Credentials from the left-hand menu.
Configure the Credential
Fill in the following fields
Kind: Username with password
Username: Enter your email configured on Lineaje Platform
Password: Paste the Personal Access Token (PAT) generated earlier
ID: Provide a meaningful identifier (this ID will be used to reference the credential in Jenkins jobs and pipelines). If the ID field is left empty, Jenkins will automatically generate a unique ID.
Description: Add a description for easier identification
Click Create to save the credential.
Using the Credential in Jenkins Pipelines
After creating the credential, it can be referenced in Jenkins jobs or Jenkinsfile pipelines using the Credential ID specified during creation.
Referencing Credentials in a Jenkinsfile
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 Maven Integration
Last updated