blob: f986bf32d9a77c93d42d62b13ec1bf846ee8b92d [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:
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'
27 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
28 - 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'
Summer Qina400be82020-10-28 15:00:00 +080055 default: 'mbedtls-2.24.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
80 pipeline-scm:
81 scm:
82 - git:
83 url: '$CI_SCRIPTS_REPO'
84 branches:
85 - '$CI_SCRIPTS_BRANCH'
86 credentials-id: GIT_SSH_KEY
87 wipe-workspace: false
88 script-path: jenkins/static.jpl