blob: e4575c0a869ce6c84a577c98a9835e7abeddf9bd [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Summer Qin8d6aae02023-01-20 11:15:51 +08002# Copyright (c) 2020-2023, 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-checkpatch
Leonardo Sandovala6727d92020-07-17 17:47:37 -050010 description: 'Runs checkpatch over the source (tree or patch).'
Dean Birche4cbc7c2020-01-20 10:40:21 +000011 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 parameters:
20 - string:
21 name: 'GERRIT_HOST'
22 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080023 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000024 - string:
25 name: 'GERRIT_REFSPEC'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080026 default: 'refs/heads/main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000027 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080028 Specify which TF-M version to use
29 refs/heads/<branch_name> : Pick up latest HEAD on branch
30 TAG_NAME : Pick up a tagged version
31 full commit hash : Pick up a specific commit
Dean Birche4cbc7c2020-01-20 10:40:21 +000032 - string:
33 name: 'GERRIT_BRANCH'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080034 default: 'main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000035 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080036 TF-M branch.
Dean Birche4cbc7c2020-01-20 10:40:21 +000037 - string:
38 name: 'GERRIT_CHANGE_NUMBER'
39 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080040 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000041 - string:
42 name: 'GERRIT_PATCHSET_REVISION'
43 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080044 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000045 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010046 name: 'CODE_REPO'
47 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
48 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000049 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030050 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000051 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010052 name: 'CI_SCRIPTS_BRANCH'
53 default: 'master'
Dean Birche4cbc7c2020-01-20 10:40:21 +000054 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080055 name: 'MBEDTLS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +080056 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080057 description: |
58 Specify which MBEDTLS version to use
59 refs/heads/<branch_name> : Pick up latest HEAD on branch
60 TAG_NAME : Pick up a tagged version
61 full commit hash : Pick up a specific commit
Karl Zhang85c2d7a2020-08-20 11:17:58 +080062 - string:
63 name: 'MBEDTLS_URL'
64 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050065 - string:
66 name: SHARE_FOLDER
67 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
68 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +080069 wrappers:
70 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +000071 pipeline-scm:
72 scm:
73 - git:
74 url: '$CI_SCRIPTS_REPO'
75 branches:
76 - '$CI_SCRIPTS_BRANCH'
77 credentials-id: GIT_SSH_KEY
78 wipe-workspace: false
79 script-path: jenkins/checkpatch.jpl