diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2016-06-03 19:28:08 +0100 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2016-06-03 19:28:08 +0100 |
commit | 4e91c4b74d693eab4a7bfae3458c314352764c65 (patch) | |
tree | ffb21bc7956059b4111c3dae2b1e7d1d073395fc /tcwg-publish-files.yaml | |
parent | a6c7310c3592560268442944518be7a497f1bc9d (diff) |
tcwg-publish-files: New job to publish abe's infrastructure files
Change-Id: Id18808b82bdcc38b387d0b61cfdd297188721d91
Diffstat (limited to 'tcwg-publish-files.yaml')
-rw-r--r-- | tcwg-publish-files.yaml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/tcwg-publish-files.yaml b/tcwg-publish-files.yaml new file mode 100644 index 00000000..90ccff4e --- /dev/null +++ b/tcwg-publish-files.yaml @@ -0,0 +1,52 @@ +- job: + name: tcwg-publish-files + project-type: freestyle + defaults: global + logrotate: + daysToKeep: 30 + numToKeep: 30 + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + linaro: + - job-build + - job-cancel + parameters: + - string: + name: src_dir + default: '/home/maxim.kuvyrkov/public_html/infrastructure/gcc6' + description: 'Directory to publish files from on dev-01' + - string: + name: dst_dir + default: 'infrastructure' + description: 'Destination dir under snapshots.linaro.org:components/toolchain/' + - bool: + name: dry_run + default: true + description: 'Whether to do a dry-run' + disabled: false + node: tcwg-x86_64-dev-01 + display-name: 'TCWG CCC Copy files to snapshots.l.o' + wrappers: + - timestamps + builders: + - linaro-publish-token + - shell: | + #!/bin/bash + + set -ex + + echo "Publishing $src_dir to components/toolchain/$dst_dir" + ls -la $src_dir + + # 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 + $dry_run || time python ${HOME}/bin/linaro-cp.py --api_version 3 \ + $src_dir components/toolchain/$dst_dir/ + publishers: + - email-ext: + recipients: 'maxim.kuvyrkov@linaro.org, robert.savoye@linaro.org, fathi.boudra@linaro.org' + always: true |