blob: 2891f90b9c065568743fbfdf00ac09e4fb6a9e19 [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:
19 anonymous:
20 - job-read
21 - job-extended-read
22 lsandov1:
23 - job-read
24 - job-extended-read
25 - job-build
26 - job-cancel
27 - run-update
28 parameters:
29 - string:
30 name: GERRIT_PROJECT
31 default: 'TF-A/trusted-firmware-a'
32 - string:
33 name: GERRIT_BRANCH
34 default: 'master'
35 - string:
36 name: GERRIT_REFSPEC
37 default: 'refs/heads/master'
Milosz Wasilewski10438582020-12-03 11:36:21 +000038 - string:
39 name: GERRIT_PATCHSET_NUMBER
40 default: ''
41 - string:
42 name: GERRIT_CHANGE_NUMBER
43 default: ''
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050044 wrappers:
45 - credentials-binding:
46 - ssh-user-private-key:
47 credential-id: TFA_CI_BOT_USER_SSH_KEY
48 key-file-variable: CI_BOT_KEY
49 username-variable: CI_BOT_USERNAME
50 passphrase-variable: ''
51 - workspace-cleanup
52 - timestamps
53 builders:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010054 - shell: |
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050055 #!/bin/bash
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050056 set -e
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050057 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000058 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
59 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000060 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000061 QA_SERVER_PROJECT=${JOB_NAME}
62 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050063 GERRIT_PROJECT=${GERRIT_PROJECT}
64 GERRIT_BRANCH=${GERRIT_BRANCH}
65 GERRIT_REFSPEC=${GERRIT_REFSPEC}
66 EOF
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050067 - multijob:
68 condition: COMPLETED
69 name: Carry out level 1 tests
70 projects:
71 - kill-phase-on: NEVER
72 name: tf-tftf-gerrit-tforg-l1
73 current-parameters: true
74 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050075 - multijob:
76 condition: COMPLETED
77 name: Build Trusted Firmware
78 projects:
79 - kill-phase-on: NEVER
80 name: tf-ci-gateway
81 predefined-parameters: |
82 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
83 TF_REFSPEC=$GERRIT_REFSPEC
84 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050085 - multijob:
86 condition: COMPLETED
87 name: TFTF tests
88 projects:
89 - kill-phase-on: NEVER
90 name: tf-ci-gateway
91 predefined-parameters: |
Leonardo Sandoval67ac6f12020-12-10 11:02:26 -060092 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050093 TF_REFSPEC=$GERRIT_REFSPEC
94 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050095 - multijob:
96 condition: COMPLETED
97 name: Boot up to the Linux shell prompt
98 projects:
99 - kill-phase-on: NEVER
100 name: tf-ci-gateway
101 predefined-parameters: |
Leonardo Sandoval67ac6f12020-12-10 11:02:26 -0600102 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 -0500103 TF_REFSPEC=$GERRIT_REFSPEC
104 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500105 - multijob:
106 condition: COMPLETED
107 name: Coverity Scan
108 projects:
109 - kill-phase-on: NEVER
110 name: tf-ci-gateway
111 predefined-parameters: |
112 TEST_GROUPS=tf-l2-coverity-misra
113 TF_REFSPEC=$GERRIT_REFSPEC
114 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500115 - conditional-step:
116 condition-command: |-
117 [ "$NOMINATION_FILE" ]
118 condition-kind: shell
119 on-evaluation-failure: dont-run
120 steps:
121 - multijob:
122 condition: COMPLETED
123 name: Nominated tests
124 projects:
125 - kill-phase-on: NEVER
126 name: tf-ci-gateway
127 predefined-parameters: |
128 TEST_GROUPS=@$NOMINATION_FILE
129 TF_REFSPEC=$GERRIT_REFSPEC
130 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500131 triggers:
132 - gerrit:
133 server-name: review.trustedfirmware.org
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500134 trigger-on:
135 - comment-added-event:
136 approval-category: "Allow-CI"
137 approval-value: 2
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200138 projects:
139 - project-compare-type: PLAIN
140 project-pattern: TF-A/trusted-firmware-a
141 branches:
142 - branch-compare-type: PLAIN
143 branch-pattern: integration
144 override-votes: true
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100145 gerrit-build-started-verified-value: 0
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200146 gerrit-build-successful-verified-value: 1
Fathi Boudra09d992e2020-12-14 10:22:56 +0100147 gerrit-build-failed-verified-value: 0
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200148 gerrit-build-unstable-verified-value: -1
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100149 gerrit-build-notbuilt-verified-value: 0
150 gerrit-build-started-codereview-value: 0
151 gerrit-build-successful-codereview-value: 0
152 gerrit-build-failed-codereview-value: 0
153 gerrit-build-unstable-codereview-value: -1
154 gerrit-build-notbuilt-codereview-value: 0
155 failure-message: 'OpenCI: build failed'
156 successful-message: 'OpenCI: build successful'
157 unstable-message: 'OpenCI: build unstable'
158 notbuilt-message: 'OpenCI: no builds executed'
159 skip-vote:
160 successful: true
161 failed: true
162 unstable: true
163 notbuilt: true
164 silent: false
165 silent-start: false