aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom/publishers.sh
blob: d3008421dda7fc199d4ce5b285d61eead3b0b1f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

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)

wget -q ${BUILD_URL}consoleText -O out/build-log-$(echo ${JOB_NAME}|sed -e 's/[^A-Za-z0-9._-]/_/g')-${BUILD_NUMBER}.txt

# 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 \
     --link-latest \
     out ${PUB_DEST}