blob: f19aded5705694240f557fc670859f4d245fba24 [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:
46 days-to-keep: 90
47 num-to-keep: 90
48 parameters:
49 - string:
50 name: test_groups
Fathi Boudraa83bfe22020-01-16 17:32:45 +020051 default: 'tf-l1-build-juno/juno-default:nil'
Fathi Boudra18eca5c2020-01-16 17:50:42 +020052 - string:
53 name: GERRIT_PROJECT
54 default: 'TF-A/trusted-firmware-a'
55 - string:
56 name: GERRIT_BRANCH
Fathi Boudra30506262020-01-28 15:54:40 +020057 default: 'master'
Fathi Boudra18eca5c2020-01-16 17:50:42 +020058 - string:
59 name: GERRIT_REFSPEC
60 default: 'refs/heads/master'
Fathi Boudra9e402bf2019-12-05 11:16:41 +020061 disabled: false
62 node: docker-amd64-xenial
63 display-name: 'Trusted Firmware A (TF-A) builder'
64 scm:
65 - tf-a-ci-scripts
66 - trusted-firmware-a
67 - tf-a-tests
68 wrappers:
69 - timestamps
70 builders:
71 - shell:
72 !include-raw: tf-a-builder/builders.sh
Fathi Boudraf60340c2020-01-17 18:44:15 +020073 - shell: |
74 #!/bin/bash
75
76 set -e
77
78 rm -rf configs
79 git clone --depth 1 https://git.trustedfirmware.org/ci/tf-a-job-configs.git configs
80
81 sed -e "s|\${GERRIT_PROJECT}|${GERRIT_PROJECT}|" \
82 -e "s|\${GERRIT_BRANCH}|${GERRIT_BRANCH}|" \
83 -e "s|\${GERRIT_REFSPEC}|${GERRIT_REFSPEC}|" \
84 -e "s|\${test_groups}|${test_groups}|" \
85 -e "s|\${BUILD_URL}|${BUILD_URL}|" \
86 < configs/tf-a-builder/lava-job-definitions/juno/template.yaml \
87 > custom_lava_job_definition.yaml
88
89 cat << EOF > ${WORKSPACE}/post_build_lava_parameters
90 DEVICE_TYPE=juno
91 CUSTOM_YAML_URL=${JOB_URL}/ws/custom_lava_job_definition.yaml
92 LAVA_SERVER=tf.validation.linaro.org/RPC2/
93 EOF
94 - trigger-builds:
95 - project: 'post-build-lava'
96 property-file: post_build_lava_parameters
97 block: true
Fathi Boudra9e402bf2019-12-05 11:16:41 +020098 publishers:
99 - archive:
100 artifacts: 'artefacts/**'
101 latest-only: false