Sync job files with internal CI

Sync job files with platform-ci commit:
539c151d0cd99a5e6ca6c0e6966f6d8579fe864e

Signed-off-by: Zelalem <zelalem.aweke@arm.com>
Change-Id: Ida470e00da76188ce3987d1fa93ec758b5e0f23a
diff --git a/job/tf-static-checks/run_static_checks.sh b/job/tf-static-checks/run_static_checks.sh
new file mode 100644
index 0000000..b2d3a48
--- /dev/null
+++ b/job/tf-static-checks/run_static_checks.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+#
+# Copyright (c) 2019, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+# This script runs the static checks in tf-static-checks
+# jenkins job.
+
+if [ "$REPO_UNDER_TEST" = "trusted-firmware" ]; then
+	cd "$TF_CHECKOUT_LOC"
+else
+	cd "$TFTF_CHECKOUT_LOC"
+fi
+
+export IS_CONTINUOUS_INTEGRATION=1
+static_fail=0
+
+if ! "$CI_ROOT/script/static-checks/static-checks.sh"; then
+	static_fail=1
+fi
+
+if [ -f "static-checks.log" ]; then
+	mv "static-checks.log" "$WORKSPACE"
+fi
+
+exit "$static_fail"