blob: 29eacf9334df356231ab47b3aa01cb3272426948 [file] [log] [blame]
Paul Sokolovskyec665462023-07-25 22:00:36 +03001- job:
2 name: tf-a-lts2.8-tftf-gerrit-tforg-l2
3 node: docker-amd64-tf-a-lts2.8-jammy
4 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:
16 days-to-keep: 14
17 - authorization:
18 !include: authorization.yaml.inc
19 parameters:
20 - string:
21 name: GERRIT_PROJECT
22 default: 'TF-A/tf-a-tests'
23 - string:
24 name: GERRIT_BRANCH
25 default: 'refs/heads/lts-v2.8'
26 - string:
27 name: GERRIT_REFSPEC
28 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
29 - string:
30 name: GERRIT_PATCHSET_NUMBER
31 default: ''
32 - string:
33 name: GERRIT_CHANGE_NUMBER
34 default: ''
35 - string:
Paul Sokolovskyf433ac52023-08-22 14:23:01 +030036 name: TF_GERRIT_BRANCH
37 default: 'refs/heads/lts-v2.8'
38 - string:
Paul Sokolovskyd254bfe2023-07-27 14:32:20 +030039 name: TF_GERRIT_REFSPEC
40 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
41 - string:
Paul Sokolovskyec665462023-07-25 22:00:36 +030042 name: TFTF_GERRIT_REFSPEC
43 default: ${GERRIT_REFSPEC}
44 description: 'Parameter only used by the clone script'
45 - string:
Paul Sokolovskyc3e1f272023-08-21 23:47:29 +030046 name: SPM_REFSPEC
47 default: 'v2.8'
48 description: |
49 SPM (Hafnium) refspec to use.
50 - string:
Paul Sokolovsky8f749e92023-07-27 14:15:52 +030051 name: CI_REFSPEC
52 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
53 - string:
Paul Sokolovsky3a750602023-08-20 09:21:16 +030054 name: MBEDTLS_URL
Govindraj Raja022c4db2023-10-10 16:42:04 -050055 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-2.28.5.tar.gz'
Paul Sokolovsky3a750602023-08-20 09:21:16 +030056 - string:
Paul Sokolovskyec665462023-07-25 22:00:36 +030057 name: SHARE_FOLDER
58 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
59 description: 'Folder containing shared repositories for downstream pipeline jobs'
60 wrappers:
61 - credentials-binding:
62 - ssh-user-private-key:
63 credential-id: TFA_CI_BOT_USER_SSH_KEY
64 key-file-variable: CI_BOT_KEY
65 username-variable: CI_BOT_USERNAME
66 passphrase-variable: ''
67 - workspace-cleanup
68 - timestamps
69 builders:
70 - shell:
71 !include-raw: scripts/clone.sh
72 - shell: |
73 #!/bin/bash
74 set -e
75 cat << EOF > env.param
76 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
77 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
78 GERRIT_HOST=${GERRIT_HOST}
79 QA_SERVER_PROJECT=${JOB_NAME}
80 QA_SERVER_VERSION=${BUILD_NUMBER}
81 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
82 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
83 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
84 SHARE_FOLDER=${SHARE_FOLDER}
85 EOF
86 - multijob:
87 condition: COMPLETED
88 name: Carry out level 1 tests
89 projects:
90 - kill-phase-on: NEVER
Paul Sokolovsky9bf62042023-08-18 23:10:05 +030091 name: tf-a-lts2.8-tftf-gerrit-tforg-l1
Paul Sokolovskyec665462023-07-25 22:00:36 +030092 current-parameters: true
93 property-file: env.param
94 - multijob:
95 condition: COMPLETED
96 name: Run Firmware Update Tests
97 projects:
98 - kill-phase-on: NEVER
99 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskye9231642023-08-20 10:16:22 +0300100 current-parameters: true
Paul Sokolovskyec665462023-07-25 22:00:36 +0300101 predefined-parameters: |-
102 TEST_GROUPS=tftf-l2-fwu
103 TFTF_REFSPEC=$GERRIT_REFSPEC
104 property-file: env.param
105 - multijob:
106 condition: COMPLETED
107 name: Run Level 2 testing of TF-A-Tests
108 projects:
109 - kill-phase-on: NEVER
110 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskye9231642023-08-20 10:16:22 +0300111 current-parameters: true
Paul Sokolovskyec665462023-07-25 22:00:36 +0300112 predefined-parameters: |-
113 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq spm-l2-boot-tests
114 TFTF_REFSPEC=$GERRIT_REFSPEC
115 property-file: env.param
116 - multijob:
117 condition: COMPLETED
118 name: Run extensive TF-A-Tests
119 projects:
120 - kill-phase-on: NEVER
121 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskye9231642023-08-20 10:16:22 +0300122 current-parameters: true
Paul Sokolovskyec665462023-07-25 22:00:36 +0300123 predefined-parameters: |-
124 TEST_GROUPS=tftf-l2-extensive-tests-fvp
125 TFTF_REFSPEC=$GERRIT_REFSPEC
126 property-file: env.param
127 triggers:
128 - gerrit:
129 server-name: review.trustedfirmware.org
130 projects:
131 - branches:
132 - branch-compare-type: PLAIN
133 branch-pattern: lts-v2.8
134 project-compare-type: PLAIN
135 project-pattern: TF-A/tf-a-tests
136 trigger-on:
137 - comment-added-event:
138 approval-category: "Allow-CI"
139 approval-value: 2
140 override-votes: true
141 gerrit-build-started-verified-value: 0
142 gerrit-build-successful-verified-value: 1
143 gerrit-build-failed-verified-value: -1
144 gerrit-build-unstable-verified-value: -1
145 gerrit-build-notbuilt-verified-value: 0
146 gerrit-build-started-codereview-value: 0
147 gerrit-build-successful-codereview-value: 0
148 gerrit-build-failed-codereview-value: 0
149 gerrit-build-unstable-codereview-value: 0
150 gerrit-build-notbuilt-codereview-value: 0