CI builder-related Maven parameters
These parameters are detailed in the embedded help of the plugin (see the generate-mojo.html file) and can be used either in the mavenOpts (Jenkins)/mavenOptions(Azure DevOps) or the mvn(Jenkins)/options (Azure DevOps) commands of your CI build definition.
mvn org.talend.ci:builder-maven-plugin:<your_version>:help
-Ddetail=true
-s F:/<your_studio>/configuration/maven_user_settings.xml
mvn org.talend.ci:builder-maven-plugin:<your_version>:help
-Dgoal=generateAllPoms
-Ddetail=true
-s F:/<your_studio>/configuration/maven_user_settings.xml
Maven parameter | Value | |
---|---|---|
Talend CommandLine parameters | -Dproduct.path |
Path to the Talend CommandLine installation directory. Example:
|
-Dp2Installer.path | Path to the Installer files. If the -Dproduct.path parameter is specified, the Talend CommandLine product will be installed in the value specified for this parameter. Example:
This allows
you to use different paths for installing and patching different product
versions.
|
|
-Dlicense.path | Path to the license of your Talend product. If the licence path value is a URL and credentials are needed to access it, use the -Dlicense.remote.user and -Dlicense.remote.password parameters. |
|
-Dupdatesite.path |
URL address of your server where the P2 repository with Talend CommandLine can be downloaded and installed at build time. This site also contains the Maven plugins and all the external libraries necessary to build your pipelines. For an example of how to embed the P2 repository in your Tomcat application, see Before scheduling the execution of your artifacts. Example:
Information noteWarning: This parameter only applies to users
who have the P2 update site archive, which is provided by Talend.
|
|
-DforceUpdate -Dinstaller.clean -U |
Parameters needed when installing updates from the update site:
|
|
-Dpatch.path | Path to the patch you have installed or want to install (Talend Studio p2
patch, manual patch, component patch, etc.). Example if you have installed
the patch
locally:
Example
of patch to
download:
If credentials are needed to access the remote patch location, use the -Dpatch.remote.user and -Dpatch.remote.password parameters. The patch.remote.password parameter can set a password encrypted by Maven. |
|
-Dgeneration.type | Type local as the value to generate the sources of
your artifacts and Tests locally without having to keep the Talend CommandLine up and running during the build
execution. Example:
The server generation type is deprecated. |
|
-Dcommandline.skip | Type true as the value to skip the source code
generation of your artifacts. This parameter can only be used if you have previously generated your artifacts using Talend CommandLine. Example:
|
|
-DprojectFilter | Allows you to build only specific projects. Example of filter on all
projects with a name starting with
CI:
|
|
-DitemFilter | Allows you to build only specific project items. Example of filter on Job types: -DitemFilter=(type=process) to filter on all Standard Jobs of the project -DitemFilter=(type=process_mr) to filter on all Big Data Map/Reduce and Spark Batch Jobs of the project -DitemFilter=(type=process_storm) to filter on all Big Data Storm and Spark Streaming Jobs of the project -DitemFilter=(type=route) to filter on all Routes of the project Example of filter on Job labels: -DitemFilter=(type=process_mr)and(label=job_ProcessWeatherData) to filter on one specific Big Data Map/Reduce Job named job_ProcessWeatherData-DitemFilter=(type=process)and(label%job_dev*) to filter on Jobs which names start with job_dev Example of filter on Job paths: -DitemFilter=(type=process)and(path=Integration) to filter on Jobs located in subfolder called Integration -DitemFilter=(type=process)and(path%Integration*) to filter on Jobs located in subfolders with a name starting with Integration Example of filter on the person who created the Job: -DitemFilter=(type=process_storm)and(author=rbunch@talend.com) to filter on Big Data Storm Streaming Jobs whose author ID is rbunch@talend.comExample of exclusion filter: -DitemFilter=(!path=sandbox)and(type=process)and(label%job_Export*)or(label%job_Monitor*) to filter on Jobs with a name starting with job_Export or job_Monitor, but that are not in the sandbox folder. -DitemFilter=(!path%MainProcess/Import*)and(type=process)and(label%job_Export*) to filter on Jobs with a name starting with job_Export, but that are not in the subfolders with a name starting with Import under the MainProcess folder. Example of filter applied in order to execute Big Data Spark Batch Jobs located in the subfolders with a name starting with Export under the MainProcess folder, and with the exception of the Job named job_batch_feature22: -DitemFilter=(type=process_mr)and(!label=job_batch_feature22)and(path%MainProcess/Export*) |
|
-Dtalend.job.context and -Dtalend.job.applyContextToChildren | When building or scheduling the execution of Jobs, specifies the context
group to apply to all Jobs at build time. Example to apply a context group
named dev only to the parent Jobs and apply the
default context group to the child
Jobs:
Example
to apply a context group named dev to the parent Jobs
and apply the same context group to the child
Jobs:
If the context group you specify does not exist on the Job, the default context group will be applied. |
|
-Dstudio.forceMavenOnline=true | In case of dependency error when building or scheduling the execution of
Jobs in offline mode, allows the Studio to download dependencies according to
what is defined in your Maven settings file. The error you may get is the following: Plugin X.Y.Z or one of its dependencies could not be resolved: Cannot access central It can also be avoided by Re-generating POM files, installing a patch and creating a custom script before build time as these POM files would then contain all the dependencies needed to execute your Jobs. |
|
Custom component parameters | -Dcomponents.* | When deploying Jobs that use custom components to an artifact repository,
specifies the repository in which the component libraries are stored. This is only required for the custom components created using Talend Component Kit. For more information, read this documentation. Example:
|
-Xms -Xmx | JVM arguments that allow you to increase the memory available to Maven. | |
-Dcodes.compile.failOnError | To prevent the CI build to fail when encountering some routines with
compilation errors that are not used in the artifacts you are building, add
this parameter with a false value to skip them and
continue the
compilation. Example:
|