blob: 26f98ad1e769aef6040bfc997dcfcd9011835428 [file] [log] [blame]
Paul Sokolovsky9303ef32024-02-02 19:46:20 +07001- job:
2 name: tf-a-lts2.10-tftf-gerrit-tforg-l1
Paul Sokolovsky6067c522024-02-07 13:48:17 +07003 node: docker-amd64-tf-a-lts2.10-jammy
Paul Sokolovsky9303ef32024-02-02 19:46:20 +07004 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:
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.10'
26 - string:
27 name: GERRIT_REFSPEC
28 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
29 - string:
30 name: GERRIT_PATCHSET_NUMBER
31 default: ''
32 - string:
33 name: GERRIT_CHANGE_NUMBER
34 default: ''
35 - string:
36 name: TF_GERRIT_BRANCH
37 default: 'refs/heads/lts-v2.10'
38 description: "Git project branch for Trusted Firmware-A."
39 - string:
40 name: TF_GERRIT_REFSPEC
41 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
42 description: "Git refspec for Trusted Firmware-A."
43 - string:
44 name: TFTF_GERRIT_REFSPEC
45 default: ${GERRIT_REFSPEC}
46 description: 'Parameter only used by the clone script'
47 - string:
48 name: SPM_REFSPEC
49 default: 'v2.10'
50 description: |
51 SPM (Hafnium) refspec to use.
52 - string:
53 name: CI_REFSPEC
54 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
55 - string:
56 name: MBEDTLS_URL
Yann Gautier43056e52024-09-30 15:39:19 +020057 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.1.tar.gz'
Paul Sokolovsky9303ef32024-02-02 19:46:20 +070058 - string:
59 name: SHARE_FOLDER
60 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
61 description: 'Folder containing shared repositories for downstream pipeline jobs'
62 wrappers:
63 - credentials-binding:
64 - ssh-user-private-key:
65 credential-id: TFA_CI_BOT_USER_SSH_KEY
66 key-file-variable: CI_BOT_KEY
67 username-variable: CI_BOT_USERNAME
68 passphrase-variable: ''
69 - workspace-cleanup
70 - timestamps
71 builders:
72 - shell:
73 !include-raw: scripts/clone.sh
74 - shell: |
75 #!/bin/bash
76 set -e
77 cat << EOF > env.param
78 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
79 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
80 GERRIT_HOST=${GERRIT_HOST}
81 QA_SERVER_PROJECT=${JOB_NAME}
82 QA_SERVER_VERSION=${BUILD_NUMBER}
83 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
84 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
85 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
86 SHARE_FOLDER=${SHARE_FOLDER}
87 EOF
88 - multijob:
89 condition: COMPLETED
90 name: Build and static checks
91 projects:
92 - kill-phase-on: NEVER
93 name: tf-a-static-checks
Paul Sokolovsky94203502024-02-05 15:46:41 +070094 current-parameters: true
Paul Sokolovsky9303ef32024-02-02 19:46:20 +070095 predefined-parameters: |-
96 REPO_UNDER_TEST=tf-a-tests
97 property-file: env.param
98 - multijob:
99 condition: COMPLETED
100 name: Run doc build check
101 projects:
102 - kill-phase-on: NEVER
103 name: tf-a-lts2.10-ci-gateway
Paul Sokolovsky94203502024-02-05 15:46:41 +0700104 current-parameters: true
Paul Sokolovsky9303ef32024-02-02 19:46:20 +0700105 predefined-parameters: |
106 TEST_GROUPS=tftf-l1-check-docs
107 property-file: env.param
108 - multijob:
109 condition: COMPLETED
110 name: Build TF-A-Tests
111 projects:
112 - kill-phase-on: NEVER
113 name: tf-a-lts2.10-ci-gateway
Paul Sokolovsky94203502024-02-05 15:46:41 +0700114 current-parameters: true
Paul Sokolovsky9303ef32024-02-02 19:46:20 +0700115 predefined-parameters: |
116 TEST_GROUPS=tftf-l1-build
117 property-file: env.param
118 - multijob:
119 condition: COMPLETED
120 name: Basic TF-A-Tests test cases
121 projects:
122 - kill-phase-on: NEVER
123 name: tf-a-lts2.10-ci-gateway
Paul Sokolovsky94203502024-02-05 15:46:41 +0700124 current-parameters: true
Paul Sokolovsky9303ef32024-02-02 19:46:20 +0700125 predefined-parameters: |
126 TEST_GROUPS=tftf-l1-fvp
127 property-file: env.param
128 triggers:
129 - gerrit:
130 server-name: review.trustedfirmware.org
131 trigger-on:
132 - comment-added-event:
133 approval-category: "Allow-CI"
134 approval-value: 1
135 projects:
136 - project-compare-type: PLAIN
137 project-pattern: TF-A/tf-a-tests
138 branches:
139 - branch-compare-type: PLAIN
140 branch-pattern: lts-v2.10
141 override-votes: true
142 gerrit-build-started-verified-value: 0
143 gerrit-build-successful-verified-value: 1
144 gerrit-build-failed-verified-value: -1
145 gerrit-build-unstable-verified-value: -1
146 gerrit-build-notbuilt-verified-value: 0
147 gerrit-build-started-codereview-value: 0
148 gerrit-build-successful-codereview-value: 0
149 gerrit-build-failed-codereview-value: 0
150 gerrit-build-unstable-codereview-value: 0
151 gerrit-build-notbuilt-codereview-value: 0