blob: eb52883200093d88117c38f83c8f76aac23ba760 [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:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080088 name: 'MBEDTLS_VERSION'
89 default: 'mbedtls-2.23.0'
90 - string:
91 name: 'MBEDTLS_URL'
92 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
93 - string:
Tamas Ban29d6e442020-09-16 13:42:51 +010094 name: 'MCUBOOT_REFSPEC'
Tamas Ban424f8ce2020-10-06 12:06:04 +010095 default: 'refs/tags/TF-Mv1.2-integ'
96 description: |
97 Specify which MCUboot version to use
98 refs/heads/master : Pick up latest master
99 refs/tags/<TAG_NAME> : Pick up a tagged version
Tamas Ban810d7362020-06-09 10:03:36 +0100100 - string:
101 name: 'MCUBOOT_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800102 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Ban810d7362020-06-09 10:03:36 +0100103 - string:
Kevin Peng813a9a52020-06-17 14:14:46 +0800104 name: 'TFM_TESTS_URL'
105 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
106 - string:
107 name: 'TFM_TESTS_REFSPEC'
108 default: 'refs/heads/master'
109 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000110 name: 'PSA_ARCH_TESTS_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800111 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000112 - string:
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800113 name: 'PSA_ARCH_TESTS_VERSION'
114 default: 'refs/heads/master'
115 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000116 name: 'CI_SCRIPTS_BRANCH'
117 default: 'master'
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800118 - string:
119 name: 'CODE_COVERAGE_EN'
120 default: 'FALSE'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000121 pipeline-scm:
122 scm:
123 - git:
124 url: '$CI_SCRIPTS_REPO'
125 branches:
126 - '$CI_SCRIPTS_BRANCH'
127 credentials-id: GIT_SSH_KEY
128 wipe-workspace: false
129 script-path: jenkins/build-config.jpl