blob: cec455bfc91ec347decaac92db3b6e945ab8f88f [file] [log] [blame]
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -05001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-tftf-gerrit-tforg-l2
Paul Sokolovskyeb463382023-08-05 13:23:05 +03003 node: docker-amd64-tf-a-jammy
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -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+2
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 Sandoval119d8cf2020-10-13 16:22:33 -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 Sandoval119d8cf2020-10-13 16:22:33 -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 Sokolovskyda00d282024-02-02 21:13:58 +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 Sokolovskyda00d282024-02-02 21:13:58 +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 Sandoval119d8cf2020-10-13 16:22:33 -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 Sandoval119d8cf2020-10-13 16:22:33 -050083 #!/bin/bash
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050084 set -e
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -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 Sandoval119d8cf2020-10-13 16:22:33 -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 Sandoval119d8cf2020-10-13 16:22:33 -050095 EOF
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050096 - multijob:
97 condition: COMPLETED
98 name: Carry out level 1 tests
99 projects:
100 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600101 name: tf-a-tftf-gerrit-tforg-l1
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500102 current-parameters: true
103 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500104 - multijob:
105 condition: COMPLETED
106 name: Run Firmware Update Tests
107 projects:
108 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600109 name: tf-a-ci-gateway
Paul Sokolovsky69f100d2024-02-03 00:21:43 +0700110 current-parameters: true
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500111 predefined-parameters: |-
112 TEST_GROUPS=tftf-l2-fwu
113 TFTF_REFSPEC=$GERRIT_REFSPEC
114 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500115 - multijob:
116 condition: COMPLETED
117 name: Run Level 2 testing of TF-A-Tests
118 projects:
119 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600120 name: tf-a-ci-gateway
Paul Sokolovsky69f100d2024-02-03 00:21:43 +0700121 current-parameters: true
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500122 predefined-parameters: |-
Leonardo Sandoval2b96b4b2021-03-22 11:11:56 -0600123 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq spm-l2-boot-tests
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500124 TFTF_REFSPEC=$GERRIT_REFSPEC
125 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500126 - multijob:
127 condition: COMPLETED
128 name: Run extensive TF-A-Tests
129 projects:
130 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600131 name: tf-a-ci-gateway
Paul Sokolovsky69f100d2024-02-03 00:21:43 +0700132 current-parameters: true
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500133 predefined-parameters: |-
134 TEST_GROUPS=tftf-l2-extensive-tests-fvp
135 TFTF_REFSPEC=$GERRIT_REFSPEC
136 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500137 triggers:
138 - gerrit:
139 server-name: review.trustedfirmware.org
140 projects:
141 - branches:
142 - branch-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000143 branch-pattern: openci-migration
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500144 project-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000145 project-pattern: next/TF-A/tf-a-tests
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500146 trigger-on:
147 - comment-added-event:
148 approval-category: "Allow-CI"
149 approval-value: 2
Milosz Wasilewski72b118d2020-12-03 12:18:19 +0000150 override-votes: true
Manish V Badarkhe6e25e152022-12-15 18:17:42 +0000151 gerrit-build-started-verified-value: 0
Milosz Wasilewski72b118d2020-12-03 12:18:19 +0000152 gerrit-build-successful-verified-value: 1
153 gerrit-build-failed-verified-value: -1
154 gerrit-build-unstable-verified-value: -1
Manish V Badarkhe6e25e152022-12-15 18:17:42 +0000155 gerrit-build-notbuilt-verified-value: 0
156 gerrit-build-started-codereview-value: 0
157 gerrit-build-successful-codereview-value: 0
158 gerrit-build-failed-codereview-value: 0
159 gerrit-build-unstable-codereview-value: 0
160 gerrit-build-notbuilt-codereview-value: 0