Openstack Jenkins Job Builder RPM

Jenkins Job Builder takes simple descriptions of Jenkins jobs in YAML or JSON format and uses them to configure Jenkins. You can keep your job descriptions in human readable text format in a version control system to make changes and auditing easier. It also has a flexible template system, so creating many similarly configured jobs is easy.

You can either install jenkins job builder using brew, pip or using the setup.py script. For my convenience I build an RPM to easily install and upgrade to future versions. As usual you can download the source RPM (python-jenkins-job-builder-1.3.0-1.20151105git4408bca.cgk.el6.src.rpm) and build it using the rpmbuild --rebuild command.

You only need to copy the sample config jenkins_jobs.ini-sample to /etc/jenkins_jobs/jenkins_jobs.ini and configure it with the correct credentials for your Jenkins installation. Once done, you’re ready to run jenkins-jobs!

Check the full documentation or the job definition documentation at least and you’ll be running in no time.

The result of a successful jjb run can be found at the Cegeka ‘Infrastructure As Code‘ jenkins.

Leave a Reply

Your email address will not be published. Required fields are marked *