blob: 30675f94ea8ec02290401d71260f2fc7199554b7 [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
Paul Sokolovsky9303ef32024-02-02 19:46:20 +070017 parameters:
18 - string:
19 name: GERRIT_PROJECT
20 default: 'TF-A/tf-a-tests'
21 - string:
22 name: GERRIT_BRANCH
23 default: 'refs/heads/lts-v2.10'
24 - string:
25 name: GERRIT_REFSPEC
26 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
27 - string:
28 name: GERRIT_PATCHSET_NUMBER
29 default: ''
30 - string:
31 name: GERRIT_CHANGE_NUMBER
32 default: ''
33 - string:
34 name: TF_GERRIT_BRANCH
35 default: 'refs/heads/lts-v2.10'
36 description: "Git project branch for Trusted Firmware-A."
37 - string:
38 name: TF_GERRIT_REFSPEC
39 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
40 description: "Git refspec for Trusted Firmware-A."
41 - string:
42 name: TFTF_GERRIT_REFSPEC
43 default: ${GERRIT_REFSPEC}
44 description: 'Parameter only used by the clone script'
45 - string:
46 name: SPM_REFSPEC
47 default: 'v2.10'
48 description: |
49 SPM (Hafnium) refspec to use.
50 - string:
51 name: CI_REFSPEC
52 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
53 - string:
Saheer Babub495f032025-01-21 23:01:11 +000054 name: JOBS_REFSPEC
55 default: 'refs/heads/main'
56 description: |
57 tf-a-job-configs refspec to use. The main branch is used by default.
58 - string:
Paul Sokolovsky9303ef32024-02-02 19:46:20 +070059 name: MBEDTLS_URL
Yann Gautier63a28f32025-04-10 17:00:43 +020060 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Paul Sokolovsky9303ef32024-02-02 19:46:20 +070061 - string:
62 name: SHARE_FOLDER
63 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
64 description: 'Folder containing shared repositories for downstream pipeline jobs'
65 wrappers:
66 - credentials-binding:
67 - ssh-user-private-key:
68 credential-id: TFA_CI_BOT_USER_SSH_KEY
69 key-file-variable: CI_BOT_KEY
70 username-variable: CI_BOT_USERNAME
71 passphrase-variable: ''
72 - workspace-cleanup
73 - timestamps
74 builders:
75 - shell:
76 !include-raw: scripts/clone.sh
77 - shell: |
78 #!/bin/bash
79 set -e
80 cat << EOF > env.param
81 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
82 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
83 GERRIT_HOST=${GERRIT_HOST}
84 QA_SERVER_PROJECT=${JOB_NAME}
85 QA_SERVER_VERSION=${BUILD_NUMBER}
86 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
87 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
88 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
89 SHARE_FOLDER=${SHARE_FOLDER}
90 EOF
91 - multijob:
92 condition: COMPLETED
93 name: Build and static checks
94 projects:
95 - kill-phase-on: NEVER
96 name: tf-a-static-checks
Paul Sokolovsky94203502024-02-05 15:46:41 +070097 current-parameters: true
Paul Sokolovsky9303ef32024-02-02 19:46:20 +070098 predefined-parameters: |-
99 REPO_UNDER_TEST=tf-a-tests
100 property-file: env.param
101 - multijob:
102 condition: COMPLETED
103 name: Run doc build check
104 projects:
105 - kill-phase-on: NEVER
106 name: tf-a-lts2.10-ci-gateway
Paul Sokolovsky94203502024-02-05 15:46:41 +0700107 current-parameters: true
Paul Sokolovsky9303ef32024-02-02 19:46:20 +0700108 predefined-parameters: |
109 TEST_GROUPS=tftf-l1-check-docs
110 property-file: env.param
111 - multijob:
112 condition: COMPLETED
113 name: Build TF-A-Tests
114 projects:
115 - kill-phase-on: NEVER
116 name: tf-a-lts2.10-ci-gateway
Paul Sokolovsky94203502024-02-05 15:46:41 +0700117 current-parameters: true
Paul Sokolovsky9303ef32024-02-02 19:46:20 +0700118 predefined-parameters: |
119 TEST_GROUPS=tftf-l1-build
120 property-file: env.param
121 - multijob:
122 condition: COMPLETED
123 name: Basic TF-A-Tests test cases
124 projects:
125 - kill-phase-on: NEVER
126 name: tf-a-lts2.10-ci-gateway
Paul Sokolovsky94203502024-02-05 15:46:41 +0700127 current-parameters: true
Paul Sokolovsky9303ef32024-02-02 19:46:20 +0700128 predefined-parameters: |
129 TEST_GROUPS=tftf-l1-fvp
130 property-file: env.param
131 triggers:
132 - gerrit:
133 server-name: review.trustedfirmware.org
134 trigger-on:
135 - comment-added-event:
136 approval-category: "Allow-CI"
137 approval-value: 1
138 projects:
139 - project-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000140 project-pattern: next/TF-A/tf-a-tests
Paul Sokolovsky9303ef32024-02-02 19:46:20 +0700141 branches:
142 - branch-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000143 branch-pattern: openci-migration-lts-v2.10
Paul Sokolovsky9303ef32024-02-02 19:46:20 +0700144 override-votes: true
145 gerrit-build-started-verified-value: 0
146 gerrit-build-successful-verified-value: 1
147 gerrit-build-failed-verified-value: -1
148 gerrit-build-unstable-verified-value: -1
149 gerrit-build-notbuilt-verified-value: 0
150 gerrit-build-started-codereview-value: 0
151 gerrit-build-successful-codereview-value: 0
152 gerrit-build-failed-codereview-value: 0
153 gerrit-build-unstable-codereview-value: 0
154 gerrit-build-notbuilt-codereview-value: 0