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"