Fix publisher macro causing JJB 2.5.0 errors 04/15104/4
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Tue, 2 Oct 2018 17:19:45 +0000 (12:19 -0500)
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Thu, 18 Oct 2018 17:15:27 +0000 (12:15 -0500)
Fixing postbuildscripts publisher to resolve JJB 2.5.0 errors

Change-Id: Iab07fe7a419b2084591b4f386340accf9ec47064
Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
jjb/global-macros.yaml

index 92c881f..ab7bf5b 100644 (file)
     publishers:
       - postbuildscript:
           builders:
-            - shell: !include-raw: include-raw-deploy-archives.sh
-            - maven-target:
-                maven-version: '{maven-version}'
-                pom: '.archives/deploy-archives.xml'
-                goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
-                settings: 'jenkins-log-archives-settings'
-                settings-type: cfp
-                global-settings: 'global-settings'
-                global-settings-type: cfp
-            - description-setter:
-                regexp: '^Build logs: .*'
-          script-only-if-succeeded: false
-          script-only-if-failed: false
+            - role: BOTH
+              build-on:
+                - ABORTED
+                - FAILURE
+                - NOT_BUILT
+                - SUCCESS
+                - UNSTABLE
+              build-steps:
+                - lf-infra-sysstat
+                - lf-infra-ship-logs
           mark-unstable-if-failed: true
       - workspace-cleanup:
           fail-build: false