blob: 047ad09c2f0302b01b419c9f3a1ae34f777c859e [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Xinyu Zhang59f7fee2021-05-21 14:04:11 +08002# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
Dean Birche4cbc7c2020-01-20 10:40:21 +00003#
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:
Fathi Boudradb891772021-03-02 14:12:48 +010020 !include: authorization.yaml.inc
Dean Birche4cbc7c2020-01-20 10:40:21 +000021 parameters:
22 - string:
23 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010024 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000025 - string:
26 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030027 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000028 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010029 name: 'CI_SCRIPTS_BRANCH'
30 default: 'master'
31 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000032 name: 'GERRIT_REFSPEC'
33 default: 'refs/heads/master'
34 description: |
35 For use when triggering with unmerged Gerrit changes.
36 - string:
37 name: 'GERRIT_BRANCH'
38 default: 'master'
39 description: |
40 For use when triggering with unmerged Gerrit changes.
41 - string:
42 name: 'GERRIT_HOST'
43 description: |
44 For use when triggering with unmerged Gerrit changes.
45 - string:
46 name: 'GERRIT_CHANGE_NUMBER'
47 description: |
48 For use when triggering with unmerged Gerrit changes.
49 - string:
50 name: 'GERRIT_PATCHSET_REVISION'
51 description: |
52 For use when triggering with unmerged Gerrit changes.
53 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080054 name: 'MBEDTLS_VERSION'
Xinyu Zhangdbcdf652021-07-12 15:00:46 +080055 default: 'mbedtls-3.0.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080056 - string:
57 name: 'MBEDTLS_URL'
58 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +000059 triggers:
60 - gerrit:
61 trigger-on:
62 - comment-added-event:
63 approval-category: 'Allow-CI'
64 approval-value: '1'
65 projects:
66 - project-compare-type: 'PLAIN'
Dean Birch1817bb62020-06-02 14:00:23 +010067 project-pattern: 'TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000068 branches:
69 - branch-compare-type: 'REG_EXP'
70 branch-pattern: 'master'
Dean Birchb1410132020-06-15 17:12:16 +010071 override-votes: true
72 gerrit-build-successful-verified-value: 1
73 gerrit-build-failed-verified-value: -1
74 gerrit-build-unstable-verified-value: -1
75 gerrit-build-successful-codereview-value: 0
76 gerrit-build-failed-codereview-value: 0
77 gerrit-build-unstable-codereview-value: 0
Dean Birche4cbc7c2020-01-20 10:40:21 +000078 notification-level: 'OWNER_REVIEWERS'
79 custom-url: $RUN_DISPLAY_URL
Xinyu Zhang59f7fee2021-05-21 14:04:11 +080080 wrappers:
81 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +000082 pipeline-scm:
83 scm:
84 - git:
85 url: '$CI_SCRIPTS_REPO'
86 branches:
87 - '$CI_SCRIPTS_BRANCH'
88 credentials-id: GIT_SSH_KEY
89 wipe-workspace: false
90 script-path: jenkins/static.jpl