blob: 425e5eed0f05b5f0e3f7baf51ffa5e207d7e89d8 [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:
20 suihkulokki:
21 - job-read
22 - job-extended-read
23 - job-build
24 - job-cancel
25 minosgalanakis:
26 - job-read
27 - job-extended-read
28 - job-build
29 - job-cancel
30 bhcopeland:
31 - job-read
32 - job-extended-read
33 - job-build
34 - job-cancel
35 parameters:
36 - string:
37 name: 'CODE_REPO'
38 default: 'https://review.trustedfirmware.org/trusted-firmware-m'
39 - string:
40 name: 'CI_SCRIPTS_REPO'
41 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
42 - string:
43 name: 'GERRIT_REFSPEC'
44 default: 'refs/heads/master'
45 description: |
46 For use when triggering with unmerged Gerrit changes.
47 - string:
48 name: 'GERRIT_BRANCH'
49 default: 'master'
50 description: |
51 For use when triggering with unmerged Gerrit changes.
52 - string:
53 name: 'GERRIT_HOST'
54 description: |
55 For use when triggering with unmerged Gerrit changes.
56 - string:
57 name: 'GERRIT_CHANGE_NUMBER'
58 description: |
59 For use when triggering with unmerged Gerrit changes.
60 - string:
61 name: 'GERRIT_PATCHSET_REVISION'
62 description: |
63 For use when triggering with unmerged Gerrit changes.
64 - string:
65 name: 'MBEDCRYPTO_VERSION'
66 default: 'mbedcrypto-3.0.1'
67 - string:
68 name: 'MBEDCRYPTO_URL'
69 default: 'https://github.com/ARMmbed/mbed-crypto.git'
70 - string:
71 name: 'CMSIS_VERSION'
72 default: '5.5.0'
73 - string:
74 name: 'CI_SCRIPTS_BRANCH'
75 default: 'master'
76 triggers:
77 - gerrit:
78 trigger-on:
79 - comment-added-event:
80 approval-category: 'Allow-CI'
81 approval-value: '1'
82 projects:
83 - project-compare-type: 'PLAIN'
84 project-pattern: 'iot-sw/tf-m/internal/tf-m'
85 branches:
86 - branch-compare-type: 'REG_EXP'
87 branch-pattern: 'master'
88 notification-level: 'OWNER_REVIEWERS'
89 custom-url: $RUN_DISPLAY_URL
90 pipeline-scm:
91 scm:
92 - git:
93 url: '$CI_SCRIPTS_REPO'
94 branches:
95 - '$CI_SCRIPTS_BRANCH'
96 credentials-id: GIT_SSH_KEY
97 wipe-workspace: false
98 script-path: jenkins/static.jpl