blob: cd2d7e26f4b549ec82f77c71b585ea373651aca1 [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:
52 name: CI_REFSPEC
53 default: '+refs/heads/master:refs/remotes/origin/master'
54 - string:
Saheer Babub495f032025-01-21 23:01:11 +000055 name: JOBS_REFSPEC
56 default: 'refs/heads/master'
57 description: |
58 tf-a-job-configs refspec to use. The master branch is used by default.
59 - string:
Paul Sokolovsky05986512024-02-01 16:03:50 +070060 name: MBEDTLS_URL
Lauren Wehrmeistercec409a2025-04-03 14:34:02 -050061 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Paul Sokolovsky05986512024-02-01 16:03:50 +070062 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050063 name: SHARE_FOLDER
64 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
65 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050066 wrappers:
67 - credentials-binding:
68 - ssh-user-private-key:
69 credential-id: TFA_CI_BOT_USER_SSH_KEY
70 key-file-variable: CI_BOT_KEY
71 username-variable: CI_BOT_USERNAME
72 passphrase-variable: ''
73 - workspace-cleanup
74 - timestamps
75 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050076 - shell:
77 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010078 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050079 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050080 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050081 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000082 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
83 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000084 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000085 QA_SERVER_PROJECT=${JOB_NAME}
86 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050087 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
88 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
89 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050090 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050091 EOF
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050092 - multijob:
Chris Kaye23eab92021-04-19 15:04:15 +010093 name: Lint commit messages
94 condition: COMPLETED
95 projects:
96 - name: tf-a-commitlint
97 kill-phase-on: NEVER
98 predefined-parameters: |
Saheer Babuc4b886d2025-01-22 00:31:43 +000099 URL=https://review.trustedfirmware.org/${GERRIT_PROJECT}
Chris Kaye23eab92021-04-19 15:04:15 +0100100 REFSPEC=${GERRIT_REFSPEC}
Chris Kay22e76f22021-04-21 18:03:35 +0100101 REFNAME=${GERRIT_PATCHSET_REVISION}
102 REFNAME_BASE=origin/${GERRIT_BRANCH}
Chris Kaye23eab92021-04-19 15:04:15 +0100103 - multijob:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500104 condition: COMPLETED
105 name: Build and static checks
106 projects:
107 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600108 name: tf-a-static-checks
Paul Sokolovskyd1fb5c72024-02-01 16:09:40 +0700109 current-parameters: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500110 predefined-parameters: |-
111 TEST_GROUPS=tf-l2-scan-build
112 ENABLE_STATIC_CHECK=true
113 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500114 - multijob:
115 condition: COMPLETED
116 name: Run doc build check
117 projects:
118 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600119 name: tf-a-ci-gateway
Paul Sokolovskyd1fb5c72024-02-01 16:09:40 +0700120 current-parameters: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500121 predefined-parameters: |
122 TEST_GROUPS=tf-l1-check-docs
123 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500124 - multijob:
125 condition: COMPLETED
126 name: Run build tests
127 projects:
128 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600129 name: tf-a-ci-gateway
Paul Sokolovskyd1fb5c72024-02-01 16:09:40 +0700130 current-parameters: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500131 predefined-parameters: |
Leonardo Sandoval0e0ee892021-02-16 10:39:51 -0600132 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 -0500133 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500134 triggers:
135 - gerrit:
136 server-name: review.trustedfirmware.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500137 trigger-on:
138 - comment-added-event:
Riku Voipiocdeb3202020-12-03 10:42:58 +0200139 approval-category: "Allow-CI"
140 approval-value: 1
141 projects:
142 - project-compare-type: PLAIN
143 project-pattern: TF-A/trusted-firmware-a
144 branches:
145 - branch-compare-type: PLAIN
146 branch-pattern: integration
Arthur She06125a42021-10-19 22:58:21 -0700147 override-votes: true
148 gerrit-build-started-verified-value: 0
149 gerrit-build-successful-verified-value: 1
150 gerrit-build-failed-verified-value: -1
151 gerrit-build-unstable-verified-value: -1
152 gerrit-build-notbuilt-verified-value: 0
153 gerrit-build-started-codereview-value: 0
154 gerrit-build-successful-codereview-value: 0
155 gerrit-build-failed-codereview-value: 0
156 gerrit-build-unstable-codereview-value: 0
157 gerrit-build-notbuilt-codereview-value: 0