blob: 45dbba97008b9856160d743d5c4e32d19d0d1f2a [file] [log] [blame]
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -05001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-tftf-gerrit-tforg-l2
Paul Sokolovskyeb463382023-08-05 13:23:05 +03003 node: docker-amd64-tf-a-jammy
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -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+2
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 Sandoval119d8cf2020-10-13 16:22:33 -050017 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060018 !include: authorization.yaml.inc
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -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 Sandoval119d8cf2020-10-13 16:22:33 -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:
36 name: TFTF_GERRIT_REFSPEC
37 default: ${GERRIT_REFSPEC}
38 description: 'Parameter only used by the clone script'
39 - string:
Paul Sokolovsky097d84c2024-02-02 17:46:10 +070040 name: SPM_REFSPEC
41 default: '+refs/heads/master:refs/remotes/origin/master'
42 description: |
43 SPM(Hafnium) refspec to use. The master branch is used by default.
44 - string:
45 name: CI_REFSPEC
46 default: '+refs/heads/master:refs/remotes/origin/master'
47 - string:
48 name: MBEDTLS_URL
49 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.4.1.tar.gz'
50 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050051 name: SHARE_FOLDER
52 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
53 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050054 wrappers:
55 - credentials-binding:
56 - ssh-user-private-key:
57 credential-id: TFA_CI_BOT_USER_SSH_KEY
58 key-file-variable: CI_BOT_KEY
59 username-variable: CI_BOT_USERNAME
60 passphrase-variable: ''
61 - workspace-cleanup
62 - timestamps
63 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050064 - shell:
65 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010066 - shell: |
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050067 #!/bin/bash
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050068 set -e
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050069 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000070 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
71 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000072 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000073 QA_SERVER_PROJECT=${JOB_NAME}
74 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050075 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
76 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
77 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050078 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050079 EOF
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050080 - multijob:
81 condition: COMPLETED
82 name: Carry out level 1 tests
83 projects:
84 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -060085 name: tf-a-tftf-gerrit-tforg-l1
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050086 current-parameters: true
87 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050088 - multijob:
89 condition: COMPLETED
90 name: Run Firmware Update Tests
91 projects:
92 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -060093 name: tf-a-ci-gateway
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050094 predefined-parameters: |-
95 TEST_GROUPS=tftf-l2-fwu
96 TFTF_REFSPEC=$GERRIT_REFSPEC
97 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050098 - multijob:
99 condition: COMPLETED
100 name: Run Level 2 testing of TF-A-Tests
101 projects:
102 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600103 name: tf-a-ci-gateway
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500104 predefined-parameters: |-
Leonardo Sandoval2b96b4b2021-03-22 11:11:56 -0600105 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq spm-l2-boot-tests
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500106 TFTF_REFSPEC=$GERRIT_REFSPEC
107 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500108 - multijob:
109 condition: COMPLETED
110 name: Run extensive TF-A-Tests
111 projects:
112 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600113 name: tf-a-ci-gateway
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500114 predefined-parameters: |-
115 TEST_GROUPS=tftf-l2-extensive-tests-fvp
116 TFTF_REFSPEC=$GERRIT_REFSPEC
117 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500118 triggers:
119 - gerrit:
120 server-name: review.trustedfirmware.org
121 projects:
122 - branches:
123 - branch-compare-type: PLAIN
124 branch-pattern: master
125 project-compare-type: PLAIN
126 project-pattern: TF-A/tf-a-tests
127 trigger-on:
128 - comment-added-event:
129 approval-category: "Allow-CI"
130 approval-value: 2
Milosz Wasilewski72b118d2020-12-03 12:18:19 +0000131 override-votes: true
Manish V Badarkhe6e25e152022-12-15 18:17:42 +0000132 gerrit-build-started-verified-value: 0
Milosz Wasilewski72b118d2020-12-03 12:18:19 +0000133 gerrit-build-successful-verified-value: 1
134 gerrit-build-failed-verified-value: -1
135 gerrit-build-unstable-verified-value: -1
Manish V Badarkhe6e25e152022-12-15 18:17:42 +0000136 gerrit-build-notbuilt-verified-value: 0
137 gerrit-build-started-codereview-value: 0
138 gerrit-build-successful-codereview-value: 0
139 gerrit-build-failed-codereview-value: 0
140 gerrit-build-unstable-codereview-value: 0
141 gerrit-build-notbuilt-codereview-value: 0