blob: 94d0160a2debb10a2c3a281520ee8ad844ddb49f [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'
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 Sandoval119d8cf2020-10-13 16:22:33 -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 Sandoval119d8cf2020-10-13 16:22:33 -050055 #!/bin/bash
56
57 set -e
58
59 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000060 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
61 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000062 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000063 QA_SERVER_PROJECT=${JOB_NAME}
64 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050065 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
66 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
67 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
68 EOF
69
70 - multijob:
71 condition: COMPLETED
72 name: Carry out level 1 tests
73 projects:
74 - kill-phase-on: NEVER
75 name: tf-tftf-gerrit-tforg-l1
76 current-parameters: true
77 property-file: env.param
78
79 - multijob:
80 condition: COMPLETED
81 name: Run Firmware Update Tests
82 projects:
83 - kill-phase-on: NEVER
84 name: tf-ci-gateway
85 predefined-parameters: |-
86 TEST_GROUPS=tftf-l2-fwu
87 TFTF_REFSPEC=$GERRIT_REFSPEC
88 property-file: env.param
89
90 - multijob:
91 condition: COMPLETED
92 name: Run Level 2 testing of TF-A-Tests
93 projects:
94 - kill-phase-on: NEVER
95 name: tf-ci-gateway
96 predefined-parameters: |-
97 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm tftf-l2-fvp-dynamiq
98 TFTF_REFSPEC=$GERRIT_REFSPEC
99 property-file: env.param
100
101 - multijob:
102 condition: COMPLETED
103 name: Run extensive TF-A-Tests
104 projects:
105 - kill-phase-on: NEVER
106 name: tf-ci-gateway
107 predefined-parameters: |-
108 TEST_GROUPS=tftf-l2-extensive-tests-fvp
109 TFTF_REFSPEC=$GERRIT_REFSPEC
110 property-file: env.param
111
112
113 triggers:
114 - gerrit:
115 server-name: review.trustedfirmware.org
116 projects:
117 - branches:
118 - branch-compare-type: PLAIN
119 branch-pattern: master
120 project-compare-type: PLAIN
121 project-pattern: TF-A/tf-a-tests
122 trigger-on:
123 - comment-added-event:
124 approval-category: "Allow-CI"
125 approval-value: 2
Milosz Wasilewski72b118d2020-12-03 12:18:19 +0000126 override-votes: true
127 gerrit-build-successful-verified-value: 1
128 gerrit-build-failed-verified-value: -1
129 gerrit-build-unstable-verified-value: -1