blob: 7742b271a1af441a6fcc5a8d351267c2b6cb1026 [file] [log] [blame]
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-gerrit-tforg-l1
Paul Sokolovsky370f1f52023-06-05 21:57:47 +03003 node: docker-amd64-tf-a-jammy
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05004 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: |
8 Job that triggers for every TF-A patch approved with the Allow-CI+1
9 label on review.trustedfirmware.org.
10 properties:
11 - throttle:
12 option: project
13 enabled: true
14 max-total: 5
15 - build-discarder:
Leonardo Sandovala4feb552021-03-02 12:10:21 -060016 days-to-keep: 14
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050017 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060018 !include: authorization.yaml.inc
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050019 parameters:
20 - string:
21 name: GERRIT_PROJECT
22 default: 'TF-A/trusted-firmware-a'
23 - string:
24 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060025 default: 'refs/heads/integration'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050026 - string:
27 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060028 default: '+refs/heads/integration:refs/remotes/origin/integration'
Milosz Wasilewski10438582020-12-03 11:36:21 +000029 - string:
30 name: GERRIT_PATCHSET_NUMBER
31 default: ''
32 - string:
33 name: GERRIT_CHANGE_NUMBER
34 default: ''
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050035 - string:
36 name: TF_GERRIT_REFSPEC
37 default: ${GERRIT_REFSPEC}
38 description: 'Parameter only used by the clone script'
39 - string:
Paul Sokolovsky3f523012023-03-01 16:19:39 +070040 name: TFTF_GERRIT_PROJECT
41 default: 'TF-A/tf-a-tests'
42 - string:
43 name: TFTF_GERRIT_BRANCH
44 default: 'refs/heads/master'
45 - string:
46 name: TFTF_GERRIT_REFSPEC
47 default: '+refs/heads/master:refs/remotes/origin/master'
48 - string:
Paul Sokolovsky05986512024-02-01 16:03:50 +070049 name: SPM_REFSPEC
50 default: '+refs/heads/master:refs/remotes/origin/master'
51 description: |
52 SPM(Hafnium) refspec to use. The master branch is used by default.
53 - string:
54 name: CI_REFSPEC
55 default: '+refs/heads/master:refs/remotes/origin/master'
56 - string:
57 name: MBEDTLS_URL
Ryan Everette6e551c2024-09-16 15:30:54 +010058 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.1.tar.gz'
Paul Sokolovsky05986512024-02-01 16:03:50 +070059 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050060 name: SHARE_FOLDER
61 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
62 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050063 wrappers:
64 - credentials-binding:
65 - ssh-user-private-key:
66 credential-id: TFA_CI_BOT_USER_SSH_KEY
67 key-file-variable: CI_BOT_KEY
68 username-variable: CI_BOT_USERNAME
69 passphrase-variable: ''
70 - workspace-cleanup
71 - timestamps
72 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050073 - shell:
74 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010075 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050076 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050077 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050078 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000079 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
80 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000081 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000082 QA_SERVER_PROJECT=${JOB_NAME}
83 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050084 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
85 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
86 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050087 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050088 EOF
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050089 - multijob:
Chris Kaye23eab92021-04-19 15:04:15 +010090 name: Lint commit messages
91 condition: COMPLETED
92 projects:
93 - name: tf-a-commitlint
94 kill-phase-on: NEVER
95 predefined-parameters: |
96 REFSPEC=${GERRIT_REFSPEC}
Chris Kay22e76f22021-04-21 18:03:35 +010097 REFNAME=${GERRIT_PATCHSET_REVISION}
98 REFNAME_BASE=origin/${GERRIT_BRANCH}
Chris Kaye23eab92021-04-19 15:04:15 +010099 - multijob:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500100 condition: COMPLETED
101 name: Build and static checks
102 projects:
103 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600104 name: tf-a-static-checks
Paul Sokolovskyd1fb5c72024-02-01 16:09:40 +0700105 current-parameters: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500106 predefined-parameters: |-
107 TEST_GROUPS=tf-l2-scan-build
108 ENABLE_STATIC_CHECK=true
109 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500110 - multijob:
111 condition: COMPLETED
112 name: Run doc build check
113 projects:
114 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600115 name: tf-a-ci-gateway
Paul Sokolovskyd1fb5c72024-02-01 16:09:40 +0700116 current-parameters: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500117 predefined-parameters: |
118 TEST_GROUPS=tf-l1-check-docs
119 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500120 - multijob:
121 condition: COMPLETED
122 name: Run build tests
123 projects:
124 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600125 name: tf-a-ci-gateway
Paul Sokolovskyd1fb5c72024-02-01 16:09:40 +0700126 current-parameters: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500127 predefined-parameters: |
Leonardo Sandoval0e0ee892021-02-16 10:39:51 -0600128 TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat spm-l1-build-tests
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500129 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500130 triggers:
131 - gerrit:
132 server-name: review.trustedfirmware.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500133 trigger-on:
134 - comment-added-event:
Riku Voipiocdeb3202020-12-03 10:42:58 +0200135 approval-category: "Allow-CI"
136 approval-value: 1
137 projects:
138 - project-compare-type: PLAIN
139 project-pattern: TF-A/trusted-firmware-a
140 branches:
141 - branch-compare-type: PLAIN
142 branch-pattern: integration
Arthur She06125a42021-10-19 22:58:21 -0700143 override-votes: true
144 gerrit-build-started-verified-value: 0
145 gerrit-build-successful-verified-value: 1
146 gerrit-build-failed-verified-value: -1
147 gerrit-build-unstable-verified-value: -1
148 gerrit-build-notbuilt-verified-value: 0
149 gerrit-build-started-codereview-value: 0
150 gerrit-build-successful-codereview-value: 0
151 gerrit-build-failed-codereview-value: 0
152 gerrit-build-unstable-codereview-value: 0
153 gerrit-build-notbuilt-codereview-value: 0