Convert distribution jobs to be regular jjb templates
[releng/builder.git] / jjb / releng-templates-java.yaml
index 379d05cbfb8ecf723264d414031fda657079a26b..6f9eed499022d96e2dd93ec6e4e060128d6db7b4 100644 (file)
         - archive-build:
             maven-version: '{mvn33}'
 
-# Template: integration-patch-distribution-{stream}
-# Goal: Build a patch and make sure the distribution can deploy with this change
-# Operation: This job template builds a patch, creates a distribution containing
-#            the patch, and triggers the distribution deploy test
+- job-template:
+    name: '{name}-distribution-{stream}'
+
+    # Required variables:
+    #     stream:    release stream (eg. stable-lithium or beryllium)
+    #     branch:    git branch (eg. stable/lithium or master)
+
+    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: 'integration/distribution'
+
+    scm:
+        - git-scm:
+            refspec: ''
+            branch: '{branch}'
+
+    wrappers:
+        - opendaylight-infra-wrappers:
+            build-timeout: '{build-timeout}'
+
+    triggers:
+        - reverse:
+            jobs: '{project}-merge-{stream}'
+            result: 'success'
+
+    prebuilders:
+        - provide-maven-settings:
+            global-settings-file: 'odl-global-settings'
+            settings-file: '{mvn-settings}'
+
+    maven:
+        maven-name: '{mvn33}'
+        root-pom: 'pom.xml'
+        goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
+        maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
+        settings: 'integration-distribution-settings'
+        settings-type: cfp
+        global-settings: 'odl-global-settings'
+        global-settings-type: cfp
+
+    publishers:
+        - email-notification:
+            email-prefix: '[{project}]'
+        - maven-deploy:
+            id: ''
+            unique-version: true
+            deploy-unstable: false
+        - archive-build:
+            maven-version: '{mvn33}'
 
 - job-template:
+    # Template: integration-patch-distribution-{stream}
+    # Goal: Build a patch and make sure the distribution can deploy with this change
+    # Operation: This job template builds a patch, creates a distribution containing
+    #            the patch, and triggers the distribution deploy test
+
     name: '{name}-distribution-check-{stream}'
     disabled: '{obj:disable_distribution_check}'