blob: b69418bc56c384980720968c3ab4f6e9c7b1ccf1 [file] [log] [blame]
Leonardo Sandoval925329b2020-10-13 16:07:34 -05001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-tftf-gerrit-tforg-l1
Paul Sokolovsky03059102023-08-05 12:58:05 +03003 node: docker-amd64-tf-a-jammy
Leonardo Sandoval925329b2020-10-13 16:07:34 -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+1
9 label on review.trustedfirmware.org.
10 properties:
Chris Kay675db4f2025-06-24 14:14:34 +010011 - throttle:
12 option: project
13 enabled: true
14 max-total: 5
15 - build-discarder:
16 days-to-keep: 14
Leonardo Sandoval925329b2020-10-13 16:07:34 -050017 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010018 - string:
19 name: GERRIT_PROJECT
20 default: TF-A/tf-a-tests
21 - string:
22 name: GERRIT_BRANCH
23 default: refs/heads/master
24 - string:
25 name: GERRIT_REFSPEC
26 default: +refs/heads/master:refs/remotes/origin/master
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/integration
36 description: Git project branch for Trusted Firmware-A.
37 - string:
38 name: TF_GERRIT_REFSPEC
39 default: +refs/heads/integration:refs/remotes/origin/integration
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: +refs/heads/master:refs/remotes/origin/master
48 description: |
49 SPM (Hafnium) refspec to use.
50 - string:
51 name: RMM_REFSPEC
52 default: +refs/heads/main:refs/remotes/origin/main
53 description: |
54 tf-rmm refspec to use. The main branch is used by default.
55 - string:
56 name: CI_REFSPEC
57 default: +refs/heads/master:refs/remotes/origin/master
58 - string:
59 name: JOBS_REFSPEC
60 default: refs/heads/master
61 description: |
62 tf-a-job-configs refspec to use. The master branch is used by default.
63 - string:
64 name: MBEDTLS_URL
65 default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz
66 - string:
67 name: SHARE_FOLDER
68 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
69 description: Folder containing shared repositories for downstream pipeline jobs
Leonardo Sandoval925329b2020-10-13 16:07:34 -050070 wrappers:
71 - credentials-binding:
72 - ssh-user-private-key:
73 credential-id: TFA_CI_BOT_USER_SSH_KEY
74 key-file-variable: CI_BOT_KEY
75 username-variable: CI_BOT_USERNAME
Chris Kay675db4f2025-06-24 14:14:34 +010076 passphrase-variable: ""
Leonardo Sandoval925329b2020-10-13 16:07:34 -050077 - workspace-cleanup
78 - timestamps
79 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010080 - shell: !include-raw: scripts/clone.sh
81 - shell: |
82 #!/bin/bash
83 set -e
84 cat << EOF > env.param
85 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
86 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
87 GERRIT_HOST=${GERRIT_HOST}
88 QA_SERVER_PROJECT=${JOB_NAME}
89 QA_SERVER_VERSION=${BUILD_NUMBER}
90 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
91 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
92 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
93 SHARE_FOLDER=${SHARE_FOLDER}
94 EOF
95 - multijob:
96 condition: COMPLETED
97 name: Build and static checks
98 projects:
99 - kill-phase-on: NEVER
100 name: tf-a-static-checks
101 current-parameters: true
102 predefined-parameters: REPO_UNDER_TEST=tf-a-tests
103 property-file: env.param
104 - multijob:
105 condition: COMPLETED
106 name: Run doc build check
107 projects:
108 - kill-phase-on: NEVER
109 name: tf-a-ci-gateway
110 current-parameters: true
111 predefined-parameters: |
112 TEST_GROUPS=tftf-l1-check-docs
113 property-file: env.param
114 - multijob:
115 condition: COMPLETED
116 name: Build TF-A-Tests
117 projects:
118 - kill-phase-on: NEVER
119 name: tf-a-ci-gateway
120 current-parameters: true
121 predefined-parameters: |
122 TEST_GROUPS=tftf-l1-build
123 property-file: env.param
124 - multijob:
125 condition: COMPLETED
126 name: Basic TF-A-Tests test cases
127 projects:
128 - kill-phase-on: NEVER
129 name: tf-a-ci-gateway
130 current-parameters: true
131 predefined-parameters: |
132 TEST_GROUPS=tftf-l1-fvp
133 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500134 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +0100135 - gerrit:
136 server-name: review.trustedfirmware.org
137 trigger-on:
138 - comment-added-event:
139 approval-category: Allow-CI
140 approval-value: 1
141 projects:
142 - project-compare-type: PLAIN
143 project-pattern: TF-A/tf-a-tests
144 branches:
145 - branch-compare-type: PLAIN
146 branch-pattern: master
147 override-votes: true
148 gerrit-build-started-verified-value: 0
149 gerrit-build-successful-verified-value: 1
150 gerrit-build-failed-verified-value: -1
151 gerrit-build-unstable-verified-value: -1
152 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