blob: 2abe389eb16d7febf5052d42057f82fd7f681535 [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:
Riku Voipio3a69f722020-10-05 11:39:45 +030050 - job-discover
Riku Voipiobc87be22020-09-04 15:56:09 +030051 - job-read
52 - job-extended-read
Riku Voipio3a69f722020-10-05 11:39:45 +030053 - job-workspace
Fathi Boudra9e402bf2019-12-05 11:16:41 +020054 parameters:
55 - string:
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050056 name: import_cc
57 default: '1'
58 - string:
Fathi Boudra9e402bf2019-12-05 11:16:41 +020059 name: test_groups
Fathi Boudraa83bfe22020-01-16 17:32:45 +020060 default: 'tf-l1-build-juno/juno-default:nil'
Fathi Boudra18eca5c2020-01-16 17:50:42 +020061 - string:
62 name: GERRIT_PROJECT
63 default: 'TF-A/trusted-firmware-a'
64 - string:
65 name: GERRIT_BRANCH
Fathi Boudra30506262020-01-28 15:54:40 +020066 default: 'master'
Fathi Boudra18eca5c2020-01-16 17:50:42 +020067 - string:
68 name: GERRIT_REFSPEC
69 default: 'refs/heads/master'
Fathi Boudra9e402bf2019-12-05 11:16:41 +020070 disabled: false
Benjamin Copelandf27129f2020-08-20 14:13:25 +010071 node: docker-amd64-bionic
Fathi Boudra9e402bf2019-12-05 11:16:41 +020072 display-name: 'Trusted Firmware A (TF-A) builder'
73 scm:
74 - tf-a-ci-scripts
75 - trusted-firmware-a
76 - tf-a-tests
77 wrappers:
78 - timestamps
79 builders:
80 - shell:
81 !include-raw: tf-a-builder/builders.sh
Fathi Boudraf60340c2020-01-17 18:44:15 +020082 - shell: |
83 #!/bin/bash
84
85 set -e
86
87 rm -rf configs
88 git clone --depth 1 https://git.trustedfirmware.org/ci/tf-a-job-configs.git configs
89
90 sed -e "s|\${GERRIT_PROJECT}|${GERRIT_PROJECT}|" \
91 -e "s|\${GERRIT_BRANCH}|${GERRIT_BRANCH}|" \
92 -e "s|\${GERRIT_REFSPEC}|${GERRIT_REFSPEC}|" \
93 -e "s|\${test_groups}|${test_groups}|" \
94 -e "s|\${BUILD_URL}|${BUILD_URL}|" \
95 < configs/tf-a-builder/lava-job-definitions/juno/template.yaml \
96 > custom_lava_job_definition.yaml
97
98 cat << EOF > ${WORKSPACE}/post_build_lava_parameters
99 DEVICE_TYPE=juno
100 CUSTOM_YAML_URL=${JOB_URL}/ws/custom_lava_job_definition.yaml
101 LAVA_SERVER=tf.validation.linaro.org/RPC2/
102 EOF
103 - trigger-builds:
104 - project: 'post-build-lava'
105 property-file: post_build_lava_parameters
106 block: true
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200107 publishers:
108 - archive:
109 artifacts: 'artefacts/**'
110 latest-only: false