diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2015-10-15 22:12:53 +0200 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2015-10-15 20:59:46 +0000 |
commit | e75d761954ddefae42ebc035254e37d0cf6386bb (patch) | |
tree | d103f2eeb477b489bd1c9d2b5508682444aacbda /tcwg-publish-snapshot.yaml | |
parent | c7425b1f3a91dea10268ca6a6e1ef4ddd83c94ba (diff) |
Add tcwg-publish-snapshot job.
Change-Id: I6efecbcc535b338bbbaf22a101e6df45a58d5e82
Diffstat (limited to 'tcwg-publish-snapshot.yaml')
-rw-r--r-- | tcwg-publish-snapshot.yaml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tcwg-publish-snapshot.yaml b/tcwg-publish-snapshot.yaml new file mode 100644 index 0000000000..f243a999f2 --- /dev/null +++ b/tcwg-publish-snapshot.yaml @@ -0,0 +1,47 @@ +- job: + name: tcwg-publish-snapshot + project-type: freestyle + defaults: global + logrotate: + daysToKeep: 30 + numToKeep: 30 + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + parameter: + - string: + name: snapshot_version + default: '' + description: 'Snapshot revision to deploy (like: 5.2-2015.10)' + disabled: false + node: tcwg-ex40-01 + display-name: 'TCWG - Snapshot source tarball publishing' + wrappers: + - timestamps + builders: + - linaro-publish-token + - shell: | + #!/bin/bash + + set -ex + + trap cleanup_exit INT TERM EXIT + + cleanup_exit() + { + cd ${WORKSPACE} + rm -rf out + } + + mkdir -p out + cp /work/space/sources/gcc-linaro-snapshot-${snapshot_version}.tar.* out/ + # publish release notes + wget https://git.linaro.org/toolchain/release-notes.git/blob_plain/refs/heads/toolchain-snapshots:/components/toolchain/gcc-linaro/5/README.textile -O out/README.textile + + # 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 \ + out components/toolchain/gcc-linaro/${snapshot_version}/ |