blob: 9f5b3902a2ecefad4345d81789b5c38e86e25e15 [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:
11 - throttle:
12 option: project
13 enabled: true
14 max-total: 5
15 - build-discarder:
Leonardo Sandovala4feb552021-03-02 12:10:21 -060016 days-to-keep: 14
Leonardo Sandoval925329b2020-10-13 16:07:34 -050017 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060018 !include: authorization.yaml.inc
Leonardo Sandoval925329b2020-10-13 16:07:34 -050019 parameters:
20 - string:
21 name: GERRIT_PROJECT
22 default: 'TF-A/tf-a-tests'
23 - string:
24 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060025 default: 'refs/heads/master'
Leonardo Sandoval925329b2020-10-13 16:07:34 -050026 - string:
27 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060028 default: '+refs/heads/master:refs/remotes/origin/master'
Milosz Wasilewski10438582020-12-03 11:36:21 +000029 - string:
30 name: GERRIT_PATCHSET_NUMBER
31 default: ''
32 - string:
33 name: GERRIT_CHANGE_NUMBER
34 default: ''
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050035 - string:
Paul Sokolovskybdbd75f2024-02-02 18:40:07 +070036 name: TF_GERRIT_BRANCH
37 default: 'refs/heads/integration'
38 description: "Git project branch for Trusted Firmware-A."
39 - string:
40 name: TF_GERRIT_REFSPEC
41 default: '+refs/heads/integration:refs/remotes/origin/integration'
42 description: "Git refspec for Trusted Firmware-A."
43 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050044 name: TFTF_GERRIT_REFSPEC
45 default: ${GERRIT_REFSPEC}
46 description: 'Parameter only used by the clone script'
47 - string:
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070048 name: SPM_REFSPEC
49 default: '+refs/heads/master:refs/remotes/origin/master'
50 description: |
Paul Sokolovskybdbd75f2024-02-02 18:40:07 +070051 SPM (Hafnium) refspec to use.
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070052 - string:
53 name: CI_REFSPEC
54 default: '+refs/heads/master:refs/remotes/origin/master'
55 - string:
56 name: MBEDTLS_URL
Ryan Everette6e551c2024-09-16 15:30:54 +010057 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.1.tar.gz'
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070058 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050059 name: SHARE_FOLDER
60 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
61 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandoval925329b2020-10-13 16:07:34 -050062 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:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050072 - shell:
73 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010074 - shell: |
Leonardo Sandoval925329b2020-10-13 16:07:34 -050075 #!/bin/bash
Leonardo Sandoval925329b2020-10-13 16:07:34 -050076 set -e
Leonardo Sandoval925329b2020-10-13 16:07:34 -050077 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000078 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
79 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000080 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000081 QA_SERVER_PROJECT=${JOB_NAME}
82 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval925329b2020-10-13 16:07:34 -050083 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
84 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
85 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050086 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandoval925329b2020-10-13 16:07:34 -050087 EOF
Leonardo Sandoval925329b2020-10-13 16:07:34 -050088 - multijob:
89 condition: COMPLETED
90 name: Build and static checks
91 projects:
92 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -060093 name: tf-a-static-checks
Paul Sokolovsky62b3ca32024-02-05 15:23:31 +070094 current-parameters: true
Leonardo Sandoval925329b2020-10-13 16:07:34 -050095 predefined-parameters: |-
Leonardo Sandoval4605bc62021-03-19 10:48:01 -060096 REPO_UNDER_TEST=tf-a-tests
Leonardo Sandoval925329b2020-10-13 16:07:34 -050097 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -050098 - multijob:
99 condition: COMPLETED
100 name: Run doc build check
101 projects:
102 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600103 name: tf-a-ci-gateway
Paul Sokolovsky62b3ca32024-02-05 15:23:31 +0700104 current-parameters: true
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500105 predefined-parameters: |
106 TEST_GROUPS=tftf-l1-check-docs
107 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500108 - multijob:
109 condition: COMPLETED
110 name: Build TF-A-Tests
111 projects:
112 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600113 name: tf-a-ci-gateway
Paul Sokolovsky62b3ca32024-02-05 15:23:31 +0700114 current-parameters: true
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500115 predefined-parameters: |
116 TEST_GROUPS=tftf-l1-build
117 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500118 - multijob:
119 condition: COMPLETED
120 name: Basic TF-A-Tests test cases
121 projects:
122 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600123 name: tf-a-ci-gateway
Paul Sokolovsky62b3ca32024-02-05 15:23:31 +0700124 current-parameters: true
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500125 predefined-parameters: |
Manish Pandeyb5fcc442022-06-20 14:08:45 +0100126 TEST_GROUPS=tftf-l1-fvp
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500127 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500128 triggers:
129 - gerrit:
130 server-name: review.trustedfirmware.org
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500131 trigger-on:
132 - comment-added-event:
Riku Voipiocb3356b2020-12-03 10:33:23 +0200133 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: master
Manish V Badarkhe6e25e152022-12-15 18:17:42 +0000141 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