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/coverity_wrapper.sh b/script/coverity_wrapper.sh
index e9e4cd9..7a0959c 100644
--- a/script/coverity_wrapper.sh
+++ b/script/coverity_wrapper.sh
@@ -35,7 +35,7 @@
local need_compare
# If auth file is not provided and if on Arm infrastructure copy it
- if [ -z "$auth_file" ] && echo "$JENKINS_URL" | grep -q "arm.com"; then
+ if [ -z "$auth_file" ] && echo "$JENKINS_URL" | grep -q "oss.arm.com"; then
local auth_url="$project_filer/ci-files/coverity/tfcibot@$coverity_host"
url="$auth_url" saveas="$workspace/tfcibot@$coverity_host" fetch_file
auth_file="$workspace/tfcibot@$coverity_host"
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
diff --git a/script/scratch_scripts/fast-forward-master.sh b/script/scratch_scripts/fast-forward-master.sh
index 53c9591..bbdfa51 100755
--- a/script/scratch_scripts/fast-forward-master.sh
+++ b/script/scratch_scripts/fast-forward-master.sh
@@ -23,7 +23,7 @@
# On OpenCI, disable push for now, until we're confident enough we want to do
# this automatically. See comments in https://linaro.atlassian.net/browse/TFC-223.
-if echo "$JENKINS_URL" | grep -q "arm.com"; then
+if echo "$JENKINS_URL" | grep -q "oss.arm.com"; then
git push origin master
fi
diff --git a/script/test_definitions.sh b/script/test_definitions.sh
index 9ea8ad1..f81bdb8 100644
--- a/script/test_definitions.sh
+++ b/script/test_definitions.sh
@@ -4,7 +4,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
-if echo "$JENKINS_URL" | grep -q "arm.com"; then
+if echo "$JENKINS_URL" | grep -q "oss.arm.com"; then
export GERRIT_URL=${GERRIT_URL:-https://gerrit.oss.arm.com}
export TEST_DEFINITIONS_REPO=${TEST_DEFINITIONS_REPO:-${GERRIT_URL}/tests/lava/test-definitions.git}
diff --git a/script/tf-coverity/common-def.sh b/script/tf-coverity/common-def.sh
index ab226a5..09b03b0 100644
--- a/script/tf-coverity/common-def.sh
+++ b/script/tf-coverity/common-def.sh
@@ -38,7 +38,7 @@
# infraestructure)
is_arm_jenkins_env() {
if [ "$JENKINS_HOME" ]; then
- if echo "$JENKINS_URL" | grep -q "arm.com"; then
+ if echo "$JENKINS_URL" | grep -q "oss.arm.com"; then
return 0;
fi
fi