Account for AWS-CI in Conditionals on CI Type
Several conditions exist in the scripts to see whether they're
running the On-Premises internal CI, or the TF.org CI. They
all check (ultimately) the Jenkins URL as containing "arm.com"
or not.
This does not work with the addition of the AWS CI Jenkins,
whose URL ends in "aws.arm.com". At least as a first step,
this patch changes those tests to look more specifically for
"oss.arm.com" rather than just "arm.com".
This at least seems unlikely to break any existing code, since
previously, Jenkins URLs ending in "arm.com" were always
preceded by "oss."
Signed-off-by: Gary Morrison <gary.morrison@arm.com>
Change-Id: I05fed06296ac989a9a54df82eca3f4018e952606
diff --git a/script/gen_merge_report.sh b/script/gen_merge_report.sh
index 35158d1..61527b7 100644
--- a/script/gen_merge_report.sh
+++ b/script/gen_merge_report.sh
@@ -9,7 +9,7 @@
REPORT_HTML=$2
TEST_DEF_FOLDER="${WORKSPACE}/test-definitions"
-if echo "$JENKINS_URL" | grep -q "arm.com"; then
+if echo "$JENKINS_URL" | grep -q "oss.arm.com"; then
ARTIFACT_PATH='artifact/html'
INFO_PATH='lcov_report/coverage.info'
JSON_PATH='output_file.json'
@@ -155,7 +155,7 @@
git checkout $TEST_DEFINITIONS_REFSPEC
popd
- if echo "$JENKINS_URL" | grep -q "arm.com"; then
+ if echo "$JENKINS_URL" | grep -q "oss.arm.com"; then
bash $TEST_DEF_FOLDER/scripts/tools/code_coverage/fastmodel_baremetal/bmcov/report/branch_coverage/merge.sh \
-j $MERGE_JSON -l ${OUTDIR} -p $project
else