Skip to main content

Deployment-related Maven parameters

These parameters allow you to deploy your artifacts to an artifact repository, to Talend Cloud or to Docker.

  • To get the list of Cloud-related Maven parameters as inline help during build time, execute this command:
    mvn org.talend.ci:cloudpublisher-maven-plugin:<version>:help 
    -Ddetail=true 
    -s F:/<your_studio>/configuration/maven_user_settings.xml
  • To get the list of Docker-related Maven parameters as inline help during build time, execute this command:
    mvn org.eclipse.jkube:kubernetes-maven-plugin:<version>:help 
    -Ddetail=true 
    -s F:/<your_studio>/configuration/maven_user_settings.xml 
Information noteTip: To deploy your artifacts to multiple places at the same time (artifact repository, Talend Cloud, Docker), enter comma-separated values like -Pnexus,cloud-publisher.
Maven parameter Value
Artifact repository parameters -Pnexus (Activated by default unless a different profile is specified which deactivates it)

Activates the plugin that allows you to publish to your artifact repository (Artifactory, Nexus).

-DaltSnapshotDeploymentRepository and -DaltReleaseDeploymentRepository

OR

-DaltDeploymentRepository

When deploying to an artifact repository, specifies an alternative repository to which the project artifacts should be deployed.

Format: id::layout::url

Example for projects with a snapshot version:

-DaltSnapshotDeploymentRepository=snapshots::default::http://localhost:8081/repository/snapshots/

or

-DaltDeploymentRepository=snapshots::default::http://localhost:8081/repository/snapshots/

Example for projects with a final version:

-DaltReleaseDeploymentRepository=releases::default::http://localhost:8081/repository/releases/

or

-DaltDeploymentRepository=releases::default::http://localhost:8081/repository/releases/
Talend Cloud parameters -Pcloud-publisher Activates the plugin that allows you to publish to Talend Cloud.
-Dservice.url Specifies the Talend Cloud account in which the project artifacts should be deployed.

In the default script provided by Talend, the value corresponds to the ${CLOUD_URL} variable that is defined at the beginning of the script.

-Dcloud.token Specifies the access token generated for your Talend Cloud account.
-Dcloud.publisher.environment Specifies the environment created in your Talend Cloud account in which the project artifacts should be deployed.
Example:
-Dcloud.publisher.environment=PROD
-Dcloud.publisher.workspace Specifies the workspace created in your Talend Cloud account in which the project artifacts should be deployed.
Example:
-Dcloud.publisher.workspace=CI_WORKSPACE
(Optional)

-Dcloud.publisher.screenshot

Add this parameter with a true value if you want to publish the capture of the artifact to be deployed in your Talend Cloud account.
-Dcloud.publisher.screenshot=true
(Optional)

-Dcloud.publisher.updateFlow

Add this parameter with a true value if you want to create or update the corresponding Talend Management Console task when publishing a new artifact version into Talend Cloud.
-Dcloud.publisher.updateFlow=true
Docker parameters -Pdocker Activates the plugin that allows you to publish to a Docker registry.
-Djkube.docker.push.registry Specifies the Docker registry where you want to share your image.
-Djkube.docker.username Specifies the Docker user corresponding to the account that will log in to the Docker registry.

In the default script provided by Talend, the value corresponds to the ${env.Dusername} variable, that is the Docker user defined in the credentials Storing login credentials in Jenkins.

-Djkube.docker.password Specifies the Docker password corresponding to the account that will log in to the Docker registry.

In the default script provided by Talend, the value corresponds to the ${env.Dpassword} variable, that is the Docker password defined in the credentials Storing login credentials in Jenkins.

-Djkube.docker.host Specifies the hostname corresponding to the account that will log in to the Docker registry.
-Dtalend.docker.dockerfile Specifies the path to a custom Dockerfile.
Example:
-Dtalend.docker.dockerfile=C:/Talend/DockerFile

For more information on how to customize a Dockerfile in Talend Studio, see the Studio documentation. For more information about Dockerfiles, see the Docker documentation.

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!