2 - Use the official Jenkins docker image:
3 docker run -d -p 8080:8080 jenkins:weekly"
4 - Then install the Jenkins Plugin Dependencies as listed below
6 jenkins-jobs -l DEBUG --conf jenkins.ini update jjb
8 = Jenkins Plugin Dependencies
10 - Gerrit Trigger Plugin
15 = Creating jobs from OpenDaylight templates
17 The ODL Releng project provides 3 job templates which can be used to
20 == Verify Job Template
22 The Verify job template creates a Gerrit Trigger job that will trigger
23 when a new patch is submitted to Gerrit.
27 The Merge job template is similar to the Verify Job Template except it
28 will trigger once a Gerrit patch is merged into
33 The Daily (or Nightly) Job Template creates a job which will run on a
34 Daily basis and also Submits Sonar reports.
37 == Basic Job Configuration
39 To create a jobs based on the above templates you can use the following
40 example which will create 6 jobs (verify, merge, and daily jobs for both
41 master and stable/helium branch).
43 Before starting create a sub-directory under jjb/ for your project
46 1. mkdir jjb/PROJECT # For example controller
47 2. touch jjb/PROJECT/PROJECT.yaml
48 3. Add your job configuration to jjb/PROJECT/PROJECT.yaml
50 If all your project requires is the basic verify, merge, and
51 daily jobs then the following template should be all you need to
52 configure for your job.
57 PROJECT_SCM_URL: URL to Gerrit repo
58 PROJECT_MVN_GOALS: Maven Goals
59 PROJECT_MVN_OPTS: Maven Options
61 ########### EXAMPLE ###########
66 - '{name}-verify-{stream}'
67 - '{name}-merge-{stream}'
68 - '{name}-daily-{stream}'
71 scm-url: PROJECT_SCM_URL
79 mvn-goals: 'PROJECT_MVN_GOALS'
80 mvn-opts: 'PROJECT_MVN_OPTS'
83 email-prefix: '[PROJECT]'
85 ########### END EXAMPLE ###########
91 ########### SAMPLE ###########
96 - '{name}-verify-{stream}'
97 - '{name}-merge-{stream}'
98 - '{name}-daily-{stream}'
101 scm-url: ssh://jenkins-releng@git.opendaylight.org:29418/aaa.git
106 branch: stable/helium
109 mvn-goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install'
110 mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m'
113 email-prefix: '[aaa]'
115 ########### END SAMPLE ###########