Save the Talend Administration Center credentials in the internal credentials repository in Jenkins.
Most of the MetaServlet APIs request authentication using a Talend Administration Center admin user and password.
Instead of hard-coding this information, the script will leverage the Credentials Binding Plugin to store the encrypted user and password in Jenkins.
, add a new Talend domain and click
Add the Talend Administration Center
credentials with the Username with password kind.
Add a unique ID and description and update the username and password accordingly.
It is important to have a unique ID and description to differentiate the credentials in the Jenkins Job.
In Build Environment, select the Use secret text(s) or file(s) check box.
The Talend Administration Center credentials will be retrieved by the script.
Add a new Binding of type Username and password (separated).
The environment variables
TAC_ADMIN_PWDare used by the Groovy script.