Storing your configuration files in Jenkins - 7.3

Talend Software Development Life Cycle Best Practices Guide

Version
7.3
Language
English (United States)
Product
Talend Big Data
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Module
Talend Administration Center
Talend Artifact Repository
Talend CommandLine
Talend JobServer
Talend Studio
Content
Administration and Monitoring
Deployment
Design and Development

Before you begin

The maven_settings.xml and jenkins_talend_helper.groovy files have been retrieved from the Downloads tab of this page.

Procedure

  1. In Jenkins, navigate to Manage Jenkins > Managed files.
  2. Click Add a new config and select Maven settings to add the Maven configuration file.
  3. Give it a name and an ID, maven_settings. This ID will later be used in the Jenkins the pipeline script.
  4. In the Content editor, paste the content of the maven_settings.xml file you have previously downloaded.
    Note:
    • The default Nexus artifactory URL defined in the file (line 40) is localhost:8080. Updated the value according to your environment.
    • For Big Data users with dynamic distributions only: add the following server and repository to the configuration file in order to define the Nexus local repository as proxy, ensuring faster .jar file downloading:

      <server>
          <id>dynamic-distrib</id>
          <username>admin</username>
          <password>Talend123</password>
      </server>
      <repository>
          <id>dynamic-distrib</id>
          <name>dynamic-distrib</name>
          <url>http://localhost:8081/repository/dynamic-distrib/</url>
          <layout>default</layout>
       </repository>

      For this configuration to be complete, you need to have previously added the Talend proxy in the Talend Studio Project settings > General > Dynamic Distribution Settings menu.

      For more information, see the documentation about how to add the latest Big Data Platform dynamically in Talend Data Fabric Studio User Guide.

  5. Click Submit.
  6. Click Add a new config and select Groovy to add the Jenkins helper configuration file.
  7. Give it a name and an ID, jenkins_talend_helper. This ID will later be used in the Jenkins pipeline script.
  8. In the Content editor, paste the content of the Groovy file and click Submit.
  9. Click Add a new config and select Custom to add your Talend license file.
  10. Give it a name and an ID, license. This ID will later be used in the Jenkins pipeline script.
  11. In the Content editor, paste the content of the license file and click Submit.

Results

These files contain the connection information to your artifact repositories, the definition of the pipeline steps as well as the license information. These files will be are referenced in the configuration of your Jenkins pipeline.