blob: f5a29b38392274a8404a0f9d1f8dc8e3b3d1a255 [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Summer Qin7632b812022-01-05 17:33:35 +08002# Copyright (c) 2020-2022, 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-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
Dean Birche4cbc7c2020-01-20 10:40:21 +000019 parameters:
20 - string:
21 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010022 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000023 - string:
24 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030025 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000026 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010027 name: 'CI_SCRIPTS_BRANCH'
28 default: 'master'
29 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000030 name: 'GERRIT_REFSPEC'
31 default: 'refs/heads/master'
32 description: |
33 For use when triggering with unmerged Gerrit changes.
34 - string:
35 name: 'GERRIT_BRANCH'
36 default: 'master'
37 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:
Leonardo Sandoval4a024212021-09-17 14:05:27 -050052 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080053 default: 'v1.9.0'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050054 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:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080062 name: 'MBEDTLS_VERSION'
Antonio de Angelis20c04402022-07-16 00:01:05 +010063 default: 'mbedtls-3.2.1'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080064 - string:
65 name: 'MBEDTLS_URL'
66 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050067 - 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'
72 default: 'refs/heads/master'
73 - 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'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050079 - 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:
Leonardo Sandoval4a024212021-09-17 14:05:27 -050086 name: SHARE_FOLDER
87 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
88 description: 'Folder containing shared repositories for downstream pipeline jobs'
Dean Birche4cbc7c2020-01-20 10:40:21 +000089 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'
Dean Birch1817bb62020-06-02 14:00:23 +010097 project-pattern: 'TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000098 branches:
99 - branch-compare-type: 'REG_EXP'
100 branch-pattern: 'master'
Dean Birchb1410132020-06-15 17:12:16 +0100101 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
Dean Birche4cbc7c2020-01-20 10:40:21 +0000108 notification-level: 'OWNER_REVIEWERS'
109 custom-url: $RUN_DISPLAY_URL
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800110 wrappers:
111 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000112 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