Revert "Add method to not trigger downstream ar" 17/61617/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 14 Aug 2017 14:22:51 +0000 (10:22 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 14 Aug 2017 14:25:07 +0000 (10:25 -0400)
This reverts commit 32b1f54a6145cbe9558d4c8810bd584197c68458.

The "builder" type for triggering downstream jobs do not support
checking if the job is unstable or failed so causes 2 copies of every
job to trigger. Looks like we need to find another way to handle this :(

Change-Id: Ic2f725ac9f9753c6d59624f99b1d635e84f72015
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/autorelease/autorelease-templates.yaml

index d1e3ec70601c75bfb0e6ddfe46fa82e2dc78198c..ee3bb89c275110aaea145ba77d8a8d6294b3941e 100644 (file)
           name: ARCHIVE_ARTIFACTS
           default: '{archive-artifacts}'
           description: Artifacts to archive to the logs server.
-      - bool:
-          name: TRIGGER_DOWNSTREAM_JOBS
-          default: true
-          description: |
-              Used by the post-build-script step to determine if downstream
-              jobs should be triggered for this run or not.
 
     scm:
       - git:
 
     publishers:
       - opendaylight-infra-notify-status
-      - postbuildscript:
-          builders:
-            - conditional-step:
-                condition-kind: boolean-expression
-                condition-expression: $TRIGGER_DOWNSTREAM_JOBS
-                steps:
-                  - trigger-builds:
-                      - project: 'integration-distribution-test-{integration-test}'
-                        condition: UNSTABLE_OR_BETTER
-                        property-file: variables.jenkins-trigger
-                        fail-on-missing: true
-                      - project: 'integration-distribution-test-{integration-test}'
-                        condition: FAILED
-                        trigger-with-no-params: true
-                      - project: 'integration-sanity-test-{integration-test}'
-                        condition: UNSTABLE_OR_BETTER
-                        property-file: variables.jenkins-trigger
-                        fail-on-missing: true
-                      - project: 'integration-sanity-test-{integration-test}'
-                        condition: FAILED
-                        trigger-with-no-params: true
-                      - project: 'packaging-build-rpm-{stream}'
-                        condition: UNSTABLE_OR_BETTER
-                        predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
-                        property-file: variables.jenkins-trigger
-                        fail-on-missing: true
-                      - project: 'packaging-build-deb-{stream}'
-                        condition: UNSTABLE_OR_BETTER
-                        predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
-                        property-file: variables.jenkins-trigger
-                        fail-on-missing: true
-          script-only-if-succeeded: false
-          script-only-if-failed: false
+      - trigger-parameterized-builds:
+          - project: 'integration-distribution-test-{integration-test}'
+            condition: UNSTABLE_OR_BETTER
+            property-file: variables.jenkins-trigger
+            fail-on-missing: true
+          - project: 'integration-distribution-test-{integration-test}'
+            condition: FAILED
+            trigger-with-no-params: true
+          - project: 'integration-sanity-test-{integration-test}'
+            condition: UNSTABLE_OR_BETTER
+            property-file: variables.jenkins-trigger
+            fail-on-missing: true
+          - project: 'integration-sanity-test-{integration-test}'
+            condition: FAILED
+            trigger-with-no-params: true
+          - project: 'packaging-build-rpm-{stream}'
+            condition: UNSTABLE_OR_BETTER
+            predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
+            property-file: variables.jenkins-trigger
+            fail-on-missing: true
+          - project: 'packaging-build-deb-{stream}'
+            condition: UNSTABLE_OR_BETTER
+            predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
+            property-file: variables.jenkins-trigger
+            fail-on-missing: true
       - lf-infra-publish
 
 - job-template: