CI jobs sanity check and deployment: git checkout scripts
The script URL has changed.
Use git checkout instead of wget to prevent the
error happen again
Signed-off-by: Arthur She <arthur.she@linaro.org>
Change-Id: I7c98a81b234207c8b4cfea6a437e8560db3cf18f
diff --git a/ci-job-configs-sanity-check.yaml b/ci-job-configs-sanity-check.yaml
index df87821..1f81174 100644
--- a/ci-job-configs-sanity-check.yaml
+++ b/ci-job-configs-sanity-check.yaml
@@ -73,15 +73,15 @@
cd configs/
- mkdir -p ci/ && wget -q https://git.trustedfirmware.org/next/ci/tf-ci-scripts.git/plain/ci/run-jjb.py -O ci/run-jjb.py
+ git clone "https://review.trustedfirmware.org/next/ci/tf-ci-scripts"
# FIXME run-jjb.py was meant to be used for deployment only
# use JJB 'test' command instead of 'update' command
- sed -i "s|update|test|" ci/run-jjb.py
+ sed -i "s|update|test|" tf-ci-scripts/ci/run-jjb.py
export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
jenkins-jobs --version
- python3 ci/run-jjb.py
+ python3 tf-ci-scripts/ci/run-jjb.py
publishers:
- email:
recipients: 'ben.copeland@linaro.org riku.voipio@linaro.org kelley.spoon@linaro.org fathi.boudra@linaro.org'
diff --git a/trigger-ci-job-configs.yaml b/trigger-ci-job-configs.yaml
index 376e41e..d44b52b 100644
--- a/trigger-ci-job-configs.yaml
+++ b/trigger-ci-job-configs.yaml
@@ -76,7 +76,7 @@
- shell: |
#!/bin/bash
- set -e
+ set -ex
echo ""
echo "########################################################################"
@@ -89,8 +89,8 @@
export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
jenkins-jobs --version
- mkdir -p ci/ && wget -q https://git.trustedfirmware.org/next/ci/tf-ci-scripts.git/plain/ci/run-jjb.py -O ci/run-jjb.py
- python3 ci/run-jjb.py
+ git clone "https://review.trustedfirmware.org/next/ci/tf-ci-scripts"
+ python3 tf-ci-scripts/ci/run-jjb.py
publishers:
- email:
recipients: 'ben.copeland@linaro.org kelley.spoon@linaro.org paul.sokolovsky@linaro.org fathi.boudra@linaro.org'