blob: f904f8be681b34b87b6ed009ba4ebc1fd055de23 [file] [log] [blame]
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -05001- job:
2 name: tf-gerrit-tforg-l2
3 node: master
4 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:
16 days-to-keep: 180
17 num-to-keep: 180
18 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060019 !include: authorization.yaml.inc
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050020 parameters:
21 - string:
22 name: GERRIT_PROJECT
23 default: 'TF-A/trusted-firmware-a'
24 - string:
25 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060026 default: 'refs/heads/integration'
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050027 - string:
28 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060029 default: '+refs/heads/integration:refs/remotes/origin/integration'
Milosz Wasilewski10438582020-12-03 11:36:21 +000030 - string:
31 name: GERRIT_PATCHSET_NUMBER
32 default: ''
33 - string:
34 name: GERRIT_CHANGE_NUMBER
35 default: ''
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050036 wrappers:
37 - credentials-binding:
38 - ssh-user-private-key:
39 credential-id: TFA_CI_BOT_USER_SSH_KEY
40 key-file-variable: CI_BOT_KEY
41 username-variable: CI_BOT_USERNAME
42 passphrase-variable: ''
43 - workspace-cleanup
44 - timestamps
45 builders:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010046 - shell: |
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050047 #!/bin/bash
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050048 set -e
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050049 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000050 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
51 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000052 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000053 QA_SERVER_PROJECT=${JOB_NAME}
54 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050055 GERRIT_PROJECT=${GERRIT_PROJECT}
56 GERRIT_BRANCH=${GERRIT_BRANCH}
57 GERRIT_REFSPEC=${GERRIT_REFSPEC}
58 EOF
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050059 - multijob:
60 condition: COMPLETED
61 name: Carry out level 1 tests
62 projects:
63 - kill-phase-on: NEVER
64 name: tf-tftf-gerrit-tforg-l1
65 current-parameters: true
66 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050067 - multijob:
68 condition: COMPLETED
69 name: Build Trusted Firmware
70 projects:
71 - kill-phase-on: NEVER
72 name: tf-ci-gateway
73 predefined-parameters: |
74 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
75 TF_REFSPEC=$GERRIT_REFSPEC
76 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050077 - multijob:
78 condition: COMPLETED
79 name: TFTF tests
80 projects:
81 - kill-phase-on: NEVER
82 name: tf-ci-gateway
83 predefined-parameters: |
Leonardo Sandoval0b9ee852021-02-12 18:27:37 -060084 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 -050085 TF_REFSPEC=$GERRIT_REFSPEC
86 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050087 - multijob:
88 condition: COMPLETED
89 name: Boot up to the Linux shell prompt
90 projects:
91 - kill-phase-on: NEVER
92 name: tf-ci-gateway
93 predefined-parameters: |
Leonardo Sandoval67ac6f12020-12-10 11:02:26 -060094 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
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: Coverity Scan
100 projects:
101 - kill-phase-on: NEVER
102 name: tf-ci-gateway
103 predefined-parameters: |
104 TEST_GROUPS=tf-l2-coverity-misra
105 TF_REFSPEC=$GERRIT_REFSPEC
106 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500107 - conditional-step:
108 condition-command: |-
109 [ "$NOMINATION_FILE" ]
110 condition-kind: shell
111 on-evaluation-failure: dont-run
112 steps:
113 - multijob:
114 condition: COMPLETED
115 name: Nominated tests
116 projects:
117 - kill-phase-on: NEVER
118 name: tf-ci-gateway
119 predefined-parameters: |
120 TEST_GROUPS=@$NOMINATION_FILE
121 TF_REFSPEC=$GERRIT_REFSPEC
122 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500123 triggers:
124 - gerrit:
125 server-name: review.trustedfirmware.org
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500126 trigger-on:
127 - comment-added-event:
128 approval-category: "Allow-CI"
129 approval-value: 2
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200130 projects:
131 - project-compare-type: PLAIN
132 project-pattern: TF-A/trusted-firmware-a
133 branches:
134 - branch-compare-type: PLAIN
135 branch-pattern: integration
136 override-votes: true
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100137 gerrit-build-started-verified-value: 0
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200138 gerrit-build-successful-verified-value: 1
Fathi Boudra09d992e2020-12-14 10:22:56 +0100139 gerrit-build-failed-verified-value: 0
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200140 gerrit-build-unstable-verified-value: -1
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100141 gerrit-build-notbuilt-verified-value: 0
142 gerrit-build-started-codereview-value: 0
143 gerrit-build-successful-codereview-value: 0
144 gerrit-build-failed-codereview-value: 0
145 gerrit-build-unstable-codereview-value: -1
146 gerrit-build-notbuilt-codereview-value: 0
147 failure-message: 'OpenCI: build failed'
148 successful-message: 'OpenCI: build successful'
149 unstable-message: 'OpenCI: build unstable'
150 notbuilt-message: 'OpenCI: no builds executed'
151 skip-vote:
152 successful: true
153 failed: true
154 unstable: true
155 notbuilt: true
156 silent: false
157 silent-start: false