Migrate maven to freestyle for merge 77/43677/5
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 11 Aug 2016 05:47:34 +0000 (15:47 +1000)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 8 Sep 2016 23:21:02 +0000 (19:21 -0400)
Change-Id: I09e1cffc6c8caaf15daef14758e7210878d401b5
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/releng-templates-java.yaml

index cb84eb8060cdc94f0463d20400ac618f8adc8755..ba326e0ac2bfc33d5f6444e7996b227a7bcbd491 100644 (file)
     #     stream:    release stream (eg. stable-lithium or beryllium)
     #     branch:    git branch (eg. stable/lithium or master)
 
-    project-type: maven
+    project-type: freestyle
     node: '{build-node}'
     jdk: '{jdk}'
 
             name: '{project}'
             branch: '{branch}'
 
-    prebuilders:
+    builders:
         - jacoco-nojava-workaround
         - provide-maven-settings:
             global-settings-file: 'odl-global-settings'
             settings-file: '{mvn-settings}'
-
-    maven:
-        maven-name: '{mvn33}'
-        goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
-        maven-opts: '{mvn-opts}'
-        settings: '{mvn-settings}'
-        settings-type: cfp
-        global-settings: 'odl-global-settings'
-        global-settings-type: cfp
-        post-step-run-condition: UNSTABLE
-
-    postbuilders:
+        - maven-target:
+            maven-version: '{mvn33}'
+            goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
+            java-opts:
+              - '{mvn-opts}'
+            settings: '{mvn-settings}'
+            settings-type: cfp
+            global-settings: 'odl-global-settings'
+            global-settings-type: cfp
+        - maven-target:
+            maven-version: '{mvn33}'
+            goals: 'validate jar:jar deploy:deploy -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
+            java-opts:
+              - '{mvn-opts}'
+            settings: '{mvn-settings}'
+            settings-type: cfp
+            global-settings: 'odl-global-settings'
+            global-settings-type: cfp
         - conditional-step:
             condition-kind: file-exists
             condition-filename: deploy-site.xml
                 global-settings: 'odl-global-settings'
                 global-settings-type: cfp
 
-    reporters:
-        - findbugs
-
     publishers:
         - email-notification:
             email-prefix: '[{project-name}]'
-        - maven-deploy:
-            id: ''
-            unique-version: true
-            deploy-unstable: false
         - jacoco-report
+        - findbugs
         - opendaylight-infra-shiplogs:
             maven-version: '{mvn33}'