blob: 3068b14a07f07278a538db22320897243590e6a9 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
- job:
name: mbl-openembedded-pyro
project-type: matrix
defaults: global
logrotate:
daysToKeep: 30
numToKeep: 30
artifactNumToKeep: 1
properties:
- authorization:
linaro:
- job-read
mbl-ci-users:
- job-read
- job-extended-read
- job-build
- job-cancel
parameters:
- string:
name: IMAGES
default: 'rpb-console-image'
- string:
name: BASE_URL
default: 'https://snapshots.linaro.org/'
- string:
name: PUB_DEST
default: 'openembedded/mbl/${MANIFEST_BRANCH}/${MACHINE}/${BUILD_NUMBER}/${DISTRO}'
disabled: false
node: master
display-name: 'MBL - OpenEmbedded (pyro)'
axes:
- axis:
type: user-defined
name: MANIFEST_BRANCH
values:
- 'linaro-pyro'
- 'linaro-pyro-pinned'
- axis:
type: user-defined
name: MACHINE
values:
- 'imx7s-warp'
- 'raspberrypi3'
- axis:
type: user-defined
name: DISTRO
values:
- rpb
- axis:
type: slave
name: label
values:
- docker-stretch-amd64
execution-strategy:
sequential: false
wrappers:
- timestamps
- ssh-agent-credentials:
users:
- 'MBL'
builders:
- shell:
!include-raw: mbl-openembedded/builders.sh
- inject:
properties-file: post_build_lava_parameters
- linaro-publish-token
- shell: |
#!/bin/bash
cat > ${WORKSPACE}/BUILD-INFO.txt << EOF
Format-Version: 0.5
Files-Pattern: *
License-Type: protected
Auth-Groups: mbl-ci-users
EOF
# Publish
test -d ${HOME}/bin || mkdir ${HOME}/bin
wget -q 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} \
--build-info ${WORKSPACE}/BUILD-INFO.txt \
${DEPLOY_DIR_IMAGE}/ ${PUB_DEST}
time python ${HOME}/bin/linaro-cp.py \
--server ${PUBLISH_SERVER} \
--make-link \
$(dirname ${PUB_DEST})
publishers:
# We can only archive files that are located in the workspace
# - archive:
# artifacts: 'build/tmp-*glibc/deploy/images/${MACHINE}/*'
- email-ext:
recipients: 'fathi.boudra@linaro.org, ryan.harkin@linaro.org, paul.liu@linaro.org'
always: true
matrix-trigger: only-parent
|