Jenkins job builder
How to use it?
Jenkins have to be configured properly to help jjb to update jenkins.
- To create a jjb account
- To ensure jjb is having rights to update jobs
- To get the token of that user. This token will be passed as JENKINS_TOKEN to the container.
Now, you can start jjb as follow:
$ docker run -it -v $(pwd)/jobs:/jobs -e JENKINS_TOKEN=123456789abcdf123456 -e JENKINS_URL=http://...:8080 --rm forjoss/jenkins-job-builder update jobs/main.yml
This example use to create a test job as decribed by the sample found in jobs/main.yml
Docker Pull Command