lilicurroad
A Jenkins plugin that will look up a Yum repo's database, and populate a Jenkins parameter dropdown.
The primary use case for this plugin is the configuration of deployable artifact versions when running Ansible.
Travis CI
Package
mvn hpi:hpi
Run
mvn hpi:run -Djetty.port=9090 -Pjenkins
... or ...
export MAVEN_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=5005,suspend=n"
mvn hpi:run -Djetty.port=9090 -Pjenkins
Build
... then ...
open http://localhost:9090/jenkins
... or ...
Usage
Step 1 - Configure the global repositories
Navigate to the main menu...
Select "Manage Jenkins" followed by "Configure System" then add one or more Yum repositories...
Step 2 - Configure the project
Navigate to the main menu...
Select "New Item" to create a new project...
Check the box to indicate that the build is parameterised...
Select the "Package version parameter"...
Give the parameter a name, select the repository and package...
Add a build step to print the build environment parameters...
Step 3 - Build the project
Navigate to the job menu...
Trigger a parameterised build by selecting a version of the specified package...
Step 4 - Check the project build logs
View the build output...