Skip to main content Skip to complementary content

Multiple deployments at once

Configure the pipeline script provided by Talend to deploy your artifacts to multiple places (artifact repository, Talend Cloud, Docker).

Procedure

  1. From the Jenkins home page, select TalendSimplePipeline.
  2. Click Build with Parameters on the left panel to open the pipeline configuration page.
  3. In the MVN_GOALS parameter, define the Maven phase you want to achieve, and make sure the profiles stated correspond to where you want to deploy. The list of profiles should be comma-separated.
    For more information on the Maven phases, see the Maven documentation.
    Information noteTip: All build profiles (-Pdocker, -Pnexus, etc.) are listed in the parent pom.xml file of your project. Some default parameters, like the Docker image name or the Open JDK name, can also be overwritten in this file.

    Example

    Parameter Example of default value
    MVN_GOALS
    deploy -Pnexus,cloud-publisher 

    For examples of filters you can apply to the execution of your project items, see Filtering the execution of your project on selected artifacts.

  4. To define the repositories and environments in which you want to deploy the project artifacts, edit the parameter values stated in the TALEND_CI_BUILD_OPTIONS parameter.

    Example

    Parameter Example of default value
    TALEND_CI_BUILD_OPTIONS
    -DaltDeploymentRepository=maven-snapshots::default::http://localhost:8081/repository/maven-snapshots/
    -Dservice.url=https://tmc.eu.cloud.talend.com/inventory
    -Dcloud.token=XXX1234TalendCloudToken1234XXX
    -Dcloud.publisher.screenshot=true 
    -Dcloud.publisher.environment=prod
    -Dcloud.publisher.workspace=ci-workspace

    allows you to deploy artifacts both into a Nexus snapshots repository and a Talend Cloud account.

  5. Click Build to take your changes into account and build your artifacts.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!