blob: 8f60d69f27eee7e7fdc7379351b936be78a37ed4 [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'
38 wrappers:
39 - credentials-binding:
40 - ssh-user-private-key:
41 credential-id: TFA_CI_BOT_USER_SSH_KEY
42 key-file-variable: CI_BOT_KEY
43 username-variable: CI_BOT_USERNAME
44 passphrase-variable: ''
45 - workspace-cleanup
46 - timestamps
47 builders:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010048 - shell: |
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050049 #!/bin/bash
50
51 set -e
52
53 cat << EOF > env.param
54 GERRIT_PROJECT=${GERRIT_PROJECT}
55 GERRIT_BRANCH=${GERRIT_BRANCH}
56 GERRIT_REFSPEC=${GERRIT_REFSPEC}
57 EOF
58
59 - 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
67
68 - multijob:
69 condition: COMPLETED
70 name: Build Trusted Firmware
71 projects:
72 - kill-phase-on: NEVER
73 name: tf-ci-gateway
74 predefined-parameters: |
75 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
76 TF_REFSPEC=$GERRIT_REFSPEC
77 property-file: env.param
78
79 - multijob:
80 condition: COMPLETED
81 name: TFTF tests
82 projects:
83 - kill-phase-on: NEVER
84 name: tf-ci-gateway
85 predefined-parameters: |
86 TEST_GROUPS=tftf-l1-fvp tftf-l1-spm tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu
87 TF_REFSPEC=$GERRIT_REFSPEC
88 property-file: env.param
89
90 - multijob:
91 condition: COMPLETED
92 name: Boot up to the Linux shell prompt
93 projects:
94 - kill-phase-on: NEVER
95 name: tf-ci-gateway
96 predefined-parameters: |
97 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
98 TF_REFSPEC=$GERRIT_REFSPEC
99 property-file: env.param
100
101 - multijob:
102 condition: COMPLETED
103 name: Coverity Scan
104 projects:
105 - kill-phase-on: NEVER
106 name: tf-ci-gateway
107 predefined-parameters: |
108 TEST_GROUPS=tf-l2-coverity-misra
109 TF_REFSPEC=$GERRIT_REFSPEC
110 property-file: env.param
111
112 - conditional-step:
113 condition-command: |-
114 [ "$NOMINATION_FILE" ]
115 condition-kind: shell
116 on-evaluation-failure: dont-run
117 steps:
118 - multijob:
119 condition: COMPLETED
120 name: Nominated tests
121 projects:
122 - kill-phase-on: NEVER
123 name: tf-ci-gateway
124 predefined-parameters: |
125 TEST_GROUPS=@$NOMINATION_FILE
126 TF_REFSPEC=$GERRIT_REFSPEC
127 property-file: env.param
128
129 triggers:
130 - gerrit:
131 server-name: review.trustedfirmware.org
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500132 trigger-on:
133 - comment-added-event:
134 approval-category: "Allow-CI"
135 approval-value: 2
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200136 projects:
137 - project-compare-type: PLAIN
138 project-pattern: TF-A/trusted-firmware-a
139 branches:
140 - branch-compare-type: PLAIN
141 branch-pattern: integration
142 override-votes: true
143 gerrit-build-successful-verified-value: 1
144 gerrit-build-failed-verified-value: -1
145 gerrit-build-unstable-verified-value: -1
146 approval-value: 1