blob: d4f4c04b194c75eed4243a6c6f141fc6fc7d2041 [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 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060018 !include: authorization.yaml.inc
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050019 parameters:
20 - string:
21 name: GERRIT_PROJECT
22 default: 'TF-A/tf-a-tests'
23 - string:
24 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060025 default: 'refs/heads/master'
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050026 - string:
27 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060028 default: '+refs/heads/master:refs/remotes/origin/master'
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:
Paul Sokolovskyda00d282024-02-02 21:13:58 +070036 name: TF_GERRIT_BRANCH
37 default: 'refs/heads/integration'
38 description: "Git project branch for Trusted Firmware-A."
39 - string:
40 name: TF_GERRIT_REFSPEC
41 default: '+refs/heads/integration:refs/remotes/origin/integration'
42 description: "Git refspec for Trusted Firmware-A."
43 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050044 name: TFTF_GERRIT_REFSPEC
45 default: ${GERRIT_REFSPEC}
46 description: 'Parameter only used by the clone script'
47 - string:
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070048 name: SPM_REFSPEC
49 default: '+refs/heads/master:refs/remotes/origin/master'
50 description: |
Paul Sokolovskyda00d282024-02-02 21:13:58 +070051 SPM (Hafnium) refspec to use.
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070052 - string:
53 name: CI_REFSPEC
54 default: '+refs/heads/master:refs/remotes/origin/master'
55 - string:
Saheer Babub495f032025-01-21 23:01:11 +000056 name: JOBS_REFSPEC
57 default: 'refs/heads/master'
58 description: |
59 tf-a-job-configs refspec to use. The master branch is used by default.
60 - string:
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070061 name: MBEDTLS_URL
Ryan Everettb4f5f8d2024-11-26 11:48:44 +000062 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.2.tar.gz'
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070063 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050064 name: SHARE_FOLDER
65 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
66 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050067 wrappers:
68 - credentials-binding:
69 - ssh-user-private-key:
70 credential-id: TFA_CI_BOT_USER_SSH_KEY
71 key-file-variable: CI_BOT_KEY
72 username-variable: CI_BOT_USERNAME
73 passphrase-variable: ''
74 - workspace-cleanup
75 - timestamps
76 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050077 - shell:
78 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010079 - shell: |
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050080 #!/bin/bash
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050081 set -e
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050082 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000083 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
84 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000085 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000086 QA_SERVER_PROJECT=${JOB_NAME}
87 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050088 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
89 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
90 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050091 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050092 EOF
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050093 - multijob:
94 condition: COMPLETED
95 name: Carry out level 1 tests
96 projects:
97 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -060098 name: tf-a-tftf-gerrit-tforg-l1
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050099 current-parameters: true
100 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500101 - multijob:
102 condition: COMPLETED
103 name: Run Firmware Update Tests
104 projects:
105 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600106 name: tf-a-ci-gateway
Paul Sokolovsky69f100d2024-02-03 00:21:43 +0700107 current-parameters: true
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500108 predefined-parameters: |-
109 TEST_GROUPS=tftf-l2-fwu
110 TFTF_REFSPEC=$GERRIT_REFSPEC
111 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500112 - multijob:
113 condition: COMPLETED
114 name: Run Level 2 testing of TF-A-Tests
115 projects:
116 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600117 name: tf-a-ci-gateway
Paul Sokolovsky69f100d2024-02-03 00:21:43 +0700118 current-parameters: true
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500119 predefined-parameters: |-
Leonardo Sandoval2b96b4b2021-03-22 11:11:56 -0600120 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 -0500121 TFTF_REFSPEC=$GERRIT_REFSPEC
122 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500123 - multijob:
124 condition: COMPLETED
125 name: Run extensive TF-A-Tests
126 projects:
127 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600128 name: tf-a-ci-gateway
Paul Sokolovsky69f100d2024-02-03 00:21:43 +0700129 current-parameters: true
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500130 predefined-parameters: |-
131 TEST_GROUPS=tftf-l2-extensive-tests-fvp
132 TFTF_REFSPEC=$GERRIT_REFSPEC
133 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500134 triggers:
135 - gerrit:
136 server-name: review.trustedfirmware.org
137 projects:
138 - branches:
139 - branch-compare-type: PLAIN
140 branch-pattern: master
141 project-compare-type: PLAIN
142 project-pattern: TF-A/tf-a-tests
143 trigger-on:
144 - comment-added-event:
145 approval-category: "Allow-CI"
146 approval-value: 2
Milosz Wasilewski72b118d2020-12-03 12:18:19 +0000147 override-votes: true
Manish V Badarkhe6e25e152022-12-15 18:17:42 +0000148 gerrit-build-started-verified-value: 0
Milosz Wasilewski72b118d2020-12-03 12:18:19 +0000149 gerrit-build-successful-verified-value: 1
150 gerrit-build-failed-verified-value: -1
151 gerrit-build-unstable-verified-value: -1
Manish V Badarkhe6e25e152022-12-15 18:17:42 +0000152 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