A utility job to jumpstart job parameter assembly from ready made components. Easily copy build parameters from one or more freestyle projects to a target project. Especially useful when Active Choice parameters with complex dependencies are used.
The repository provides an archive of the key artifacts required to setup (or update) the job on a Jenkins server. Artifacts include:
- Job configuration, and job-specific properties and scripts
- Shared Groovy Scriptlets
- Shared External scripts
-
Clone the repository
git clone https://github.com/imoutsatsos/JENKINS-JOB_PARAM_ASSEMBLER.git
-
Deploy artifacts with gradle
- Open console in repository folder and execute command
gradle deploy
- Deployment creates a backup of all original files (if they exist) in qmic-JOB_PARAM_ASSEMBLER/backup folder
- Project configuration, scripts and properties are deployed to $JENKINS_HOME/jobs/JOB_PARAM_ASSEMBLER folder
- Scriptlets are deployed to $JENKINS_HOME/scriptlet/scripts folder
- Open console in repository folder and execute command
-
Review project plugins (shown below with latest version tested) and install as needed
- Select a free-style Jenkins job
- Select one or more job parameters to copy
- Add selected parameters to the list of parameters to be copied to target job
- Repeat steps 1,2,3 as needed
- Manage and re-order the parameter list as needed with the appropriate buttons
- Check whether to append to or overwrite existing target project parameters
- Build it!