Update yangtools yaml to be more inline with the global templates 08/14408/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 22 Jan 2015 23:10:43 +0000 (18:10 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 22 Jan 2015 23:10:46 +0000 (18:10 -0500)
The global templates have changed a bit since yangtools move to JJB.
This updates the yangtools.yaml to incorporate some changes that are
missing.

Also add the missing integration job type.

Change-Id: I0036a97d42af0a487d713b7e11ee8b93f833407c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/yangtools/yangtools.yaml

index 4f2ab1dd610ec225695494cda5c1803190584d6e..4bd9d0bdfb39638ac741e325f90ab0793cbaad9e 100644 (file)
@@ -4,6 +4,7 @@
     jobs:
         - 'yangtools-merge-{stream}'
         - 'yangtools-daily-{stream}'
+        - 'yangtools-integration-{stream}'
         - 'yangtools-sonar'
 
     # stream:    branch with - in place of / (eg. stable-helium)
@@ -17,7 +18,6 @@
     project: 'yangtools'
     jdk: 'openjdk7'
 
-
 # For the Job templates below replace instances of:
 # PROJECT with your project name (eg. controller)
 # MAVEN_GOALS with your maven goals to build
@@ -56,6 +56,7 @@
             choosing-strategy: 'default'
 
     wrappers:
+        - build-timeout
         - ssh-agent-credentials:
             user: '{ssh-credentials}'
 
@@ -67,7 +68,7 @@
     maven:
         maven-name: '{mvn32}'
         root-pom: 'pom.xml'
-        goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install'
+        goals: 'clean install -V -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo '
         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
         settings: '{yangtools-settings}'
         global-settings: '{odl-global-settings}'
             branch: '{branch}'
 
     wrappers:
+        - build-timeout
         - ssh-agent-credentials:
             user: '{ssh-credentials}'
 
     maven:
         maven-name: '{mvn32}'
         root-pom: 'pom.xml'
-        goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install'
+        goals: 'clean install -V -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo '
         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
         settings: '{yangtools-settings}'
         global-settings: '{odl-global-settings}'
         - email-notification:
             email-prefix: '[yangtools]'
 
+- job-template:
+    name: 'yangtools-integration-{stream}'
+    disabled: true
+
+    # 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:
+    #     stream:    branch with - in place of / (eg. stable-helium)
+    #     branch:    branch (eg. stable/helium)
+
+    project-type: maven
+    node: dynamic_merge
+    jdk: '{jdk}'
+
+    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}'
+
+    scm:
+        - git-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: ''
+            branch: '{branch}'
+
+    wrappers:
+        - build-timeout
+        - ssh-agent-credentials:
+            user: '{ssh-credentials}'
+
+    triggers:
+        - reverse:
+            jobs: ''
+            result: 'success'
+
+    maven:
+        maven-name: '{mvn32}'
+        root-pom: 'pom.xml'
+        goals: 'clean install -V -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo '
+        maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
+        settings: '{yangtools-settings}'
+        global-settings: '{odl-global-settings}'
+
+    publishers:
+        - email-notification:
+            email-prefix: '[yangtools]'
+        - maven-deploy:
+            id: ''
+            unique-version: true
+            deploy-unstable: false
 
 - job-template:
     name: 'yangtools-sonar'