aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom/publishers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lt-qcom/publishers.sh')
-rw-r--r--lt-qcom/publishers.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/lt-qcom/publishers.sh b/lt-qcom/publishers.sh
index e9be48df14..d3008421dd 100644
--- a/lt-qcom/publishers.sh
+++ b/lt-qcom/publishers.sh
@@ -2,6 +2,11 @@
set -ex
+if [ ! -d "out" ]; then
+ echo "Avoid publishing, not out directory exists."
+ exit 0
+fi
+
# Create MD5SUMS file
(cd out && md5sum $(find . -type f) > MD5SUMS.txt)
@@ -10,7 +15,7 @@ wget -q ${BUILD_URL}consoleText -O out/build-log-$(echo ${JOB_NAME}|sed -e 's/[^
# Publish to snapshots
test -d ${HOME}/bin || mkdir ${HOME}/bin
wget https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
+
time python3 ${HOME}/bin/linaro-cp.py \
- --server ${PUBLISH_SERVER} \
--link-latest \
out ${PUB_DEST}