blob: 5dd98d6b5dd9f82a9ce26cd1f6830dfe90851c3e [file] [log] [blame]
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -05001- job:
2 name: tf-gerrit-tforg-l2
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -05003 node: docker-amd64-tf-a-bionic
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -05004 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: |
8 Job that triggers for every TF-A 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 Sandoval7bc39d72020-10-12 17:11:03 -050017 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060018 !include: authorization.yaml.inc
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050019 parameters:
20 - string:
21 name: GERRIT_PROJECT
22 default: 'TF-A/trusted-firmware-a'
23 - string:
24 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060025 default: 'refs/heads/integration'
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050026 - string:
27 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060028 default: '+refs/heads/integration:refs/remotes/origin/integration'
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: TF_GERRIT_REFSPEC
37 default: ${GERRIT_REFSPEC}
38 description: 'Parameter only used by the clone script'
39 - string:
40 name: SHARE_FOLDER
41 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
42 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050043 wrappers:
44 - credentials-binding:
45 - ssh-user-private-key:
46 credential-id: TFA_CI_BOT_USER_SSH_KEY
47 key-file-variable: CI_BOT_KEY
48 username-variable: CI_BOT_USERNAME
49 passphrase-variable: ''
50 - workspace-cleanup
51 - timestamps
52 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050053 - shell:
54 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010055 - shell: |
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050056 #!/bin/bash
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050057 set -e
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050058 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000059 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
60 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000061 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000062 QA_SERVER_PROJECT=${JOB_NAME}
63 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval030e3362021-06-17 11:38:25 -050064 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
65 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
66 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050067 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050068 EOF
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050069 - multijob:
70 condition: COMPLETED
71 name: Carry out level 1 tests
72 projects:
73 - kill-phase-on: NEVER
Leonardo Sandovalbee5db12021-03-18 17:06:17 -060074 name: tf-gerrit-tforg-l1
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050075 current-parameters: true
76 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050077 - multijob:
78 condition: COMPLETED
79 name: Build Trusted Firmware
80 projects:
81 - kill-phase-on: NEVER
82 name: tf-ci-gateway
83 predefined-parameters: |
84 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
85 TF_REFSPEC=$GERRIT_REFSPEC
86 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050087 - multijob:
88 condition: COMPLETED
89 name: TFTF tests
90 projects:
91 - kill-phase-on: NEVER
92 name: tf-ci-gateway
93 predefined-parameters: |
Leonardo Sandoval0b9ee852021-02-12 18:27:37 -060094 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050095 TF_REFSPEC=$GERRIT_REFSPEC
96 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050097 - multijob:
98 condition: COMPLETED
99 name: Boot up to the Linux shell prompt
100 projects:
101 - kill-phase-on: NEVER
102 name: tf-ci-gateway
103 predefined-parameters: |
Leonardo Sandoval0e0ee892021-02-16 10:39:51 -0600104 TEST_GROUPS=tf-l2-boot-tests-aarch32 tf-l2-boot-tests-bl2_el3 tf-l2-boot-tests-cortex tf-l2-boot-tests-foundation tf-l2-boot-tests-juno tf-l2-boot-tests-latest tf-l2-boot-tests-misc tf-l2-boot-tests-rootfs tf-l2-boot-tests-spm-mm spm-l2-boot-tests
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500105 TF_REFSPEC=$GERRIT_REFSPEC
106 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500107 - multijob:
108 condition: COMPLETED
109 name: Coverity Scan
110 projects:
111 - kill-phase-on: NEVER
112 name: tf-ci-gateway
113 predefined-parameters: |
114 TEST_GROUPS=tf-l2-coverity-misra
115 TF_REFSPEC=$GERRIT_REFSPEC
116 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500117 - conditional-step:
118 condition-command: |-
119 [ "$NOMINATION_FILE" ]
120 condition-kind: shell
121 on-evaluation-failure: dont-run
122 steps:
123 - multijob:
124 condition: COMPLETED
125 name: Nominated tests
126 projects:
127 - kill-phase-on: NEVER
128 name: tf-ci-gateway
129 predefined-parameters: |
130 TEST_GROUPS=@$NOMINATION_FILE
131 TF_REFSPEC=$GERRIT_REFSPEC
132 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500133 triggers:
134 - gerrit:
135 server-name: review.trustedfirmware.org
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500136 trigger-on:
137 - comment-added-event:
138 approval-category: "Allow-CI"
139 approval-value: 2
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200140 projects:
141 - project-compare-type: PLAIN
142 project-pattern: TF-A/trusted-firmware-a
143 branches:
144 - branch-compare-type: PLAIN
145 branch-pattern: integration
146 override-votes: true
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100147 gerrit-build-started-verified-value: 0
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200148 gerrit-build-successful-verified-value: 1
Fathi Boudra09d992e2020-12-14 10:22:56 +0100149 gerrit-build-failed-verified-value: 0
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200150 gerrit-build-unstable-verified-value: -1
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100151 gerrit-build-notbuilt-verified-value: 0
152 gerrit-build-started-codereview-value: 0
153 gerrit-build-successful-codereview-value: 0
154 gerrit-build-failed-codereview-value: 0
155 gerrit-build-unstable-codereview-value: -1
156 gerrit-build-notbuilt-codereview-value: 0
157 failure-message: 'OpenCI: build failed'
158 successful-message: 'OpenCI: build successful'
159 unstable-message: 'OpenCI: build unstable'
160 notbuilt-message: 'OpenCI: no builds executed'
161 skip-vote:
162 successful: true
163 failed: true
164 unstable: true
165 notbuilt: true
166 silent: false
167 silent-start: false