blob: e4d631ba0defc7cc200077a179df5f74285a22e4 [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
9 name: tf-m-static
10 description: 'Triggers static checks on Gerrit trigger, then triggers build job after.'
11 project-type: pipeline
12 disabled: false
13 sandbox: true
14 concurrent: true
15 properties:
16 - build-discarder:
17 days-to-keep: 15
18 num-to-keep: 45
19 - authorization:
Riku Voipiod4ea5342020-09-04 16:00:02 +030020 anonymous:
21 - job-read
22 - job-extended-read
Dean Birche4cbc7c2020-01-20 10:40:21 +000023 suihkulokki:
24 - job-read
25 - job-extended-read
26 - job-build
27 - job-cancel
28 minosgalanakis:
29 - job-read
30 - job-extended-read
31 - job-build
32 - job-cancel
33 bhcopeland:
34 - job-read
35 - job-extended-read
36 - job-build
37 - job-cancel
Xinyu Zhang043d5aa2020-10-15 18:20:17 +080038 karl-zh:
39 - job-read
40 - job-extended-read
41 - job-build
42 - job-cancel
43 xinyu-tfm:
44 - job-read
45 - job-extended-read
46 - job-build
47 - job-cancel
Dean Birche4cbc7c2020-01-20 10:40:21 +000048 parameters:
49 - string:
50 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010051 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000052 - string:
53 name: 'CI_SCRIPTS_REPO'
54 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
55 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010056 name: 'CI_SCRIPTS_BRANCH'
57 default: 'master'
58 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000059 name: 'GERRIT_REFSPEC'
60 default: 'refs/heads/master'
61 description: |
62 For use when triggering with unmerged Gerrit changes.
63 - string:
64 name: 'GERRIT_BRANCH'
65 default: 'master'
66 description: |
67 For use when triggering with unmerged Gerrit changes.
68 - string:
69 name: 'GERRIT_HOST'
70 description: |
71 For use when triggering with unmerged Gerrit changes.
72 - string:
73 name: 'GERRIT_CHANGE_NUMBER'
74 description: |
75 For use when triggering with unmerged Gerrit changes.
76 - string:
77 name: 'GERRIT_PATCHSET_REVISION'
78 description: |
79 For use when triggering with unmerged Gerrit changes.
80 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080081 name: 'MBEDTLS_VERSION'
Summer Qina400be82020-10-28 15:00:00 +080082 default: 'mbedtls-2.24.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080083 - string:
84 name: 'MBEDTLS_URL'
85 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +000086 triggers:
87 - gerrit:
88 trigger-on:
89 - comment-added-event:
90 approval-category: 'Allow-CI'
91 approval-value: '1'
92 projects:
93 - project-compare-type: 'PLAIN'
Dean Birch1817bb62020-06-02 14:00:23 +010094 project-pattern: 'TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000095 branches:
96 - branch-compare-type: 'REG_EXP'
97 branch-pattern: 'master'
Dean Birchb1410132020-06-15 17:12:16 +010098 override-votes: true
99 gerrit-build-successful-verified-value: 1
100 gerrit-build-failed-verified-value: -1
101 gerrit-build-unstable-verified-value: -1
102 gerrit-build-successful-codereview-value: 0
103 gerrit-build-failed-codereview-value: 0
104 gerrit-build-unstable-codereview-value: 0
Dean Birche4cbc7c2020-01-20 10:40:21 +0000105 notification-level: 'OWNER_REVIEWERS'
106 custom-url: $RUN_DISPLAY_URL
107 pipeline-scm:
108 scm:
109 - git:
110 url: '$CI_SCRIPTS_REPO'
111 branches:
112 - '$CI_SCRIPTS_BRANCH'
113 credentials-id: GIT_SSH_KEY
114 wipe-workspace: false
115 script-path: jenkins/static.jpl