]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
jenkins-job-builder: postbuildscript publisher fixes 202/head
authorKen Dreyer <kdreyer@redhat.com>
Tue, 3 Nov 2015 22:55:09 +0000 (15:55 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Tue, 3 Nov 2015 22:55:09 +0000 (15:55 -0700)
Prior to this commit, the JJB YAML syntax was just broken, and
jenkins-job-builder would not parse this file.

Fix the YAML syntax, make the script run properly as a "shell" step,
make it execute regardless of the build status (with the
"script-only-if-*" settings).

jenkins-job-builder/config/definitions/jjb.yml

index c6e3add15d5d4cf6269c749bb37eb77e00cd97ce..6bdc27acab3dfdb1131fff007162ad97779d3919 100644 (file)
@@ -34,6 +34,9 @@
     builders:
       - shell: "bash jenkins-job-builder/build/build"
 
-    - postbuildscript:
-        generic-script:
-            - 'rm $HOME/.jenkins_jobs.ini'
+    publishers:
+      - postbuildscript:
+          builders:
+            - shell: 'rm $HOME/.jenkins_jobs.ini'
+        script-only-if-succeeded: false
+        script-only-if-failed: false