blob: 530b13795062e6a758403164e2d50269cee9c11e [file] [log] [blame]
Leonardo Sandoval925329b2020-10-13 16:07:34 -05001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-tftf-gerrit-tforg-l1
Paul Sokolovsky03059102023-08-05 12:58:05 +03003 node: docker-amd64-tf-a-jammy
Leonardo Sandoval925329b2020-10-13 16:07:34 -05004 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: |
8 Job that triggers for every TF-A-Tests 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 Sandoval925329b2020-10-13 16:07:34 -050017 parameters:
18 - string:
19 name: GERRIT_PROJECT
20 default: 'TF-A/tf-a-tests'
21 - string:
22 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060023 default: 'refs/heads/master'
Leonardo Sandoval925329b2020-10-13 16:07:34 -050024 - string:
25 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060026 default: '+refs/heads/master:refs/remotes/origin/master'
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:
Paul Sokolovskybdbd75f2024-02-02 18:40:07 +070034 name: TF_GERRIT_BRANCH
35 default: 'refs/heads/integration'
36 description: "Git project branch for Trusted Firmware-A."
37 - string:
38 name: TF_GERRIT_REFSPEC
39 default: '+refs/heads/integration:refs/remotes/origin/integration'
40 description: "Git refspec for Trusted Firmware-A."
41 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050042 name: TFTF_GERRIT_REFSPEC
43 default: ${GERRIT_REFSPEC}
44 description: 'Parameter only used by the clone script'
45 - string:
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070046 name: SPM_REFSPEC
47 default: '+refs/heads/master:refs/remotes/origin/master'
48 description: |
Paul Sokolovskybdbd75f2024-02-02 18:40:07 +070049 SPM (Hafnium) refspec to use.
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070050 - string:
Manish V Badarkhe08e108b2025-04-11 08:01:14 +010051 name: RMM_REFSPEC
52 default: '+refs/heads/main:refs/remotes/origin/main'
53 description: |
54 tf-rmm refspec to use. The main branch is used by default.
55 - string:
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070056 name: CI_REFSPEC
57 default: '+refs/heads/master:refs/remotes/origin/master'
58 - string:
Saheer Babub495f032025-01-21 23:01:11 +000059 name: JOBS_REFSPEC
60 default: 'refs/heads/master'
61 description: |
62 tf-a-job-configs refspec to use. The master branch is used by default.
63 - string:
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070064 name: MBEDTLS_URL
Lauren Wehrmeistercec409a2025-04-03 14:34:02 -050065 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070066 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050067 name: SHARE_FOLDER
68 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
69 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandoval925329b2020-10-13 16:07:34 -050070 wrappers:
71 - credentials-binding:
72 - ssh-user-private-key:
73 credential-id: TFA_CI_BOT_USER_SSH_KEY
74 key-file-variable: CI_BOT_KEY
75 username-variable: CI_BOT_USERNAME
76 passphrase-variable: ''
77 - workspace-cleanup
78 - timestamps
79 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050080 - shell:
81 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010082 - shell: |
Leonardo Sandoval925329b2020-10-13 16:07:34 -050083 #!/bin/bash
Leonardo Sandoval925329b2020-10-13 16:07:34 -050084 set -e
Leonardo Sandoval925329b2020-10-13 16:07:34 -050085 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000086 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
87 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000088 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000089 QA_SERVER_PROJECT=${JOB_NAME}
90 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval925329b2020-10-13 16:07:34 -050091 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
92 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
93 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050094 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandoval925329b2020-10-13 16:07:34 -050095 EOF
Leonardo Sandoval925329b2020-10-13 16:07:34 -050096 - multijob:
97 condition: COMPLETED
98 name: Build and static checks
99 projects:
100 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600101 name: tf-a-static-checks
Paul Sokolovsky62b3ca32024-02-05 15:23:31 +0700102 current-parameters: true
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500103 predefined-parameters: |-
Leonardo Sandoval4605bc62021-03-19 10:48:01 -0600104 REPO_UNDER_TEST=tf-a-tests
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500105 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500106 - multijob:
107 condition: COMPLETED
108 name: Run doc build check
109 projects:
110 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600111 name: tf-a-ci-gateway
Paul Sokolovsky62b3ca32024-02-05 15:23:31 +0700112 current-parameters: true
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500113 predefined-parameters: |
114 TEST_GROUPS=tftf-l1-check-docs
115 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500116 - multijob:
117 condition: COMPLETED
118 name: Build TF-A-Tests
119 projects:
120 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600121 name: tf-a-ci-gateway
Paul Sokolovsky62b3ca32024-02-05 15:23:31 +0700122 current-parameters: true
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500123 predefined-parameters: |
124 TEST_GROUPS=tftf-l1-build
125 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500126 - multijob:
127 condition: COMPLETED
128 name: Basic TF-A-Tests test cases
129 projects:
130 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600131 name: tf-a-ci-gateway
Paul Sokolovsky62b3ca32024-02-05 15:23:31 +0700132 current-parameters: true
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500133 predefined-parameters: |
Manish Pandeyb5fcc442022-06-20 14:08:45 +0100134 TEST_GROUPS=tftf-l1-fvp
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500135 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500136 triggers:
137 - gerrit:
138 server-name: review.trustedfirmware.org
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500139 trigger-on:
140 - comment-added-event:
Riku Voipiocb3356b2020-12-03 10:33:23 +0200141 approval-category: "Allow-CI"
142 approval-value: 1
143 projects:
144 - project-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000145 project-pattern: next/TF-A/tf-a-tests
Riku Voipiocb3356b2020-12-03 10:33:23 +0200146 branches:
147 - branch-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000148 branch-pattern: openci-migration
Manish V Badarkhe6e25e152022-12-15 18:17:42 +0000149 override-votes: true
150 gerrit-build-started-verified-value: 0
151 gerrit-build-successful-verified-value: 1
152 gerrit-build-failed-verified-value: -1
153 gerrit-build-unstable-verified-value: -1
154 gerrit-build-notbuilt-verified-value: 0
155 gerrit-build-started-codereview-value: 0
156 gerrit-build-successful-codereview-value: 0
157 gerrit-build-failed-codereview-value: 0
158 gerrit-build-unstable-codereview-value: 0
159 gerrit-build-notbuilt-codereview-value: 0