blob: 0d00273250d562134890b9f2492f9b40a450fbfb [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-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
Riku Voipiod4ea5342020-09-04 16:00:02 +030019 - authorization:
Fathi Boudradb891772021-03-02 14:12:48 +010020 !include: authorization.yaml.inc
Fathi Boudra57ba4302020-11-10 12:56:53 +010021# Instance specific parameters can be set as environment variables in
22# * docker image (ENV)
23# * Jenkins -> configure system -> global properties -> environment variables
24# e.g. DOCKER_PREFIX, LICENSE_VARIABLE
Dean Birche4cbc7c2020-01-20 10:40:21 +000025 parameters:
26 - string:
27 name: 'TARGET_PLATFORM'
28 description: |
29 Specifies the target platform.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010030 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 +000031 default: ''
32 - string:
33 name: 'PROJ_CONFIG'
34 description: |
35 Specifies the way the application is built.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010036 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 +000037 default: ''
38 - string:
39 name: 'COMPILER'
40 description: |
41 Specifies the compiler toolchain.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010042 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 +000043 default: ''
44 - string:
45 name: 'CMAKE_BUILD_TYPE'
46 description: |
47 Configures debugging support.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010048 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 +000049 default: ''
50 - string:
51 name: 'BL2'
52 default: 'True'
53 description: |
54 Whether to build BL2.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010055 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 +000056 - 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:
Fathi Boudraccaba542020-11-19 10:11:43 +010067 name: 'CODE_REPO'
68 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
69 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000070 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030071 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000072 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010073 name: 'CI_SCRIPTS_BRANCH'
74 default: 'master'
Dean Birche4cbc7c2020-01-20 10:40:21 +000075 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080076 name: 'MBEDTLS_VERSION'
Summer Qin7632b812022-01-05 17:33:35 +080077 default: 'mbedtls-3.1.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080078 - string:
79 name: 'MBEDTLS_URL'
80 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
81 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000082 name: 'BUILD_NUMBER'
83 default: ''
84 - string:
85 name: 'BUILD_URL'
86 default: ''
87 - string:
88 name: 'LAVA_URL'
89 default: 'https://tf.validation.linaro.org'
90 - string:
Matthew Harta5bc91c2020-05-26 23:37:59 +010091 name: 'PSA_API_SUITE'
92 default: ''
Dean Birchc4d4d672020-08-12 10:38:58 +010093 - string:
Leonardo Sandoval35dd14e2021-04-16 11:49:58 -050094 name: 'CODE_COVERAGE_EN'
95 default: 'FALSE'
96 - string:
Dean Birchc4d4d672020-08-12 10:38:58 +010097 name: 'LAVA_CREDENTIALS'
98 default: 'LAVA_CREDENTIALS'
99 description: "Name of Jenkins credential for authentication with LAVA."
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800100 wrappers:
101 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000102 pipeline-scm:
103 scm:
104 - git:
105 url: '$CI_SCRIPTS_REPO'
106 branches:
107 - '$CI_SCRIPTS_BRANCH'
108 credentials-id: GIT_SSH_KEY
109 wipe-workspace: false
110 script-path: jenkins/lava-submit.jpl