blob: 1fd87ed85491b48648e4a1d0ee0133d3c1516ee1 [file] [log] [blame]
Fathi Boudra9e402bf2019-12-05 11:16:41 +02001- scm:
2 name: tf-a-ci-scripts
3 scm:
4 - git:
5 url: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
6 refspec: +refs/heads/master:refs/remotes/origin/master
7 name: origin
8 branches:
9 - refs/heads/master
10 basedir: tf-a-ci-scripts
11 skip-tag: true
12 shallow-clone: true
13 wipe-workspace: false
14- scm:
15 name: trusted-firmware-a
16 scm:
17 - git:
Fathi Boudraa83bfe22020-01-16 17:32:45 +020018 url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
19 refspec: ${GERRIT_REFSPEC}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020020 name: origin
21 branches:
Fathi Boudraa83bfe22020-01-16 17:32:45 +020022 - ${GERRIT_BRANCH}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020023 basedir: trusted-firmware-a
24 skip-tag: true
25 shallow-clone: true
26 wipe-workspace: false
27- scm:
28 name: tf-a-tests
29 scm:
30 - git:
31 url: https://git.trustedfirmware.org/TF-A/tf-a-tests.git
32 refspec: +refs/heads/master:refs/remotes/origin/master
33 name: origin
34 branches:
35 - refs/heads/master
36 basedir: tf-a-tests
37 skip-tag: true
38 shallow-clone: true
39 wipe-workspace: false
40- job:
41 name: tf-a-builder
42 project-type: freestyle
43 defaults: global
44 properties:
45 - build-discarder:
Leonardo Sandovaleb141602020-07-13 14:21:20 -050046 days-to-keep: 180
47 num-to-keep: 180
Riku Voipiobc87be22020-09-04 15:56:09 +030048 - authorization:
49 anonymous:
50 - job-read
51 - job-extended-read
Fathi Boudra9e402bf2019-12-05 11:16:41 +020052 parameters:
53 - string:
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050054 name: import_cc
55 default: '1'
56 - string:
Fathi Boudra9e402bf2019-12-05 11:16:41 +020057 name: test_groups
Fathi Boudraa83bfe22020-01-16 17:32:45 +020058 default: 'tf-l1-build-juno/juno-default:nil'
Fathi Boudra18eca5c2020-01-16 17:50:42 +020059 - string:
60 name: GERRIT_PROJECT
61 default: 'TF-A/trusted-firmware-a'
62 - string:
63 name: GERRIT_BRANCH
Fathi Boudra30506262020-01-28 15:54:40 +020064 default: 'master'
Fathi Boudra18eca5c2020-01-16 17:50:42 +020065 - string:
66 name: GERRIT_REFSPEC
67 default: 'refs/heads/master'
Fathi Boudra9e402bf2019-12-05 11:16:41 +020068 disabled: false
Benjamin Copelandf27129f2020-08-20 14:13:25 +010069 node: docker-amd64-bionic
Fathi Boudra9e402bf2019-12-05 11:16:41 +020070 display-name: 'Trusted Firmware A (TF-A) builder'
71 scm:
72 - tf-a-ci-scripts
73 - trusted-firmware-a
74 - tf-a-tests
75 wrappers:
76 - timestamps
77 builders:
78 - shell:
79 !include-raw: tf-a-builder/builders.sh
Fathi Boudraf60340c2020-01-17 18:44:15 +020080 - shell: |
81 #!/bin/bash
82
83 set -e
84
85 rm -rf configs
86 git clone --depth 1 https://git.trustedfirmware.org/ci/tf-a-job-configs.git configs
87
88 sed -e "s|\${GERRIT_PROJECT}|${GERRIT_PROJECT}|" \
89 -e "s|\${GERRIT_BRANCH}|${GERRIT_BRANCH}|" \
90 -e "s|\${GERRIT_REFSPEC}|${GERRIT_REFSPEC}|" \
91 -e "s|\${test_groups}|${test_groups}|" \
92 -e "s|\${BUILD_URL}|${BUILD_URL}|" \
93 < configs/tf-a-builder/lava-job-definitions/juno/template.yaml \
94 > custom_lava_job_definition.yaml
95
96 cat << EOF > ${WORKSPACE}/post_build_lava_parameters
97 DEVICE_TYPE=juno
98 CUSTOM_YAML_URL=${JOB_URL}/ws/custom_lava_job_definition.yaml
99 LAVA_SERVER=tf.validation.linaro.org/RPC2/
100 EOF
101 - trigger-builds:
102 - project: 'post-build-lava'
103 property-file: post_build_lava_parameters
104 block: true
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200105 publishers:
106 - archive:
107 artifacts: 'artefacts/**'
108 latest-only: false