blob: 08e029e3923736cf151fcd76e32df4dbf57fbad0 (
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
- 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}'
- string:
name: LAVA_SERVER
default: 'https://validation.linaro.org/RPC2/'
- string:
name: QA_SERVER
default: 'https://qa-reports.linaro.org'
- string:
name: QA_SERVER_PROJECT
default: 'mbl'
- string:
name: QA_SERVER_TEAM
default: 'mbl'
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'
- credentials-binding:
- text:
credential-id: QA_REPORTS_TOKEN
variable: QA_REPORTS_TOKEN
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})
- shell:
!include-raw: mbl-openembedded/submit_for_testing.sh
publishers:
- groovy-postbuild:
script:
!include-raw: openembedded-lkft/postbuild.groovy
# 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
|