Official Jenkins docker plus some plugins and scripts in order to integrating with the Gerrit.
Additional plugins include:
- gerrit-trigger:2.17.2
- git-client:1.19.0
- git:2.4.0
- scm-api:0.2
- junit:1.9
- maven-plugin:2.12.1
- docker-plugin:0.15.0
- durable-task:1.6
- token-macro:1.11
- ssh-slaves:1.10
- ldap:1.11
- ssh-credentials:1.11
- credentials:1.24
- authentication-tokens:1.2
- docker-commons:1.2
- docker-build-publish:1.0.1
- Demonstrate how to integrate Jenkins with Gerrit.
- Domonstrate how to configure Jenkins docker-plugin to utilise other docker images as the slave nodes.
- There's a sample image which demonstrate how to build a jenkins-slave image for Jenkins docker-plugin.
- There's another project which privdes sample scripts about how to combine this image with Gerrit image and other images to create a ci system.
createJenkins.sh
#A public ssh key should be imported to Gerrit first as the <Gerrit admin uid>'s public key.
setupJenkins.sh \
<Gerrit admin uid> \
<Gerrit admin email> \
<Gerrit ssh ip/name> \
<Gerrit canonicalWebUrl> \
<Jenkins WebUrl> \
<Nexus public repoUrl>
sample:
setupJenkins.sh \
gerrit \
gerrit@demo.org \
172.17.42.1 \
http://ci.demo.org/gerrit \
http://ci.demo.org/jenkins \
http://ci.demo.org/nexus/content/groups/public
destroyJenkins.sh
upgradeJenkins.sh