blob: a1e7093b02256286b00e3dd4768bbcf3c8568094 [file] [log] [blame]
Igor Opaniuk6fd22302017-05-04 15:44:46 +03001- job:
2 name: optee-build
Igor Opaniukd5beb802017-05-14 21:10:57 +03003 project-type: matrix
Igor Opaniuk6fd22302017-05-04 15:44:46 +03004 defaults: global
5 properties:
6 - authorization:
7 anonymous:
8 - job-read
9 - job-extended-read
Fathi Boudra4fb95822017-10-31 19:31:03 +020010 - job-workspace
Igor Opaniuk6fd22302017-05-04 15:44:46 +030011 op-tee:
12 - job-read
13 - job-extended-read
14 - job-build
15 - job-cancel
16 - job-configure
Benjamin Copeland9dc2eb82022-10-11 12:40:33 +010017 everyone-flat:
Milosz Wasilewskib1a34132018-02-27 13:13:59 +000018 - job-build
Igor Opaniuk6fd22302017-05-04 15:44:46 +030019 - build-discarder:
20 days-to-keep: 90
21 num-to-keep: 90
Fathi Boudraf4888c62017-10-27 14:44:07 +030022 parameters:
23 - string:
24 name: PUB_DEST
25 default: 'components/optee/build/${repo_proj}/${BUILD_NUMBER}'
Fathi Boudra4fb95822017-10-31 19:31:03 +020026 - string:
27 name: LAVA_SERVER
28 default: 'validation.linaro.org/RPC2/'
Milosz Wasilewskib1a34132018-02-27 13:13:59 +000029 - matrix-combinations:
30 name: MATRIX_COMBINATIONS
Igor Opaniuk6fd22302017-05-04 15:44:46 +030031 disabled: false
Kelley Spoon083a72b2022-04-26 07:05:14 -050032 node: master
Fathi Boudra8e34f832017-05-17 08:49:22 +030033 child-workspace: .
Igor Opaniuk6fd22302017-05-04 15:44:46 +030034 display-name: 'OP-TEE Makefiles for various platforms'
Igor Opaniukd5beb802017-05-14 21:10:57 +030035 axes:
36 - axis:
37 type: slave
38 name: label
39 values:
40 - docker-xenial-amd64
41 - axis:
42 type: user-defined
43 name: repo_proj
44 values:
45 - default
46 - fvp
47 - hikey
48 - juno
49 - mt8173-evb
50 - qemu_v8
51 - rpi3
Igor Opaniuk6fd22302017-05-04 15:44:46 +030052 scm:
53 - git:
54 url: https://github.com/OP-TEE/build.git
55 refspec: +refs/heads/master:refs/remotes/origin/master
56 name: origin
57 branches:
58 - refs/heads/master
59 skip-tag: true
60 shallow-clone: true
61 wipe-workspace: false
62 wrappers:
63 - timestamps
64 - build-name:
65 name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
66 builders:
67 - shell:
68 !include-raw: optee/build/builders.sh
Fathi Boudraf4888c62017-10-27 14:44:07 +030069 - linaro-publish-token
70 - conditional-step:
71 condition-kind: strings-match
72 condition-string1: '${ENV,var="repo_proj"}'
73 condition-string2: 'juno'
74 steps:
75 - shell:
76 !include-raw: optee/build/publishers.sh
Fathi Boudra4fb95822017-10-31 19:31:03 +020077 - shell: |
78 #!/bin/bash
79
80 set -e
81
82 rm -rf configs
83 git clone --depth 1 http://git.linaro.org/ci/job/configs.git
84
85 DEVICE_TYPE=juno
86
87 sed -e "s|\${BUILD_NUMBER}|${BUILD_NUMBER}|" \
88 -e "s|\${BUILD_URL}|${BUILD_URL}|" \
89 -e "s|\${GIT_BRANCH}|${GIT_BRANCH}|" \
90 -e "s|\${GIT_COMMIT}|${GIT_COMMIT}|" \
91 -e "s|\${GIT_URL}|${GIT_URL}|" \
92 -e "s|\${PUBLISH_SERVER}|${PUBLISH_SERVER}|" \
93 -e "s|\${PUB_DEST}|${PUB_DEST}|" \
94 < configs/optee/build/lava-job-definitions/${DEVICE_TYPE}/template-optee-xtest.yaml \
95 > custom_lava_job_definition.yaml
96
97 cat << EOF > post_build_lava_parameters
98 DEVICE_TYPE=${DEVICE_TYPE}
99 CUSTOM_YAML_URL=${JOB_URL}/ws/custom_lava_job_definition.yaml
100 LAVA_SERVER=${LAVA_SERVER}
101 EOF
102 - trigger-builds:
103 - project: 'post-build-lava'
104 property-file: post_build_lava_parameters
105 block: true