Update the postscriptbuild usage 39/51239/3
authorJulien <zhang.jun3g@zte.com.cn>
Sat, 27 Jan 2018 15:45:47 +0000 (23:45 +0800)
committerJulien <zhang.jun3g@zte.com.cn>
Sun, 4 Feb 2018 16:29:01 +0000 (00:29 +0800)
when we want to trigger the scipt only when previous builders fail, we
should also set the other macro 'script-only-if-succeeded' to false, the
default value is true.

script-only-if-succeeded: false
script-only-if-failed: true

Change-Id: Ifdca24ea8d076dd4e16ef466705e0167b97cf1df
Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
jjb/global/releng-macros.yml

index bd9f97d..d3ffb0b 100644 (file)
     builders:
       - shell: |
           #!/bin/bash
-          # Install python package 
+          # Install python package
           sudo pip install "flake8==2.6.2"
 
           echo "Checking python code..."
             - shell:
                 !include-raw-escape: installer-report.sh
       - postbuildscript:
+          script-only-if-succeeded: false
           script-only-if-failed: true
           builders:
             - shell: |