blob: 88b931fd711a2e585fe714ac67d4a4d78b123bba [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:
Leonardo Sandoval4a024212021-09-17 14:05:27 -050054 name: 'MCUBOOT_REFSPEC'
55 default: 'TF-Mv1.4-integ'
56 description: |
57 Specify which MCUboot version to use
58 refs/heads/master : Pick up latest master
59 refs/tags/<TAG_NAME> : Pick up a tagged version
60 - string:
61 name: 'MCUBOOT_URL'
62 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
63 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080064 name: 'MBEDTLS_VERSION'
Xinyu Zhangdbcdf652021-07-12 15:00:46 +080065 default: 'mbedtls-3.0.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080066 - string:
67 name: 'MBEDTLS_URL'
68 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050069 - string:
70 name: 'TFM_TESTS_URL'
71 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
72 - string:
73 name: 'TFM_TESTS_REFSPEC'
74 default: 'refs/heads/master'
75 - string:
76 name: 'PSA_ARCH_TESTS_URL'
77 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
78 - string:
79 name: 'PSA_ARCH_TESTS_VERSION'
80 default: '51ff2bdfae043f6dd0813b000d928c4bda172660'
81 - string:
82 name: SHARE_FOLDER
83 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
84 description: 'Folder containing shared repositories for downstream pipeline jobs'
Dean Birche4cbc7c2020-01-20 10:40:21 +000085 triggers:
86 - gerrit:
87 trigger-on:
88 - comment-added-event:
89 approval-category: 'Allow-CI'
90 approval-value: '1'
91 projects:
92 - project-compare-type: 'PLAIN'
Dean Birch1817bb62020-06-02 14:00:23 +010093 project-pattern: 'TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000094 branches:
95 - branch-compare-type: 'REG_EXP'
96 branch-pattern: 'master'
Dean Birchb1410132020-06-15 17:12:16 +010097 override-votes: true
98 gerrit-build-successful-verified-value: 1
99 gerrit-build-failed-verified-value: -1
100 gerrit-build-unstable-verified-value: -1
101 gerrit-build-successful-codereview-value: 0
102 gerrit-build-failed-codereview-value: 0
103 gerrit-build-unstable-codereview-value: 0
Dean Birche4cbc7c2020-01-20 10:40:21 +0000104 notification-level: 'OWNER_REVIEWERS'
105 custom-url: $RUN_DISPLAY_URL
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800106 wrappers:
107 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000108 pipeline-scm:
109 scm:
110 - git:
111 url: '$CI_SCRIPTS_REPO'
112 branches:
113 - '$CI_SCRIPTS_BRANCH'
114 credentials-id: GIT_SSH_KEY
115 wipe-workspace: false
116 script-path: jenkins/static.jpl