blob: 3763ba8124edb956ecabfb91b5dd3ecbff348ba3 [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Summer Qin7632b812022-01-05 17:33:35 +08002# Copyright (c) 2020-2022, 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
Dean Birche4cbc7c2020-01-20 10:40:21 +000019 parameters:
20 - string:
21 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010022 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000023 - string:
24 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030025 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000026 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010027 name: 'CI_SCRIPTS_BRANCH'
28 default: 'master'
29 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000030 name: 'GERRIT_REFSPEC'
31 default: 'refs/heads/master'
32 description: |
33 For use when triggering with unmerged Gerrit changes.
34 - string:
35 name: 'GERRIT_BRANCH'
36 default: 'master'
37 description: |
38 For use when triggering with unmerged Gerrit changes.
39 - string:
40 name: 'GERRIT_HOST'
41 description: |
42 For use when triggering with unmerged Gerrit changes.
43 - string:
44 name: 'GERRIT_CHANGE_NUMBER'
45 description: |
46 For use when triggering with unmerged Gerrit changes.
47 - string:
48 name: 'GERRIT_PATCHSET_REVISION'
49 description: |
50 For use when triggering with unmerged Gerrit changes.
51 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -050052 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080053 default: 'v1.9.0'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050054 description: |
55 Specify which MCUboot version to use
56 refs/heads/master : Pick up latest master
57 refs/tags/<TAG_NAME> : Pick up a tagged version
58 - string:
59 name: 'MCUBOOT_URL'
60 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
61 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080062 name: 'MBEDTLS_VERSION'
Antonio de Angelis20c04402022-07-16 00:01:05 +010063 default: 'mbedtls-3.2.1'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080064 - string:
65 name: 'MBEDTLS_URL'
66 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050067 - string:
68 name: 'TFM_TESTS_URL'
69 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
70 - string:
71 name: 'TFM_TESTS_REFSPEC'
72 default: 'refs/heads/master'
73 - string:
74 name: 'PSA_ARCH_TESTS_URL'
75 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
76 - string:
77 name: 'PSA_ARCH_TESTS_VERSION'
Summer8858e3e2022-11-15 10:40:04 +080078 default: 'cf8bd7191219df9bdef387abcd750f0709283f98'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050079 - string:
80 name: SHARE_FOLDER
81 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
82 description: 'Folder containing shared repositories for downstream pipeline jobs'
Dean Birche4cbc7c2020-01-20 10:40:21 +000083 triggers:
84 - gerrit:
85 trigger-on:
86 - comment-added-event:
87 approval-category: 'Allow-CI'
88 approval-value: '1'
89 projects:
90 - project-compare-type: 'PLAIN'
Dean Birch1817bb62020-06-02 14:00:23 +010091 project-pattern: 'TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000092 branches:
93 - branch-compare-type: 'REG_EXP'
94 branch-pattern: 'master'
Dean Birchb1410132020-06-15 17:12:16 +010095 override-votes: true
96 gerrit-build-successful-verified-value: 1
97 gerrit-build-failed-verified-value: -1
98 gerrit-build-unstable-verified-value: -1
99 gerrit-build-successful-codereview-value: 0
100 gerrit-build-failed-codereview-value: 0
101 gerrit-build-unstable-codereview-value: 0
Dean Birche4cbc7c2020-01-20 10:40:21 +0000102 notification-level: 'OWNER_REVIEWERS'
103 custom-url: $RUN_DISPLAY_URL
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800104 wrappers:
105 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000106 pipeline-scm:
107 scm:
108 - git:
109 url: '$CI_SCRIPTS_REPO'
110 branches:
111 - '$CI_SCRIPTS_BRANCH'
112 credentials-id: GIT_SSH_KEY
113 wipe-workspace: false
114 script-path: jenkins/static.jpl