Skip to content

Commit 508d645

Browse files
committed
allow to set bot env
1 parent b6a87f8 commit 508d645

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

pr-schedule-tests

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ if [ $(echo $CONFIG_LINE | tr ';' '\n' | grep SCRAM_ARCH= | wc -l) -eq 1 ] ; the
8383
echo "DO_STATIC_CHECKS=${DO_STATIC_CHECKS}" >> $OUTPUT_FILE
8484
echo "DO_DUPLICATE_CHECKS=${DO_DUPLICATE_CHECKS}" >> $OUTPUT_FILE
8585
echo "EXTRA_RELVALS_TESTS=${EXTRA_RELVALS_TESTS}" >> $OUTPUT_FILE
86+
for v in $(echo ${CMSBOT_SET_ENV} | tr ',' ' ') ; do
87+
echo "CMSBOT_SET_ENV_${v}=true" >> $OUTPUT_FILE
88+
done
8689
for i in "" ${EXTRA_RELVALS_TESTS} ; do
8790
[ "$i" != "" ] && i="_$i"
8891
for t in EXTRA_MATRIX_ARGS MATRIX_EXTRAS EXTRA_MATRIX_COMMAND_ARGS ; do

pr_testing/test_multiple_prs.sh

+1
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ if ${BUILD_EXTERNAL} ; then
527527
CMSBUILD_ARGS="${CMSBUILD_ARGS} --define cms_debug_packages=${dbg_pkgs}"
528528
fi
529529
if [ $(grep 'upload-package-store-s3' pkgtools/cmsBuild | wc -l) -gt 0 ] ; then
530+
[ "${NO_PACKAGE_STORE}" = "true" ] && UPLOAD_TO_PACKAGE_STORE=false
530531
if $UPLOAD_TO_PACKAGE_STORE ; then
531532
CMSBUILD_ARGS="${CMSBUILD_ARGS} --upload-package-store-s3"
532533
else

process_pr.py

+1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def format(s, **kwds):
168168
"disable_poison": ["true|false", "DISABLE_POISON"],
169169
"use_ib_tag": ["true|false", "USE_IB_TAG"],
170170
"baseline": ["self|default", "USE_BASELINE"],
171+
"set_env": ["[A-Z][A-Z0-9_]+(\s*,\s*[A-Z][A-Z0-9_]+|)*","CMSBOT_SET_ENV"],
171172
"skip_test(s|)": [format(r"(%(tests)s)(\s*,\s*(%(tests)s))*", tests=SKIP_TESTS), "SKIP_TESTS"],
172173
"dry_run": ["true|false", "DRY_RUN"],
173174
"jenkins_(slave|node)": [JENKINS_NODES, "RUN_ON_SLAVE"],

0 commit comments

Comments
 (0)