jenkins-dependency-plugin
jenkins-dependency-plugin will download a jenkins plugin (hpi) and all of it's dependencies (hpis) to a specified location.
Maven
Add a dependency to com.github.vincentrussell:jenkins-dependency-plugin
.
<dependency>
<groupId>com.github.vincentrussell</groupId>
<artifactId>jenkins-dependency-plugin</artifactId>
<version>1.1</version>
</dependency>
Requirements
- JDK 1.7 or higher
Running from the command line
The easiest way to use this plugin is to just use it from the command line.
mvn com.github.vincentrussell:jenkins-dependency-plugin:1.1:get -DdownloadDir=/tmp -Dartifact=junit:1.47
Option | Description |
---|---|
groupId | The groupId of the artifact to download. Ignored if artifact is used. |
artifactId | The artifactId of the artifact to download. Ignored if artifact is used. |
version | The version of the artifact to download. Ignored if artifact is used. |
artifact | A string of the form groupId:artifactId:version. |
downloadDir | The directory where to download the plugins |
jenkinsPluginServerUrl | The server that stores the jenkins plugins; defaults to: https://updates.jenkins-ci.org/download/plugins |
Change Log
1.0 (2020-12-19)
Enhancements:
- Initial Release
1.1 (2020-12-30)
Bugs:
- Ignore optional parameters in jenkins plugins manifests, i.e: workflow-api:2.40;resolution:=optional,workflow-step-api:2.22;resolution:=optional