blob: b4f5ef253d653a0240a046ac981ffbb42ffeda73 [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
19 - authorization:
20 !include: authorization.yaml.inc
21 parameters:
22 - string:
23 name: 'CODE_REPO'
24 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
25 - string:
26 name: 'CI_SCRIPTS_REPO'
27 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
28 - string:
29 name: 'CI_SCRIPTS_BRANCH'
Xinyu Zhang3a19e982022-03-29 16:50:48 +080030 default: 'release/1.6.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +080031 - string:
32 name: 'GERRIT_REFSPEC'
Xinyu Zhang3a19e982022-03-29 16:50:48 +080033 default: 'refs/heads/release/1.6.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +080034 description: |
35 For use when triggering with unmerged Gerrit changes.
36 - string:
37 name: 'GERRIT_BRANCH'
Xinyu Zhang3a19e982022-03-29 16:50:48 +080038 default: 'release/1.6.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +080039 description: |
40 For use when triggering with unmerged Gerrit changes.
41 - string:
42 name: 'GERRIT_HOST'
43 description: |
44 For use when triggering with unmerged Gerrit changes.
45 - string:
46 name: 'GERRIT_CHANGE_NUMBER'
47 description: |
48 For use when triggering with unmerged Gerrit changes.
49 - string:
50 name: 'GERRIT_PATCHSET_REVISION'
51 description: |
52 For use when triggering with unmerged Gerrit changes.
53 - string:
54 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080055 default: 'v1.9.0'
Xinyu Zhang521e3642021-11-18 16:27:05 +080056 description: |
57 Specify which MCUboot version to use
58 refs/heads/master : Pick up latest master
59 refs/tags/<TAG_NAME> : Pick up a tagged version
60 - string:
61 name: 'MCUBOOT_URL'
62 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
63 - string:
64 name: 'MBEDTLS_VERSION'
Summer Qin7632b812022-01-05 17:33:35 +080065 default: 'mbedtls-3.1.0'
Xinyu Zhang521e3642021-11-18 16:27:05 +080066 - string:
67 name: 'MBEDTLS_URL'
68 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
69 - string:
70 name: 'TFM_TESTS_URL'
71 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
72 - string:
73 name: 'TFM_TESTS_REFSPEC'
Xinyu Zhang3a19e982022-03-29 16:50:48 +080074 default: 'refs/heads/release/1.6.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +080075 - string:
76 name: 'PSA_ARCH_TESTS_URL'
77 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
78 - string:
79 name: 'PSA_ARCH_TESTS_VERSION'
Summer Qin9da600e2022-04-06 17:48:13 +080080 default: 'f7e8495dede62196a7fdd88470c58cf672525238'
Xinyu Zhang521e3642021-11-18 16:27:05 +080081 - string:
82 name: SHARE_FOLDER
83 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
84 description: 'Folder containing shared repositories for downstream pipeline jobs'
85 triggers:
86 - gerrit:
87 trigger-on:
88 - comment-added-event:
89 approval-category: 'Allow-CI'
90 approval-value: '1'
91 projects:
92 - project-compare-type: 'PLAIN'
93 project-pattern: 'TF-M/trusted-firmware-m'
94 branches:
95 - branch-compare-type: 'PLAIN'
Xinyu Zhang3a19e982022-03-29 16:50:48 +080096 branch-pattern: 'release/1.6.x'
Xinyu Zhang521e3642021-11-18 16:27:05 +080097 override-votes: true
98 gerrit-build-successful-verified-value: 1
99 gerrit-build-failed-verified-value: -1
100 gerrit-build-unstable-verified-value: -1
101 gerrit-build-successful-codereview-value: 0
102 gerrit-build-failed-codereview-value: 0
103 gerrit-build-unstable-codereview-value: 0
104 notification-level: 'OWNER_REVIEWERS'
105 custom-url: $RUN_DISPLAY_URL
106 wrappers:
107 - timestamps
108 pipeline-scm:
109 scm:
110 - git:
111 url: '$CI_SCRIPTS_REPO'
112 branches:
113 - '$CI_SCRIPTS_BRANCH'
114 credentials-id: GIT_SSH_KEY
115 wipe-workspace: false
116 script-path: jenkins/static.jpl