blob: 9efb244344782849decce38dac732c3ab46dfc32 [file] [log] [blame]
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -05001- job:
2 name: tf-tftf-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-Tests 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/tf-a-tests'
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:
48 - shell: |-
49 #!/bin/bash
50
51 set -e
52
53 cat << EOF > env.param
54 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
55 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
56 TFTF_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: Run Firmware Update Tests
71 projects:
72 - kill-phase-on: NEVER
73 name: tf-ci-gateway
74 predefined-parameters: |-
75 TEST_GROUPS=tftf-l2-fwu
76 TFTF_REFSPEC=$GERRIT_REFSPEC
77 property-file: env.param
78
79 - multijob:
80 condition: COMPLETED
81 name: Run Level 2 testing of TF-A-Tests
82 projects:
83 - kill-phase-on: NEVER
84 name: tf-ci-gateway
85 predefined-parameters: |-
86 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm tftf-l2-fvp-dynamiq
87 TFTF_REFSPEC=$GERRIT_REFSPEC
88 property-file: env.param
89
90 - multijob:
91 condition: COMPLETED
92 name: Run extensive TF-A-Tests
93 projects:
94 - kill-phase-on: NEVER
95 name: tf-ci-gateway
96 predefined-parameters: |-
97 TEST_GROUPS=tftf-l2-extensive-tests-fvp
98 TFTF_REFSPEC=$GERRIT_REFSPEC
99 property-file: env.param
100
101
102 triggers:
103 - gerrit:
104 server-name: review.trustedfirmware.org
105 projects:
106 - branches:
107 - branch-compare-type: PLAIN
108 branch-pattern: master
109 project-compare-type: PLAIN
110 project-pattern: TF-A/tf-a-tests
111 trigger-on:
112 - comment-added-event:
113 approval-category: "Allow-CI"
114 approval-value: 2
115 override-votes: true
116 gerrit-build-successful-verified-value: 1
117 gerrit-build-failed-verified-value: -1
118 gerrit-build-unstable-verified-value: -1