Add capacity for honeycomb to verify images. 73/1073/3
authorEd Warnicke <eaw@cisco.com>
Wed, 11 May 2016 16:48:45 +0000 (11:48 -0500)
committerC.J. Collier <cjcollier@linuxfoundation.org>
Mon, 16 May 2016 16:07:54 +0000 (16:07 +0000)
Change-Id: Ie5fe2507b760b3f681be4291f9c52bf609dbfaca
Signed-off-by: Ed Warnicke <eaw@cisco.com>
jjb/honeycomb/honeycomb.yaml

index a1d0994..44bcf13 100644 (file)
@@ -4,6 +4,7 @@
         - 'honeycomb-verify-{branch}-{os}'
         - 'honeycomb-merge-{branch}-{os}'
         - 'honeycomb-integration-{branch}-{os}'
+        - 'honeycomb-verify-image-{branch}-{os}'
     project: 'honeycomb'
     branch: 'master'
     os: 'ubuntu1404'
         - email-notification:
             email-prefix: '[honeycomb]'
 
+- job-template:
+    name: 'honeycomb-verify-image-{branch}-{os}'
+    project-type: maven
+    node: 'verify-image-{os}'
+    concurrent: true
+
+    logrotate:
+        daysToKeep: '{build-days-to-keep}'
+        numToKeep: '{build-num-to-keep}'
+        artifactDaysToKeep: '{build-artifact-days-to-keep}'
+        artifactNumToKeep: '{build-artifact-num-to-keep}'
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+        - gerrit-parameter:
+            branch: '{branch}'
+        - os-parameter:
+            os: '{os}'
+
+    scm:
+        - gerrit-trigger-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: '$GERRIT_REFSPEC'
+            choosing-strategy: 'gerrit'
+
+    wrappers:
+        - build-timeout
+        - ssh-agent-credentials:
+            users:
+                - '{ssh-credentials}'
+
+    triggers:
+        - gerrit:
+            server-name: 'Default'
+            trigger-on:
+                - comment-added-contains-event:
+                    comment-contains-value: 'verify-images'
+            projects:
+              - project-compare-type: 'ANT'
+                project-pattern: '{project}'
+                branches:
+                  - branch-compare-type: 'ANT'
+                    branch-pattern: '**/{branch}'
+            skip-vote:
+                successful: true
+                failed: true
+                unstable: true
+                notbuilt: true
+
+    prebuilders:
+        - shell: |
+            if [ "${{OS}}" == "ubuntu1404" ];then sudo update-java-alternatives -s /usr/lib/jvm/java-1.8.0-openjdk-amd64;fi
+    maven:
+        maven-name: '{mvn33}'
+        root-pom: 'pom.xml'
+        goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Dkaraf.keep.unpack=true'
+        maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
+        settings: '{honeycomb-settings}'
+        global-settings: '{global-settings}'
+
+    postbuilders:
+        - shell: |
+            if [ "${{OS}}" == "ubuntu1404" ];then sudo update-java-alternatives -s /usr/lib/jvm/java-1.7.0-openjdk-amd64;fi
+
+    publishers:
+        - email-notification:
+            email-prefix: '[honeycomb]'
+
 - job-template:
     name: 'honeycomb-merge-{branch}-{os}'
     project-type: maven