The Maven Repository Client Plugin provides a way to select a version from a Maven repository in order to further operate on the build artifacts, associated with that version.
The idea behind this is that you continuously deploy all your build artifacts to a Maven repository. But you deploy only selected ones to a remote site, a customer FTP server or an application server for example.
The plugin allows to select a version from a Maven repository, feed the selection as environment parameters to an Ant/Gradle (examples provided) script, which iterates over the properties and downloads the artifacts. The scripts can be used as a starting point for your own deployment tasks.
The Maven Repository Client Plugin can be selected via the update center.
In the Jenkins global configuration area multiple repositories can be added:
On the Job configuration, when "This build is parameterized" is selected, a build parameter of type "Maven Repository Artifact" can be chosen from the drop-down box.
A "Maven Repository Artifact" has the following configuration properties:
When the build is triggered via "Build Now", a drop-down box with the versions for each configured groupId.artifactId will be shown.
The following environment properties will be passed to the build:
The following example build scripts are available:
Skip to end of metadata Go to start of metadata