blob: e30a68734ca2ccf8ec9f2b181ee7704bb431899b [file] [log] [blame]
Xinyu Zhang521e3642021-11-18 16:27:05 +08001#-------------------------------------------------------------------------------
Summer Qin7632b812022-01-05 17:33:35 +08002# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Xinyu Zhang521e3642021-11-18 16:27:05 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
9 name: tf-m-release-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
Xinyu Zhang521e3642021-11-18 16:27:05 +080019 parameters:
20 - string:
21 name: 'CODE_REPO'
22 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
23 - string:
24 name: 'CI_SCRIPTS_REPO'
25 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
26 - string:
27 name: 'CI_SCRIPTS_BRANCH'
Xinyu Zhang3a19e982022-03-29 16:50:48 +080028 default: 'release/1.6.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +080029 - string:
30 name: 'GERRIT_REFSPEC'
Xinyu Zhang3a19e982022-03-29 16:50:48 +080031 default: 'refs/heads/release/1.6.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +080032 description: |
33 For use when triggering with unmerged Gerrit changes.
34 - string:
35 name: 'GERRIT_BRANCH'
Xinyu Zhang3a19e982022-03-29 16:50:48 +080036 default: 'release/1.6.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +080037 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:
52 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080053 default: 'v1.9.0'
Xinyu Zhang521e3642021-11-18 16:27:05 +080054 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:
62 name: 'MBEDTLS_VERSION'
Antonio de Angelis20c04402022-07-16 00:01:05 +010063 default: 'mbedtls-3.2.1'
Xinyu Zhang521e3642021-11-18 16:27:05 +080064 - string:
65 name: 'MBEDTLS_URL'
66 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.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 Zhang3a19e982022-03-29 16:50:48 +080072 default: 'refs/heads/release/1.6.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +080073 - 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'
Xinyu Zhang521e3642021-11-18 16:27:05 +080079 - string:
80 name: SHARE_FOLDER
81 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
82 description: 'Folder containing shared repositories for downstream pipeline jobs'
83 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'
91 project-pattern: 'TF-M/trusted-firmware-m'
92 branches:
93 - branch-compare-type: 'PLAIN'
Xinyu Zhang3a19e982022-03-29 16:50:48 +080094 branch-pattern: 'release/1.6.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +080095 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
102 notification-level: 'OWNER_REVIEWERS'
103 custom-url: $RUN_DISPLAY_URL
104 wrappers:
105 - timestamps
106 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