blob: 6ee630c80d650d451a48d9f4ebdca65da415bc43 [file] [log] [blame]
Paul Sokolovskyec665462023-07-25 22:00:36 +03001- job:
2 name: tf-a-lts2.8-tftf-gerrit-tforg-l2
3 node: docker-amd64-tf-a-lts2.8-jammy
4 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:
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.8'
26 - string:
27 name: GERRIT_REFSPEC
28 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
29 - string:
30 name: GERRIT_PATCHSET_NUMBER
31 default: ''
32 - string:
33 name: GERRIT_CHANGE_NUMBER
34 default: ''
35 - string:
Paul Sokolovskyd254bfe2023-07-27 14:32:20 +030036 name: TF_GERRIT_REFSPEC
37 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
38 - string:
Paul Sokolovskyec665462023-07-25 22:00:36 +030039 name: TFTF_GERRIT_REFSPEC
40 default: ${GERRIT_REFSPEC}
41 description: 'Parameter only used by the clone script'
42 - string:
Paul Sokolovsky8f749e92023-07-27 14:15:52 +030043 name: CI_REFSPEC
44 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
45 - string:
Paul Sokolovskyec665462023-07-25 22:00:36 +030046 name: SHARE_FOLDER
47 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
48 description: 'Folder containing shared repositories for downstream pipeline jobs'
49 wrappers:
50 - credentials-binding:
51 - ssh-user-private-key:
52 credential-id: TFA_CI_BOT_USER_SSH_KEY
53 key-file-variable: CI_BOT_KEY
54 username-variable: CI_BOT_USERNAME
55 passphrase-variable: ''
56 - workspace-cleanup
57 - timestamps
58 builders:
59 - shell:
60 !include-raw: scripts/clone.sh
61 - shell: |
62 #!/bin/bash
63 set -e
64 cat << EOF > env.param
65 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
66 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
67 GERRIT_HOST=${GERRIT_HOST}
68 QA_SERVER_PROJECT=${JOB_NAME}
69 QA_SERVER_VERSION=${BUILD_NUMBER}
70 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
71 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
72 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
73 SHARE_FOLDER=${SHARE_FOLDER}
74 EOF
75 - multijob:
76 condition: COMPLETED
77 name: Carry out level 1 tests
78 projects:
79 - kill-phase-on: NEVER
Paul Sokolovsky9bf62042023-08-18 23:10:05 +030080 name: tf-a-lts2.8-tftf-gerrit-tforg-l1
Paul Sokolovskyec665462023-07-25 22:00:36 +030081 current-parameters: true
82 property-file: env.param
83 - multijob:
84 condition: COMPLETED
85 name: Run Firmware Update Tests
86 projects:
87 - kill-phase-on: NEVER
88 name: tf-a-lts2.8-ci-gateway
89 predefined-parameters: |-
90 TEST_GROUPS=tftf-l2-fwu
91 TFTF_REFSPEC=$GERRIT_REFSPEC
92 property-file: env.param
93 - multijob:
94 condition: COMPLETED
95 name: Run Level 2 testing of TF-A-Tests
96 projects:
97 - kill-phase-on: NEVER
98 name: tf-a-lts2.8-ci-gateway
99 predefined-parameters: |-
100 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq spm-l2-boot-tests
101 TFTF_REFSPEC=$GERRIT_REFSPEC
102 property-file: env.param
103 - multijob:
104 condition: COMPLETED
105 name: Run extensive TF-A-Tests
106 projects:
107 - kill-phase-on: NEVER
108 name: tf-a-lts2.8-ci-gateway
109 predefined-parameters: |-
110 TEST_GROUPS=tftf-l2-extensive-tests-fvp
111 TFTF_REFSPEC=$GERRIT_REFSPEC
112 property-file: env.param
113 triggers:
114 - gerrit:
115 server-name: review.trustedfirmware.org
116 projects:
117 - branches:
118 - branch-compare-type: PLAIN
119 branch-pattern: lts-v2.8
120 project-compare-type: PLAIN
121 project-pattern: TF-A/tf-a-tests
122 trigger-on:
123 - comment-added-event:
124 approval-category: "Allow-CI"
125 approval-value: 2
126 override-votes: true
127 gerrit-build-started-verified-value: 0
128 gerrit-build-successful-verified-value: 1
129 gerrit-build-failed-verified-value: -1
130 gerrit-build-unstable-verified-value: -1
131 gerrit-build-notbuilt-verified-value: 0
132 gerrit-build-started-codereview-value: 0
133 gerrit-build-successful-codereview-value: 0
134 gerrit-build-failed-codereview-value: 0
135 gerrit-build-unstable-codereview-value: 0
136 gerrit-build-notbuilt-codereview-value: 0