blob: a42ea8837c16fdd01510e353d9ca2861ee592527 [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
Fathi Boudra9e402bf2019-12-05 11:16:41 +020048 parameters:
49 - string:
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050050 name: import_cc
51 default: '1'
52 - string:
Fathi Boudra9e402bf2019-12-05 11:16:41 +020053 name: test_groups
Fathi Boudraa83bfe22020-01-16 17:32:45 +020054 default: 'tf-l1-build-juno/juno-default:nil'
Fathi Boudra18eca5c2020-01-16 17:50:42 +020055 - string:
56 name: GERRIT_PROJECT
57 default: 'TF-A/trusted-firmware-a'
58 - string:
59 name: GERRIT_BRANCH
Fathi Boudra30506262020-01-28 15:54:40 +020060 default: 'master'
Fathi Boudra18eca5c2020-01-16 17:50:42 +020061 - string:
62 name: GERRIT_REFSPEC
63 default: 'refs/heads/master'
Fathi Boudra9e402bf2019-12-05 11:16:41 +020064 disabled: false
65 node: docker-amd64-xenial
66 display-name: 'Trusted Firmware A (TF-A) builder'
67 scm:
68 - tf-a-ci-scripts
69 - trusted-firmware-a
70 - tf-a-tests
71 wrappers:
72 - timestamps
73 builders:
74 - shell:
75 !include-raw: tf-a-builder/builders.sh
Fathi Boudraf60340c2020-01-17 18:44:15 +020076 - shell: |
77 #!/bin/bash
78
79 set -e
80
81 rm -rf configs
82 git clone --depth 1 https://git.trustedfirmware.org/ci/tf-a-job-configs.git configs
83
84 sed -e "s|\${GERRIT_PROJECT}|${GERRIT_PROJECT}|" \
85 -e "s|\${GERRIT_BRANCH}|${GERRIT_BRANCH}|" \
86 -e "s|\${GERRIT_REFSPEC}|${GERRIT_REFSPEC}|" \
87 -e "s|\${test_groups}|${test_groups}|" \
88 -e "s|\${BUILD_URL}|${BUILD_URL}|" \
89 < configs/tf-a-builder/lava-job-definitions/juno/template.yaml \
90 > custom_lava_job_definition.yaml
91
92 cat << EOF > ${WORKSPACE}/post_build_lava_parameters
93 DEVICE_TYPE=juno
94 CUSTOM_YAML_URL=${JOB_URL}/ws/custom_lava_job_definition.yaml
95 LAVA_SERVER=tf.validation.linaro.org/RPC2/
96 EOF
97 - trigger-builds:
98 - project: 'post-build-lava'
99 property-file: post_build_lava_parameters
100 block: true
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200101 publishers:
102 - archive:
103 artifacts: 'artefacts/**'
104 latest-only: false