- Jenkins Configuration
- Pipeline Library
- Demo scripts: 'demo/' directory
- Job Restrictions Plugin
- Docker
- Good bandwidth :(
- Download Sources
- Got to the Jenkins Configuration repo
- Build the image:
docker build -t onenashev/demo-jenkins-config-as-code .
- Run redirector if needed:
docker run -d -v /var/run/docker.sock:/var/run/docker.sock -p 2376:2375 bobrik/socat TCP4-LISTEN:2375,fork,reuseaddr UNIX-CONNECT:/var/run/docker.sock
- Setup environment
- MY_PIPELINE_LIBRARY_DIR - path to the Pipeline library
- CURRENT_HOST - Current host to access docker from the Jenkins master container (see socat above)
- Run in the development mode:
docker run --rm --name ci-jenkins-io-dev -v maven-repo:/root/.m2 -v ${MY_PIPELINE_LIBRARY_DIR}:/var/jenkins_home/pipeline-library -e DEV_HOST=${CURRENT_HOST} -p 8080:8080 -p 50000:50000 onenashev/demo-jenkins-config-as-code
- Login as
admin/admin
oruser/user
- Enjoy!
- Run jobs
- See results in BlueOcean and reports
- Edit Pipeline library and demos without committing
To Be published soon, see http://bit.ly/heisenbug2017-nenashev-slides.