blob: 9423954a196f24da71c94a8d32a444add94d207b [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Summer Qin8d6aae02023-01-20 11:15:51 +08002# Copyright (c) 2020-2023, 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-lava-submit
10 description: 'Generates and submits LAVA jobs'
11 project-type: pipeline
12 disabled: false
13 sandbox: true
14 concurrent: true
Riku Voipiod4ea5342020-09-04 16:00:02 +030015 properties:
Matthew Hartdb4cc382020-10-13 16:13:58 +010016 - build-discarder:
17 days-to-keep: 15
18 num-to-keep: 6000
Fathi Boudra57ba4302020-11-10 12:56:53 +010019# Instance specific parameters can be set as environment variables in
20# * docker image (ENV)
21# * Jenkins -> configure system -> global properties -> environment variables
22# e.g. DOCKER_PREFIX, LICENSE_VARIABLE
Dean Birche4cbc7c2020-01-20 10:40:21 +000023 parameters:
24 - string:
Saheer Babua82e8d82025-02-10 12:18:13 +000025 name: DOCKER_PREFIX
26 default: ${PRIVATE_CONTAINER_REGISTRY}
27 description: PRIVATE_CONTAINER_REGISTRY is a system-wide environment variable
28 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000029 name: 'TARGET_PLATFORM'
30 description: |
31 Specifies the target platform.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010032 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +000033 default: ''
34 - string:
35 name: 'PROJ_CONFIG'
36 description: |
37 Specifies the way the application is built.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010038 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +000039 default: ''
40 - string:
41 name: 'COMPILER'
42 description: |
43 Specifies the compiler toolchain.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010044 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +000045 default: ''
46 - string:
47 name: 'CMAKE_BUILD_TYPE'
48 description: |
49 Configures debugging support.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010050 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +000051 default: ''
52 - string:
53 name: 'BL2'
54 default: 'True'
55 description: |
56 Whether to build BL2.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010057 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_secure_boot.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +000058 - string:
59 name: 'GERRIT_REFSPEC'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080060 default: 'refs/heads/main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000061 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080062 Specify which TF-M version to use
63 refs/heads/<branch_name> : Pick up latest HEAD on branch
64 TAG_NAME : Pick up a tagged version
65 full commit hash : Pick up a specific commit
Dean Birche4cbc7c2020-01-20 10:40:21 +000066 - string:
67 name: 'GERRIT_BRANCH'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080068 default: 'main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000069 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080070 TF-M branch.
Dean Birche4cbc7c2020-01-20 10:40:21 +000071 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010072 name: 'CODE_REPO'
73 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
74 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000075 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030076 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000077 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010078 name: 'CI_SCRIPTS_BRANCH'
79 default: 'master'
Paul Sokolovskyfbb0d132024-07-12 20:20:03 +030080 description: |
81 Branch of CI_SCRIPTS_REPO to use; also accepts Gerrit patch refspec like 'refs/changes/98/29798/1'
Dean Birche4cbc7c2020-01-20 10:40:21 +000082 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080083 name: 'MBEDTLS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +080084 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080085 description: |
86 Specify which MBEDTLS version to use
87 refs/heads/<branch_name> : Pick up latest HEAD on branch
88 TAG_NAME : Pick up a tagged version
89 full commit hash : Pick up a specific commit
Karl Zhang85c2d7a2020-08-20 11:17:58 +080090 - string:
91 name: 'MBEDTLS_URL'
92 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
93 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000094 name: 'BUILD_NUMBER'
95 default: ''
96 - string:
97 name: 'BUILD_URL'
98 default: ''
99 - string:
100 name: 'LAVA_URL'
101 default: 'https://tf.validation.linaro.org'
102 - string:
Matthew Harta5bc91c2020-05-26 23:37:59 +0100103 name: 'PSA_API_SUITE'
104 default: ''
Dean Birchc4d4d672020-08-12 10:38:58 +0100105 - string:
Leonardo Sandoval35dd14e2021-04-16 11:49:58 -0500106 name: 'CODE_COVERAGE_EN'
107 default: 'FALSE'
108 - string:
Dean Birchc4d4d672020-08-12 10:38:58 +0100109 name: 'LAVA_CREDENTIALS'
110 default: 'LAVA_CREDENTIALS'
111 description: "Name of Jenkins credential for authentication with LAVA."
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300112 - string:
113 name: 'DEVICE_FILTER'
114 default: ''
115 description: |
116 Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only)
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800117 wrappers:
118 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000119 pipeline-scm:
120 scm:
121 - git:
122 url: '$CI_SCRIPTS_REPO'
123 branches:
124 - '$CI_SCRIPTS_BRANCH'
Paul Sokolovsky60a13ac2024-07-05 11:52:04 +0300125 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000126 credentials-id: GIT_SSH_KEY
127 wipe-workspace: false
128 script-path: jenkins/lava-submit.jpl