blob: 350d719ba16b635e014db09533639f943d44fd63 [file] [log] [blame]
Xinyu Zhang58cb2602020-12-22 10:44:50 +08001#-------------------------------------------------------------------------------
Xinyu Zhang44a110c2023-01-30 10:50:10 +01002# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
Xinyu Zhang58cb2602020-12-22 10:44:50 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
9 name: tf-m-static-checks
10 description: 'Runs (ARM) static checks over the source (tree or patch).'
11 project-type: pipeline
12 disabled: false
13 sandbox: true
14 concurrent: true
15 properties:
16 - build-discarder:
Xinyu Zhang7d4feea2022-09-14 13:37:23 +080017 days-to-keep: 5
Xinyu Zhang58cb2602020-12-22 10:44:50 +080018 num-to-keep: 45
Xinyu Zhang58cb2602020-12-22 10:44:50 +080019 parameters:
20 - string:
21 name: 'GERRIT_HOST'
22 description: |
23 For use when triggering with unmerged Gerrit changes.
24 - string:
25 name: 'GERRIT_REFSPEC'
26 default: '+refs/heads/*:refs/remotes/origin/*'
27 description: |
28 For use when triggering with unmerged Gerrit changes.
29 - string:
30 name: 'GERRIT_BRANCH'
Xinyu Zhang26437432023-09-25 11:50:23 +080031 default: 'main'
Xinyu Zhang58cb2602020-12-22 10:44:50 +080032 description: |
33 For use when triggering with unmerged Gerrit changes.
34 - string:
35 name: 'GERRIT_CHANGE_NUMBER'
36 description: |
37 For use when triggering with unmerged Gerrit changes.
38 - string:
39 name: 'GERRIT_PATCHSET_REVISION'
40 description: |
41 For use when triggering with unmerged Gerrit changes.
42 - string:
43 name: 'CODE_REPO'
44 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
45 - string:
46 name: 'CI_SCRIPTS_REPO'
47 default: 'https://review.trustedfirmware.org/next/ci/tf-m-ci-scripts'
48 - string:
49 name: 'CI_SCRIPTS_BRANCH'
Xinyu Zhangd0c4e912022-01-20 15:50:23 +080050 default: 'master'
Xinyu Zhang58cb2602020-12-22 10:44:50 +080051 - string:
52 name: 'MBEDTLS_VERSION'
Xinyu Zhang26437432023-09-25 11:50:23 +080053 default: ''
Xinyu Zhang58cb2602020-12-22 10:44:50 +080054 - string:
55 name: 'MBEDTLS_URL'
56 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
57 - string:
58 name: 'MCUBOOT_REFSPEC'
Xinyu Zhang26437432023-09-25 11:50:23 +080059 default: ''
Xinyu Zhang58cb2602020-12-22 10:44:50 +080060 description: |
61 Specify which MCUboot version to use
62 refs/heads/master : Pick up latest master
63 refs/tags/<TAG_NAME> : Pick up a tagged version
64 - string:
65 name: 'MCUBOOT_URL'
66 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
67 - 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'
Xinyu Zhang26437432023-09-25 11:50:23 +080072 default: ''
Xinyu Zhang33881cc2021-05-21 14:04:11 +080073 wrappers:
74 - timestamps
Xinyu Zhang58cb2602020-12-22 10:44:50 +080075 pipeline-scm:
76 scm:
77 - git:
78 url: '$CI_SCRIPTS_REPO'
79 branches:
80 - '$CI_SCRIPTS_BRANCH'
81 credentials-id: GIT_SSH_KEY
82 wipe-workspace: false
83 script-path: jenkins/static-checks.jpl