From: Thanh Ha Date: Mon, 12 Mar 2018 01:48:09 +0000 (-0400) Subject: Support PostBuildScript 2.x X-Git-Tag: v0.18.0~20^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F9387%2F3;p=releng%2Fglobal-jjb.git Support PostBuildScript 2.x This is a breaking change that requires consumers of global-jjb to switch to JJB 2.0.3 and install PostBuildScript 2.x in Jenkins. It updates lf-infra-publish macro to switch to the PostBuildScript 2.x YAML definitions. Issue: RELENG-832 Change-Id: I04020587acfb8b6550c0221ebfb97a501f46b15a Signed-off-by: Thanh Ha --- diff --git a/jjb/lf-macros.yaml b/jjb/lf-macros.yaml index fb179926..133becdc 100644 --- a/jjb/lf-macros.yaml +++ b/jjb/lf-macros.yaml @@ -382,11 +382,17 @@ publishers: - postbuildscript: builders: - - lf-infra-sysstat - - lf-infra-ship-logs - script-only-if-succeeded: false - script-only-if-failed: false - mark-unstable-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: exclude: # Do not clean up *.jenkins-trigger files for jobs that use a diff --git a/tox.ini b/tox.ini index ede16ca2..69381d08 100644 --- a/tox.ini +++ b/tox.ini @@ -29,7 +29,7 @@ commands = [testenv:jjb] deps = - jenkins-job-builder==2.0.2 + jenkins-job-builder>=2.0.3 commands = jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test