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

set -ex

# copy files which can be published, if needed
mkdir out
cp vmlinux arch/${ARCH}/boot/Image.gz out
cp .config out/kernel.config
cp arch/${ARCH}/configs/defconfig out
for f in ${KERNEL_DTBS}; do
    cp arch/${ARCH}/boot/dts/$f out;
done

# Create MD5SUMS file
(cd out && md5sum * > MD5SUMS.txt)

wget -q ${BUILD_URL}consoleText -O out/build-log-${JOB_NAME}-${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 python ${HOME}/bin/linaro-cp.py \
     --server ${PUBLISH_SERVER} \
     --link-latest \
     out ${PUB_DEST}