blob: c3d394ad59c639f3cae002c7cef48b05f023dc00 [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:
Arthur Shee5eba502025-02-21 08:06:39 -080016 days-to-keep: 15
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050017 parameters:
18 - string:
19 name: GERRIT_PROJECT
20 default: 'TF-A/trusted-firmware-a'
21 - string:
22 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060023 default: 'refs/heads/integration'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050024 - string:
25 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060026 default: '+refs/heads/integration:refs/remotes/origin/integration'
Milosz Wasilewski10438582020-12-03 11:36:21 +000027 - string:
28 name: GERRIT_PATCHSET_NUMBER
29 default: ''
30 - string:
31 name: GERRIT_CHANGE_NUMBER
32 default: ''
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050033 - string:
34 name: TF_GERRIT_REFSPEC
35 default: ${GERRIT_REFSPEC}
36 description: 'Parameter only used by the clone script'
37 - string:
Paul Sokolovsky3f523012023-03-01 16:19:39 +070038 name: TFTF_GERRIT_PROJECT
39 default: 'TF-A/tf-a-tests'
40 - string:
41 name: TFTF_GERRIT_BRANCH
42 default: 'refs/heads/master'
43 - string:
44 name: TFTF_GERRIT_REFSPEC
45 default: '+refs/heads/master:refs/remotes/origin/master'
46 - string:
Paul Sokolovsky05986512024-02-01 16:03:50 +070047 name: SPM_REFSPEC
48 default: '+refs/heads/master:refs/remotes/origin/master'
49 description: |
50 SPM(Hafnium) refspec to use. The master branch is used by default.
51 - string:
Manish V Badarkhe08e108b2025-04-11 08:01:14 +010052 name: RMM_REFSPEC
53 default: '+refs/heads/main:refs/remotes/origin/main'
54 description: |
55 tf-rmm refspec to use. The main branch is used by default.
56 - string:
Paul Sokolovsky05986512024-02-01 16:03:50 +070057 name: CI_REFSPEC
58 default: '+refs/heads/master:refs/remotes/origin/master'
59 - string:
Saheer Babub495f032025-01-21 23:01:11 +000060 name: JOBS_REFSPEC
61 default: 'refs/heads/master'
62 description: |
63 tf-a-job-configs refspec to use. The master branch is used by default.
64 - string:
Paul Sokolovsky05986512024-02-01 16:03:50 +070065 name: MBEDTLS_URL
Lauren Wehrmeistercec409a2025-04-03 14:34:02 -050066 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Paul Sokolovsky05986512024-02-01 16:03:50 +070067 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050068 name: SHARE_FOLDER
69 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
70 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050071 wrappers:
72 - credentials-binding:
73 - ssh-user-private-key:
74 credential-id: TFA_CI_BOT_USER_SSH_KEY
75 key-file-variable: CI_BOT_KEY
76 username-variable: CI_BOT_USERNAME
77 passphrase-variable: ''
78 - workspace-cleanup
79 - timestamps
80 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050081 - shell:
82 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010083 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050084 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050085 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050086 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000087 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
88 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000089 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000090 QA_SERVER_PROJECT=${JOB_NAME}
91 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050092 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
93 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
94 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050095 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050096 EOF
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050097 - multijob:
Chris Kaye23eab92021-04-19 15:04:15 +010098 name: Lint commit messages
99 condition: COMPLETED
100 projects:
101 - name: tf-a-commitlint
102 kill-phase-on: NEVER
103 predefined-parameters: |
Saheer Babuc4b886d2025-01-22 00:31:43 +0000104 URL=https://review.trustedfirmware.org/${GERRIT_PROJECT}
Chris Kaye23eab92021-04-19 15:04:15 +0100105 REFSPEC=${GERRIT_REFSPEC}
Chris Kay22e76f22021-04-21 18:03:35 +0100106 REFNAME=${GERRIT_PATCHSET_REVISION}
107 REFNAME_BASE=origin/${GERRIT_BRANCH}
Chris Kaye23eab92021-04-19 15:04:15 +0100108 - multijob:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500109 condition: COMPLETED
110 name: Build and static checks
111 projects:
112 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600113 name: tf-a-static-checks
Paul Sokolovskyd1fb5c72024-02-01 16:09:40 +0700114 current-parameters: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500115 predefined-parameters: |-
116 TEST_GROUPS=tf-l2-scan-build
117 ENABLE_STATIC_CHECK=true
118 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500119 - multijob:
120 condition: COMPLETED
121 name: Run doc build check
122 projects:
123 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600124 name: tf-a-ci-gateway
Paul Sokolovskyd1fb5c72024-02-01 16:09:40 +0700125 current-parameters: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500126 predefined-parameters: |
127 TEST_GROUPS=tf-l1-check-docs
128 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500129 - multijob:
130 condition: COMPLETED
131 name: Run build tests
132 projects:
133 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600134 name: tf-a-ci-gateway
Paul Sokolovskyd1fb5c72024-02-01 16:09:40 +0700135 current-parameters: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500136 predefined-parameters: |
Leonardo Sandoval0e0ee892021-02-16 10:39:51 -0600137 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 -0500138 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500139 triggers:
140 - gerrit:
141 server-name: review.trustedfirmware.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500142 trigger-on:
143 - comment-added-event:
Riku Voipiocdeb3202020-12-03 10:42:58 +0200144 approval-category: "Allow-CI"
145 approval-value: 1
146 projects:
147 - project-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000148 project-pattern: next/TF-A/trusted-firmware-a
Riku Voipiocdeb3202020-12-03 10:42:58 +0200149 branches:
150 - branch-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000151 branch-pattern: openci-migration
Arthur She06125a42021-10-19 22:58:21 -0700152 override-votes: true
153 gerrit-build-started-verified-value: 0
154 gerrit-build-successful-verified-value: 1
155 gerrit-build-failed-verified-value: -1
156 gerrit-build-unstable-verified-value: -1
157 gerrit-build-notbuilt-verified-value: 0
158 gerrit-build-started-codereview-value: 0
159 gerrit-build-successful-codereview-value: 0
160 gerrit-build-failed-codereview-value: 0
161 gerrit-build-unstable-codereview-value: 0
162 gerrit-build-notbuilt-codereview-value: 0