Configure the pipeline script provided by Talend to deploy your artifacts to the artifact repository of your choice.
Procedure
- From the Jenkins home page, select TalendSimplePipeline.
- Click Build with Parameters on the left panel to open the pipeline configuration page.
-
In the MVN_GOALS parameter, define the Maven phase you
want to achieve, and make sure the profile stated is
-Pnexus.
For more information on the Maven phases, see the Maven documentation.Tip: All build profiles (-Pdocker, -Pnexus, etc.) are listed in the parent pom.xml file of your project.
Example
Parameter Example of default value MVN_GOALS deploy -Pnexus
For examples of filters you can apply to the execution of your project items, see Filtering the execution of your project on selected artifacts.
-
To define the artifact repository in which you want to deploy the project
artifacts, edit the repository URL stated in the
MVN_GOALS parameter.
The repository defined in the default script provided by Talend is the maven-releases remote repository.
Example
Parameter Example of default value MVN_GOALS -DaltDeploymentRepository=maven-snapshots::default::http://localhost:8081/repository/maven-snapshots/
allows you to deploy artifacts into a Nexus snapshots repository (for projects under development and artifacts with a -SNAPSHOT version).
You need to specify your own artifact repository URL and there should not be any line breaks between the Maven goal and the -DaltDeploymentRepository parameter.
- Click Build to take your changes into account and build your artifacts.