Add repoBuild profile used by some projects
[releng/builder.git] / jjb / job.yaml.template
index 84d4c9131f612a7713b66cfbfd9ddc7c7a70ea35..bfb8ecb98448c9f7dec0fca6f2fcdb3aca0f4e7f 100644 (file)
         - 'PROJECT-merge-{stream}'
         - 'PROJECT-daily-{stream}'
         - 'PROJECT-integration-{stream}'
+        - 'PROJECT-sonar'
 
     # stream:    branch with - in place of / (eg. stable-helium)
     # branch:    branch (eg. stable/helium)
-    stream:
-        - master:
-            branch: 'master'
-        - stable-helium:
-            branch: 'stable/helium'
-
+    STREAMS
     project: 'PROJECT'
     jdk: 'openjdk7'
 
@@ -40,6 +36,7 @@
 
     project-type: maven
     node: dynamic_verify
+    concurrent: true
     jdk: '{jdk}'
 
     logrotate:
     publishers:
         - email-notification:
             email-prefix: '[PROJECT]'
-        - sonar:
-            branch: '{stream}'
-            language: 'java'
-            maven-opts: 'MAVEN_OPTS'
 
 - job-template:
     name: 'PROJECT-integration-{stream}'
     publishers:
         - email-notification:
             email-prefix: 'EMAIL_PREFIX'
+
+- job-template:
+    name: 'PROJECT-sonar'
+
+    project-type: maven
+    node: dynamic_verify
+    jdk: '{jdk}'
+
+    logrotate:
+        daysToKeep: '7'
+        numToKeep: '10'
+        artifactDaysToKeep: '1'
+        artifactNumToKeep: '1'
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+
+    scm:
+        - git-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: ''
+            branch: 'SONAR_BRANCH'
+
+    wrappers:
+        - build-timeout
+        - ssh-agent-credentials:
+            user: '{ssh-credentials}'
+
+    triggers:
+        - timed: 'H H * * *'
+
+    maven:
+        maven-name: '{mvn32}'
+        root-pom: 'pom.xml'
+        goals: 'validate'
+        maven-opts: 'MAVEN_OPTS'
+        settings: '{PROJECT-settings}'
+        global-settings: '{odl-global-settings}'
+
+    publishers:
+        - sonar:
+            language: 'java'
+            maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
+        - email-notification:
+            email-prefix: '[PROJECT]'