blob: 58a856821bceaabb1963cf182df467136d934a8a [file] [log] [blame]
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05001- job:
2 name: tf-gerrit-tforg-l1
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -05003 node: docker-amd64-tf-a-bionic
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05004 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+1
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 Sandovaldc2a03a2020-10-05 18:12:19 -050017 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060018 !include: authorization.yaml.inc
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -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 Sandovaldc2a03a2020-10-05 18:12:19 -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 Sandovald1b6b5a2021-09-13 12:06:26 -050035 - string:
36 name: TF_GERRIT_REFSPEC
37 default: ${GERRIT_REFSPEC}
38 description: 'Parameter only used by the clone script'
39 - string:
40 name: SHARE_FOLDER
41 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
42 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050043 wrappers:
44 - credentials-binding:
45 - ssh-user-private-key:
46 credential-id: TFA_CI_BOT_USER_SSH_KEY
47 key-file-variable: CI_BOT_KEY
48 username-variable: CI_BOT_USERNAME
49 passphrase-variable: ''
50 - workspace-cleanup
51 - timestamps
52 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050053 - shell:
54 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010055 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050056 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050057 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050058 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000059 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
60 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000061 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000062 QA_SERVER_PROJECT=${JOB_NAME}
63 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050064 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
65 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
66 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050067 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050068 EOF
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050069 - multijob:
Chris Kaye23eab92021-04-19 15:04:15 +010070 name: Lint commit messages
71 condition: COMPLETED
72 projects:
73 - name: tf-a-commitlint
74 kill-phase-on: NEVER
75 predefined-parameters: |
76 REFSPEC=${GERRIT_REFSPEC}
Chris Kay22e76f22021-04-21 18:03:35 +010077 REFNAME=${GERRIT_PATCHSET_REVISION}
78 REFNAME_BASE=origin/${GERRIT_BRANCH}
Chris Kaye23eab92021-04-19 15:04:15 +010079 - multijob:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050080 condition: COMPLETED
81 name: Build and static checks
82 projects:
83 - kill-phase-on: NEVER
Leonardo Sandoval72efe6a2021-02-12 18:20:05 -060084 name: tf-static-checks
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050085 predefined-parameters: |-
86 TEST_GROUPS=tf-l2-scan-build
87 ENABLE_STATIC_CHECK=true
88 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050089 - multijob:
90 condition: COMPLETED
91 name: Run doc build check
92 projects:
93 - kill-phase-on: NEVER
94 name: tf-ci-gateway
95 predefined-parameters: |
96 TEST_GROUPS=tf-l1-check-docs
97 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050098 - multijob:
99 condition: COMPLETED
100 name: Run build tests
101 projects:
102 - kill-phase-on: NEVER
103 name: tf-ci-gateway
104 predefined-parameters: |
Leonardo Sandoval0e0ee892021-02-16 10:39:51 -0600105 TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat spm-l1-build-tests
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500106 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500107 - multijob:
108 condition: COMPLETED
109 name: Run boot tests
110 projects:
111 - kill-phase-on: NEVER
112 name: tf-ci-gateway
113 predefined-parameters: |
114 TEST_GROUPS=tf-l1-boot-tests-aarch32 tf-l1-boot-tests-bl2_el3 tf-l1-boot-tests-cortex tf-l1-boot-tests-foundation tf-l1-boot-tests-gicv2 tf-l1-boot-tests-juno tf-l1-boot-tests-misc
115 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500116 triggers:
117 - gerrit:
118 server-name: review.trustedfirmware.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500119 trigger-on:
120 - comment-added-event:
Riku Voipiocdeb3202020-12-03 10:42:58 +0200121 approval-category: "Allow-CI"
122 approval-value: 1
123 projects:
124 - project-compare-type: PLAIN
125 project-pattern: TF-A/trusted-firmware-a
126 branches:
127 - branch-compare-type: PLAIN
128 branch-pattern: integration