From: Anil Belur Date: Wed, 12 Apr 2017 05:36:06 +0000 (+0000) Subject: Merge "Add boolean parameter to run test after build" X-Git-Tag: release/carbon~165 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=b44aaa0cfbb05c8250c06d9dac16085f1e9ac732;hp=8ea99dd210066427b9d1faa55cac7378aaeb3051;p=releng%2Fbuilder.git Merge "Add boolean parameter to run test after build" --- diff --git a/jjb/integration/include-raw-integration-multipatch-distribution-test.sh b/jjb/integration/include-raw-integration-multipatch-distribution-test.sh index 70aa31ace6..bf1ce351f1 100644 --- a/jjb/integration/include-raw-integration-multipatch-distribution-test.sh +++ b/jjb/integration/include-raw-integration-multipatch-distribution-test.sh @@ -9,7 +9,7 @@ # create a fresh empty place to build this custom distribution BUILD_DIR=${WORKSPACE}/patch_tester POM_FILE=${WORKSPACE}/patch_tester/pom.xml -DISTRIBUTION_BRANCH_TO_BUILD=$BRANCH #renaming variable for clarity +DISTRIBUTION_BRANCH_TO_BUILD=$DISTROBRANCH #renaming variable for clarity rm -rf $BUILD_DIR mkdir -p $BUILD_DIR diff --git a/jjb/integration/integration-test-jobs.yaml b/jjb/integration/integration-test-jobs.yaml index e8e396fa82..ebdc8e320a 100644 --- a/jjb/integration/integration-test-jobs.yaml +++ b/jjb/integration/integration-test-jobs.yaml @@ -353,6 +353,8 @@ parameters: - patches-to-build-parameter: patches_to_build: '$PATCHES_TO_BUILD' + - run-test-parameter: + run-test: 'false' - integration-distribution-branch: branch: '{branch}' - opendaylight-infra-parameters: @@ -392,11 +394,15 @@ post-step-run-condition: 'SUCCESS' postbuilders: - - trigger-builds: - - project: '{csit-list}' - block: true - predefined-parameters: - BUNDLEURL=$BUNDLEURL + - conditional-step: + condition-kind: boolean-expression + condition-expression: $RUNTEST + steps: + - trigger-builds: + - project: '{csit-list}' + block: true + predefined-parameters: + BUNDLEURL=$BUNDLEURL publishers: - opendaylight-infra-shiplogs: diff --git a/jjb/releng-macros.yaml b/jjb/releng-macros.yaml index a6a58855be..140892540d 100644 --- a/jjb/releng-macros.yaml +++ b/jjb/releng-macros.yaml @@ -75,6 +75,14 @@ default: '' description: 'csv list of patches in project:changeset format to build distribution with' +- parameter: + name: run-test-parameter + parameters: + - string: + name: RUNTEST + default: '{run-test}' + description: 'Set true to run test after build' + - parameter: name: distribution-branch-to-build-parameter parameters: