blob: 664b6f3b5c6515ea35b124ff179a21c9b9eb6dcc (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
- 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 dev-01.tcwglab:$src_dir to https://snapshots.linaro.org/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_opt=""
$dry_run && dry_run_opt="--dry-run" || true
time python ${HOME}/bin/linaro-cp.py $dry_run_opt --api_version 3 \
$src_dir components/toolchain/$dst_dir/
publishers:
- email-ext:
recipients: 'maxim.kuvyrkov@linaro.org, fathi.boudra@linaro.org'
always: true
|