Add Maven Settings file support to templates
[releng/builder.git] / jjb / job.yaml.example
similarity index 50%
rename from jjb/releng-templates.yaml
rename to jjb/job.yaml.example
index 2524680769b6b9428828ecaa3dd99e1e29ac4fa5..4f45eac96e9e9b4a31c426a5752bdb1a63268d9e 100644 (file)
@@ -1,24 +1,35 @@
 # ODL Releng build templates
+- project:
+    name: aaa
+    jobs:
+        - 'aaa-verify-{stream}'
+        - 'aaa-merge-{stream}'
+        - 'aaa-daily-{stream}'
+
+    # stream:    branch with - in place of / (eg. stable-helium)
+    # branch:    branch (eg. stable/helium)
+    stream:
+        - master:
+            branch: 'master'
+        - stable-helium:
+            branch: 'stable/helium'
+
+
+# For the Job templates below replace instances of:
+# PROJECT with your project name (eg. controller)
+# MAVEN_GOALS with your maven goals to build
+# MAVEN_OPTS with your maven options to build
 
 - job-template:
-    name: '{name}-verify-{stream}'
+    name: 'aaa-verify-{stream}'
 
     # Job template for ODL verify jobs
     #
     # The purpose of this job template is to setup a ODL verify job
     #
     # Required Variables:
-    #     name:      project name (eg. controller)
-    #     stream:    branch with - in place of / (eg. stable/helium)
+    #     stream:    branch with - in place of / (eg. stable-helium)
     #     branch:    branch (eg. stable/helium)
-    #     mvn-goals: Maven Goals parameter to pass to the builder (eg. clean install)
-    #     mvn-opts:  MAVEN_OPTS paramter to pass to the builder (eg. -Xmx1024m)
-    #
-    # Optional Variables:
-    #     build-days-to-keep:           Number of days to keep builds
-    #     build-num-to-keep:            Number of builds to keep
-    #     build-artifact-days-to-keep:  Number of artifacts from builds to keep
-    #     build-artifact-num-to-keep:   Number of builds to keep with artifacts
 
     project-type: maven
 
@@ -35,7 +46,7 @@
     scm:
         - gerrit-trigger-scm:
             credentials-id: '{ssh-credentials}'
-            scm-url: '{scm-url}'
+            scm-url: 'ssh://jenkins-releng@git.opendaylight.org:29418/aaa.git'
             refspec: '$GERRIT_REFSPEC'
 
     wrappers:
 
     triggers:
         - gerrit-trigger-patch-submitted:
-            name: '{name}'
+            name: 'aaa'
             branch: '{branch}'
 
     maven:
-        maven-name: Maven 3.0.4
-        root-pom: pom.xml
-        goals: '{mvn-goals}'
-        maven-opts: '{mvn-opts}'
+        maven-name: '{mvn30}'
+        root-pom: 'pom.xml'
+        goals: 'clean verify'
+        maven-opts: '-Xmx1024m'
+        settings: '{aaa-settings}'
+        global-settings: '{odl-global-settings}'
 
     publishers:
         - email-notification:
-            email-prefix: '{email-prefix}'
+            email-prefix: '[aaa]'
 
 - job-template:
-    name: '{name}-merge-{stream}'
+    name: 'aaa-merge-{stream}'
 
     # Job template for ODL merge jobs
     #
     # The purpose of this job template is to setup a ODL merge job
+    # and deploy artifacts to Nexus.
     #
     # Required Variables:
-    #     name:      project name (eg. controller)
-    #     stream:    branch with - in place of / (eg. stable/helium)
+    #     stream:    branch with - in place of / (eg. stable-helium)
     #     branch:    branch (eg. stable/helium)
-    #     mvn-goals: Maven Goals parameter to pass to the builder (eg. clean install)
-    #     mvn-opts:  MAVEN_OPTS paramter to pass to the builder (eg. -Xmx1024m)
-    #
-    # Optional Variables:
-    #     build-days-to-keep:           Number of days to keep builds
-    #     build-num-to-keep:            Number of builds to keep
-    #     build-artifact-days-to-keep:  Number of artifacts from builds to keep
-    #     build-artifact-num-to-keep:   Number of builds to keep with artifacts
 
     project-type: maven
 
@@ -88,7 +93,7 @@
     scm:
         - gerrit-trigger-scm:
             credentials-id: '{ssh-credentials}'
-            scm-url: '{scm-url}'
+            scm-url: 'ssh://jenkins-releng@git.opendaylight.org:29418/aaa.git'
             refspec: ''
 
     wrappers:
 
     triggers:
         - gerrit-trigger-patch-merged:
-            name: '{name}'
+            name: 'aaa'
             branch: '{branch}'
 
     maven:
-        maven-name: Maven 3.0.4
-        root-pom: pom.xml
-        goals: '{mvn-goals}'
-        maven-opts: '{mvn-opts}'
+        maven-name: '{mvn30}'
+        root-pom: 'pom.xml'
+        goals: 'clean verify'
+        maven-opts: '-Xmx1024m'
+        settings: '{aaa-settings}'
+        global-settings: '{odl-global-settings}'
 
     publishers:
         - email-notification:
-            email-prefix: '{email-prefix}'
+            email-prefix: '[aaa]'
         - maven-deploy:
             id:
             url:
             deploy-unstable: false
 
 - job-template:
-    name: '{name}-daily-{stream}'
+    name: 'aaa-daily-{stream}'
 
     # Job template for daily builders
     #
-    # The purpose of this job template is to setup a daily/nightly builder and pushes to Sonar analysis.
+    # The purpose of this job template is to setup a daily/nightly
+    # builder and pushes to Sonar analysis.
     #
     # Required Variables:
-    #     name:      project name (eg. controller)
-    #     stream:    branch with - in place of / (eg. stable/helium)
+    #     stream:    branch with - in place of / (eg. stable-helium)
     #     branch:    branch (eg. stable/helium)
-    #     mvn-goals: Maven Goals parameter to pass to the builder (eg. clean install)
-    #     mvn-opts:  MAVEN_OPTS paramter to pass to the builder (eg. -Xmx1024m)
-    #
-    # Optional Variables:
-    #     build-days-to-keep:           Number of days to keep builds
-    #     build-num-to-keep:            Number of builds to keep
-    #     build-artifact-days-to-keep:  Number of artifacts from builds to keep
-    #     build-artifact-num-to-keep:   Number of builds to keep with artifacts
 
     project-type: maven
 
     scm:
         - git-scm:
             credentials-id: '{ssh-credentials}'
-            scm-url: '{scm-url}'
+            scm-url: 'ssh://jenkins-releng@git.opendaylight.org:29418/aaa.git'
             refspec: ''
             branch: '{branch}'
 
         - timed: 'H H * * *'
 
     maven:
-        maven-name: Maven 3.0.4
-        root-pom: pom.xml
-        goals: '{mvn-goals}'
-        maven-opts: '{mvn-opts}'
+        maven-name: '{mvn30}'
+        root-pom: 'pom.xml'
+        goals: 'clean verify'
+        maven-opts: '-Xmx1024m'
+        settings: '{aaa-settings}'
+        global-settings: '{odl-global-settings}'
 
     publishers:
         - email-notification:
-            email-prefix: '{email-prefix}'
+            email-prefix: '[aaa]'
         - sonar:
             branch: 'origin/{branch}'
             language: 'java'
-            maven-opts: '{mvn-opts}'
+            maven-opts: '-Xmx1024m'