Storing your custom Maven settings file in Jenkins - Cloud

Talend Software Development Life Cycle for Cloud - Best Practices Guide

Version
Cloud
Language
English (United States)
Product
Talend Cloud
Module
Talend Artifact Repository
Talend Management Console
Talend Studio
Content
Administration and Monitoring
Deployment
Design and Development

Before you begin

  • Retrieve the settings.xml file from the Downloads tab of this page on Talend Help Center.
  • Adapt the file to your environment by replacing the parameter values (Nexus or Artifactory URLs, host names, ports, credentials, etc.) and save your changes.
    Tip: Look for the XXX references in the file provided as an example and replace them with values corresponding to your environment. This example file is adapted for Nexus. If you are using another artifact repository like Artifactory, you need to adapt this example to your repository URLs.

Procedure

  1. In Jenkins, navigate to Manage Jenkins > Managed files.
  2. Add a configuration file, give it a name and an ID, for example maven-file-cloud. This ID will later be used in the Jenkins pipeline script.
  3. In the Content editor, copy-paste the content of the settings.xml file you have previously downloaded.
  4. 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.

Results

This file contains the connection information to your artifact repositories and to the Talend Cloud service, you will be able to reference this file later in the configuration of your Jenkins pipeline.