blob: 1805394beb6c5e081d0a525b0e266e6e89ead2be [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:
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 Sandoval7bc39d72020-10-12 17:11:03 -050035 wrappers:
36 - credentials-binding:
37 - ssh-user-private-key:
38 credential-id: TFA_CI_BOT_USER_SSH_KEY
39 key-file-variable: CI_BOT_KEY
40 username-variable: CI_BOT_USERNAME
41 passphrase-variable: ''
42 - workspace-cleanup
43 - timestamps
44 builders:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010045 - shell: |
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050046 #!/bin/bash
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050047 set -e
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050048 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000049 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
50 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000051 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000052 QA_SERVER_PROJECT=${JOB_NAME}
53 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050054 GERRIT_PROJECT=${GERRIT_PROJECT}
55 GERRIT_BRANCH=${GERRIT_BRANCH}
56 GERRIT_REFSPEC=${GERRIT_REFSPEC}
57 EOF
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050058 - multijob:
59 condition: COMPLETED
60 name: Carry out level 1 tests
61 projects:
62 - kill-phase-on: NEVER
63 name: tf-tftf-gerrit-tforg-l1
64 current-parameters: true
65 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050066 - multijob:
67 condition: COMPLETED
68 name: Build Trusted Firmware
69 projects:
70 - kill-phase-on: NEVER
71 name: tf-ci-gateway
72 predefined-parameters: |
73 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
74 TF_REFSPEC=$GERRIT_REFSPEC
75 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050076 - multijob:
77 condition: COMPLETED
78 name: TFTF tests
79 projects:
80 - kill-phase-on: NEVER
81 name: tf-ci-gateway
82 predefined-parameters: |
Leonardo Sandoval0b9ee852021-02-12 18:27:37 -060083 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 -050084 TF_REFSPEC=$GERRIT_REFSPEC
85 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050086 - multijob:
87 condition: COMPLETED
88 name: Boot up to the Linux shell prompt
89 projects:
90 - kill-phase-on: NEVER
91 name: tf-ci-gateway
92 predefined-parameters: |
Leonardo Sandoval0e0ee892021-02-16 10:39:51 -060093 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 -050094 TF_REFSPEC=$GERRIT_REFSPEC
95 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050096 - multijob:
97 condition: COMPLETED
98 name: Coverity Scan
99 projects:
100 - kill-phase-on: NEVER
101 name: tf-ci-gateway
102 predefined-parameters: |
103 TEST_GROUPS=tf-l2-coverity-misra
104 TF_REFSPEC=$GERRIT_REFSPEC
105 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500106 - conditional-step:
107 condition-command: |-
108 [ "$NOMINATION_FILE" ]
109 condition-kind: shell
110 on-evaluation-failure: dont-run
111 steps:
112 - multijob:
113 condition: COMPLETED
114 name: Nominated tests
115 projects:
116 - kill-phase-on: NEVER
117 name: tf-ci-gateway
118 predefined-parameters: |
119 TEST_GROUPS=@$NOMINATION_FILE
120 TF_REFSPEC=$GERRIT_REFSPEC
121 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500122 triggers:
123 - gerrit:
124 server-name: review.trustedfirmware.org
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500125 trigger-on:
126 - comment-added-event:
127 approval-category: "Allow-CI"
128 approval-value: 2
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200129 projects:
130 - project-compare-type: PLAIN
131 project-pattern: TF-A/trusted-firmware-a
132 branches:
133 - branch-compare-type: PLAIN
134 branch-pattern: integration
135 override-votes: true
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100136 gerrit-build-started-verified-value: 0
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200137 gerrit-build-successful-verified-value: 1
Fathi Boudra09d992e2020-12-14 10:22:56 +0100138 gerrit-build-failed-verified-value: 0
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200139 gerrit-build-unstable-verified-value: -1
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100140 gerrit-build-notbuilt-verified-value: 0
141 gerrit-build-started-codereview-value: 0
142 gerrit-build-successful-codereview-value: 0
143 gerrit-build-failed-codereview-value: 0
144 gerrit-build-unstable-codereview-value: -1
145 gerrit-build-notbuilt-codereview-value: 0
146 failure-message: 'OpenCI: build failed'
147 successful-message: 'OpenCI: build successful'
148 unstable-message: 'OpenCI: build unstable'
149 notbuilt-message: 'OpenCI: no builds executed'
150 skip-vote:
151 successful: true
152 failed: true
153 unstable: true
154 notbuilt: true
155 silent: false
156 silent-start: false