blob: d9a5d1a2f2eb05ecabb3f43867603cd797bbebcf [file] [log] [blame]
Leonardo Sandoval925329b2020-10-13 16:07:34 -05001- job:
2 name: tf-tftf-gerrit-tforg-l1
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+1
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:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060019 !include: authorization.yaml.inc
Leonardo Sandoval925329b2020-10-13 16:07:34 -050020 parameters:
21 - string:
22 name: GERRIT_PROJECT
23 default: 'TF-A/tf-a-tests'
24 - string:
25 name: GERRIT_BRANCH
26 default: 'master'
27 - string:
28 name: GERRIT_REFSPEC
29 default: 'refs/heads/master'
Milosz Wasilewski10438582020-12-03 11:36:21 +000030 - string:
31 name: GERRIT_PATCHSET_NUMBER
32 default: ''
33 - string:
34 name: GERRIT_CHANGE_NUMBER
35 default: ''
Leonardo Sandoval925329b2020-10-13 16:07:34 -050036 wrappers:
37 - credentials-binding:
38 - ssh-user-private-key:
39 credential-id: TFA_CI_BOT_USER_SSH_KEY
40 key-file-variable: CI_BOT_KEY
41 username-variable: CI_BOT_USERNAME
42 passphrase-variable: ''
43 - workspace-cleanup
44 - timestamps
45 builders:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010046 - shell: |
Leonardo Sandoval925329b2020-10-13 16:07:34 -050047 #!/bin/bash
Leonardo Sandoval925329b2020-10-13 16:07:34 -050048 set -e
Leonardo Sandoval925329b2020-10-13 16:07:34 -050049 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000050 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
51 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000052 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000053 QA_SERVER_PROJECT=${JOB_NAME}
54 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval925329b2020-10-13 16:07:34 -050055 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
56 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
57 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
58 EOF
Leonardo Sandoval925329b2020-10-13 16:07:34 -050059 - multijob:
60 condition: COMPLETED
61 name: Build and static checks
62 projects:
63 - kill-phase-on: NEVER
64 name: tf-ci-gateway
65 predefined-parameters: |-
66 TEST_GROUPS=tf-l2-scan-build
67 ENABLE_STATIC_CHECK=true
68 REPO_UNDER_STATIC_CHECK=tf-a-tests
69 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -050070 - multijob:
71 condition: COMPLETED
72 name: Run doc build check
73 projects:
74 - kill-phase-on: NEVER
75 name: tf-ci-gateway
76 predefined-parameters: |
77 TEST_GROUPS=tftf-l1-check-docs
78 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -050079 - multijob:
80 condition: COMPLETED
81 name: Build TF-A-Tests
82 projects:
83 - kill-phase-on: NEVER
84 name: tf-ci-gateway
85 predefined-parameters: |
86 TEST_GROUPS=tftf-l1-build
87 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -050088 - multijob:
89 condition: COMPLETED
90 name: Basic TF-A-Tests test cases
91 projects:
92 - kill-phase-on: NEVER
93 name: tf-ci-gateway
94 predefined-parameters: |
95 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno
96 property-file: env.param
Leonardo Sandoval925329b2020-10-13 16:07:34 -050097 triggers:
98 - gerrit:
99 server-name: review.trustedfirmware.org
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500100 trigger-on:
101 - comment-added-event:
Riku Voipiocb3356b2020-12-03 10:33:23 +0200102 approval-category: "Allow-CI"
103 approval-value: 1
104 projects:
105 - project-compare-type: PLAIN
106 project-pattern: TF-A/tf-a-tests
107 branches:
108 - branch-compare-type: PLAIN
109 branch-pattern: master