Merge "Add boolean parameter to run test after build"
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 12 Apr 2017 05:36:06 +0000 (05:36 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 12 Apr 2017 05:36:06 +0000 (05:36 +0000)
jjb/integration/include-raw-integration-multipatch-distribution-test.sh
jjb/integration/integration-test-jobs.yaml
jjb/releng-macros.yaml

index 70aa31ace6cf62763cf4b35a031529fccba68c4c..bf1ce351f1f04da29d4f6bf7fd9efb0d129d1f26 100644 (file)
@@ -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
index e8e396fa82b03b40b51b7ec41606e1fd19288def..ebdc8e320a4bc8744211d755ba9fe3bdf73a8def 100644 (file)
     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:
       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:
index a6a58855be87f4815dfa355c6eb2fd92529b7d58..140892540de55300d00d5a66efe6dba902f39529 100644 (file)
           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: