blob: cd65950dbf804d3611816638859daf54b5f242e6 [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 Sokolovskyd254bfe2023-07-27 14:32:20 +030036 name: TF_GERRIT_REFSPEC
37 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
38 - string:
Paul Sokolovskyec665462023-07-25 22:00:36 +030039 name: TFTF_GERRIT_REFSPEC
40 default: ${GERRIT_REFSPEC}
41 description: 'Parameter only used by the clone script'
42 - string:
Paul Sokolovsky8f749e92023-07-27 14:15:52 +030043 name: CI_REFSPEC
44 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
45 - string:
Paul Sokolovsky3a750602023-08-20 09:21:16 +030046 name: MBEDTLS_URL
47 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-2.28.1.tar.gz'
48 - string:
Paul Sokolovskyec665462023-07-25 22:00:36 +030049 name: SHARE_FOLDER
50 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
51 description: 'Folder containing shared repositories for downstream pipeline jobs'
52 wrappers:
53 - credentials-binding:
54 - ssh-user-private-key:
55 credential-id: TFA_CI_BOT_USER_SSH_KEY
56 key-file-variable: CI_BOT_KEY
57 username-variable: CI_BOT_USERNAME
58 passphrase-variable: ''
59 - workspace-cleanup
60 - timestamps
61 builders:
62 - shell:
63 !include-raw: scripts/clone.sh
64 - shell: |
65 #!/bin/bash
66 set -e
67 cat << EOF > env.param
68 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
69 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
70 GERRIT_HOST=${GERRIT_HOST}
71 QA_SERVER_PROJECT=${JOB_NAME}
72 QA_SERVER_VERSION=${BUILD_NUMBER}
73 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
74 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
75 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
76 SHARE_FOLDER=${SHARE_FOLDER}
77 EOF
78 - multijob:
79 condition: COMPLETED
80 name: Carry out level 1 tests
81 projects:
82 - kill-phase-on: NEVER
Paul Sokolovsky9bf62042023-08-18 23:10:05 +030083 name: tf-a-lts2.8-tftf-gerrit-tforg-l1
Paul Sokolovskyec665462023-07-25 22:00:36 +030084 current-parameters: true
85 property-file: env.param
86 - multijob:
87 condition: COMPLETED
88 name: Run Firmware Update Tests
89 projects:
90 - kill-phase-on: NEVER
91 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskye9231642023-08-20 10:16:22 +030092 current-parameters: true
Paul Sokolovskyec665462023-07-25 22:00:36 +030093 predefined-parameters: |-
94 TEST_GROUPS=tftf-l2-fwu
95 TFTF_REFSPEC=$GERRIT_REFSPEC
96 property-file: env.param
97 - multijob:
98 condition: COMPLETED
99 name: Run Level 2 testing of TF-A-Tests
100 projects:
101 - kill-phase-on: NEVER
102 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskye9231642023-08-20 10:16:22 +0300103 current-parameters: true
Paul Sokolovskyec665462023-07-25 22:00:36 +0300104 predefined-parameters: |-
105 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq spm-l2-boot-tests
106 TFTF_REFSPEC=$GERRIT_REFSPEC
107 property-file: env.param
108 - multijob:
109 condition: COMPLETED
110 name: Run extensive TF-A-Tests
111 projects:
112 - kill-phase-on: NEVER
113 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskye9231642023-08-20 10:16:22 +0300114 current-parameters: true
Paul Sokolovskyec665462023-07-25 22:00:36 +0300115 predefined-parameters: |-
116 TEST_GROUPS=tftf-l2-extensive-tests-fvp
117 TFTF_REFSPEC=$GERRIT_REFSPEC
118 property-file: env.param
119 triggers:
120 - gerrit:
121 server-name: review.trustedfirmware.org
122 projects:
123 - branches:
124 - branch-compare-type: PLAIN
125 branch-pattern: lts-v2.8
126 project-compare-type: PLAIN
127 project-pattern: TF-A/tf-a-tests
128 trigger-on:
129 - comment-added-event:
130 approval-category: "Allow-CI"
131 approval-value: 2
132 override-votes: true
133 gerrit-build-started-verified-value: 0
134 gerrit-build-successful-verified-value: 1
135 gerrit-build-failed-verified-value: -1
136 gerrit-build-unstable-verified-value: -1
137 gerrit-build-notbuilt-verified-value: 0
138 gerrit-build-started-codereview-value: 0
139 gerrit-build-successful-codereview-value: 0
140 gerrit-build-failed-codereview-value: 0
141 gerrit-build-unstable-codereview-value: 0
142 gerrit-build-notbuilt-codereview-value: 0