blob: ca5b4b17cf73ec46e56d1672aa4b3c8243f03f41 [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 Zhang10265ed2022-11-23 10:19:53 +080028 default: 'release/1.7.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +080029 - string:
30 name: 'GERRIT_REFSPEC'
Xinyu Zhang10265ed2022-11-23 10:19:53 +080031 default: 'refs/heads/release/1.7.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 Zhang10265ed2022-11-23 10:19:53 +080036 default: 'release/1.7.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 Zhang10265ed2022-11-23 10:19:53 +080072 default: 'refs/heads/release/1.7.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:
Xinyu Zhangb06443a2022-11-23 17:50:21 +080080 name: 'QCBOR_URL'
81 default: 'https://github.com/laurencelundblade/QCBOR.git'
82 - string:
83 name: 'QCBOR_VERSION'
84 default: 'b0e7033268e88c9f27146fa9a1415ef4c19ebaff'
85 - string:
Xinyu Zhang521e3642021-11-18 16:27:05 +080086 name: SHARE_FOLDER
87 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
88 description: 'Folder containing shared repositories for downstream pipeline jobs'
89 triggers:
90 - gerrit:
91 trigger-on:
92 - comment-added-event:
93 approval-category: 'Allow-CI'
94 approval-value: '1'
95 projects:
96 - project-compare-type: 'PLAIN'
97 project-pattern: 'TF-M/trusted-firmware-m'
98 branches:
99 - branch-compare-type: 'PLAIN'
Xinyu Zhang10265ed2022-11-23 10:19:53 +0800100 branch-pattern: 'release/1.7.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +0800101 override-votes: true
102 gerrit-build-successful-verified-value: 1
103 gerrit-build-failed-verified-value: -1
104 gerrit-build-unstable-verified-value: -1
105 gerrit-build-successful-codereview-value: 0
106 gerrit-build-failed-codereview-value: 0
107 gerrit-build-unstable-codereview-value: 0
108 notification-level: 'OWNER_REVIEWERS'
109 custom-url: $RUN_DISPLAY_URL
110 wrappers:
111 - timestamps
112 pipeline-scm:
113 scm:
114 - git:
115 url: '$CI_SCRIPTS_REPO'
116 branches:
117 - '$CI_SCRIPTS_BRANCH'
118 credentials-id: GIT_SSH_KEY
119 wipe-workspace: false
120 script-path: jenkins/static.jpl