blob: d43189bc48b2aa4564680df7697f7529480e6a49 [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
9 name: tf-m-build-config
10 description: 'Builds single configuration of the tf-m source code.'
11 project-type: pipeline
12 disabled: false
13 sandbox: true
14 properties:
15 - build-discarder:
16 days-to-keep: 15
17 num-to-keep: 6000
Riku Voipiod4ea5342020-09-04 16:00:02 +030018 - authorization:
19 anonymous:
20 - job-read
21 - job-extended-read
Dean Birche4cbc7c2020-01-20 10:40:21 +000022 concurrent: true
23 parameters:
24 - string:
25 name: 'CONFIG_NAME'
26 - string:
27 name: 'TARGET_PLATFORM'
28 description: |
29 Specifies the target platform.
30 For more information see <a href="https://git.trustedfirmware.org/trusted-firmware-m.git/tree/docs/user_guides/tfm_build_instruction.rst">here</a>.
31 default: ''
32 - string:
33 name: 'PROJ_CONFIG'
34 description: |
35 Specifies the way the application is built.
36 For more information see <a href="https://git.trustedfirmware.org/trusted-firmware-m.git/tree/docs/user_guides/tfm_build_instruction.rst">here</a>.
37 default: ''
38 - string:
39 name: 'COMPILER'
40 description: |
41 Specifies the compiler toolchain.
42 For more information see <a href="https://git.trustedfirmware.org/trusted-firmware-m.git/tree/docs/user_guides/tfm_build_instruction.rst">here</a>.
43 default: ''
44 - string:
45 name: 'CMAKE_BUILD_TYPE'
46 description: |
47 Configures debugging support.
48 For more information see <a href="https://git.trustedfirmware.org/trusted-firmware-m.git/tree/docs/user_guides/tfm_build_instruction.rst">here</a>.
49 default: ''
50 - string:
51 name: 'BL2'
52 default: 'True'
53 description: |
54 Whether to build BL2.
55 For more information see <a href="https://git.trustedfirmware.org/trusted-firmware-m.git/tree/docs/user_guides/tfm_secure_boot.rst">here</a>.
56 - string:
57 name: 'GERRIT_REFSPEC'
58 default: 'refs/heads/master'
59 description: |
60 For use when triggering with unmerged Gerrit changes.
61 - string:
62 name: 'GERRIT_BRANCH'
63 default: 'master'
64 description: |
65 For use when triggering with unmerged Gerrit changes.
66 - string:
67 name: 'GERRIT_HOST'
68 default: ''
69 description: |
70 For use when triggering with unmerged Gerrit changes.
71 - string:
72 name: 'GERRIT_PATCHSET_REVISION'
73 default: ''
74 description: |
75 For use when triggering with unmerged Gerrit changes.
76 - string:
77 name: 'GERRIT_CHANGE_NUMBER'
78 default: ''
79 description: |
80 For use when triggering with unmerged Gerrit changes.
81 - string:
82 name: 'CI_SCRIPTS_REPO'
83 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
84 - string:
85 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010086 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000087 - string:
88 name: 'MBEDCRYPTO_VERSION'
89 default: 'mbedcrypto-3.0.1'
90 - string:
91 name: 'MBEDCRYPTO_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +080092 default: 'https://git.trustedfirmware.org/mirror/mbed-crypto.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +000093 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080094 name: 'MBEDTLS_VERSION'
95 default: 'mbedtls-2.23.0'
96 - string:
97 name: 'MBEDTLS_URL'
98 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
99 - string:
Tamas Ban810d7362020-06-09 10:03:36 +0100100 name: 'MCUBOOT_VERSION'
101 default: 'v1.6.0'
102 - string:
103 name: 'MCUBOOT_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800104 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Ban810d7362020-06-09 10:03:36 +0100105 - string:
Kevin Peng813a9a52020-06-17 14:14:46 +0800106 name: 'TFM_TESTS_URL'
107 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
108 - string:
109 name: 'TFM_TESTS_REFSPEC'
110 default: 'refs/heads/master'
111 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000112 name: 'PSA_ARCH_TESTS_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800113 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000114 - string:
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800115 name: 'PSA_ARCH_TESTS_VERSION'
116 default: 'refs/heads/master'
117 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000118 name: 'CI_SCRIPTS_BRANCH'
119 default: 'master'
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800120 - string:
121 name: 'CODE_COVERAGE_EN'
122 default: 'FALSE'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000123 pipeline-scm:
124 scm:
125 - git:
126 url: '$CI_SCRIPTS_REPO'
127 branches:
128 - '$CI_SCRIPTS_BRANCH'
129 credentials-id: GIT_SSH_KEY
130 wipe-workspace: false
131 script-path: jenkins/build-config.jpl