run-build.sh: workaround armclang error: Failed to check out a license.

armclang --version
armclang: error: Failed to check out a license.
The license file could not be found. Check that ARMLMD_LICENSE_FILE is set
correctly.

ARMLMD_LICENSE_FILE should be set in the TF-M docker image:
https://git.trustedfirmware.org/ci/dockerfiles.git/commit/?id=07e1447b0f1950045112f8f9e88f6fd68b1d7653

Until the image is deployed, use a workaround to ensure the environment
variable is set. The workaround is limited to trustedfirmware.org domain
to avoid side effect.

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Change-Id: I6b732fe5b5a0a8c5a9abae1e2b5c1280358486d2
diff --git a/run-build.sh b/run-build.sh
index e931776..7798642 100755
--- a/run-build.sh
+++ b/run-build.sh
@@ -20,6 +20,10 @@
 	exit 1
 fi
 
+# FIXME: workaround for Arm Clang license server on ci.trustedfirmware.org
+[[ ${JENKINS_URL} == *trustedfirmware.org* ]] && \
+    export ARMLMD_LICENSE_FILE=${ARMLMD_LICENSE_FILE:-27000@ci.trustedfirmware.org}
+
 set +e
 echo "output current build environment"
 cat /etc/issue