By default multiplatch builds all patches but does not
run test unless new parameter RUNTEST is set to true.
Also fix variable name in multipatch script.
Change-Id: I75407b0508395db76387dd44b5c4cff73ed8648d
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
# 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
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:
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: