blob: 1a72b8bcb7e67b7e79d6d2168fd097dfee4802e5 [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-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:
20 anonymous:
21 - job-read
22 - job-extended-read
Xinyu Zhangd527ed62020-11-25 10:41:30 +080023 karl-zh:
24 - job-read
25 - job-extended-read
26 - job-build
27 - job-cancel
28 xinyu-tfm:
29 - job-read
30 - job-extended-read
31 - job-build
32 - job-cancel
Fathi Boudra57ba4302020-11-10 12:56:53 +010033# Instance specific parameters can be set as environment variables in
34# * docker image (ENV)
35# * Jenkins -> configure system -> global properties -> environment variables
36# e.g. DOCKER_PREFIX, LICENSE_VARIABLE
Dean Birche4cbc7c2020-01-20 10:40:21 +000037 parameters:
38 - string:
39 name: 'TARGET_PLATFORM'
40 description: |
41 Specifies the target platform.
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: 'PROJ_CONFIG'
46 description: |
47 Specifies the way the application is built.
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: 'COMPILER'
52 description: |
53 Specifies the compiler toolchain.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010054 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 +000055 default: ''
56 - string:
57 name: 'CMAKE_BUILD_TYPE'
58 description: |
59 Configures debugging support.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010060 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 +000061 default: ''
62 - string:
63 name: 'BL2'
64 default: 'True'
65 description: |
66 Whether to build BL2.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010067 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 +000068 - string:
69 name: 'GERRIT_REFSPEC'
70 default: 'refs/heads/master'
71 description: |
72 For use when triggering with unmerged Gerrit changes.
73 - string:
74 name: 'GERRIT_BRANCH'
75 default: 'master'
76 description: |
77 For use when triggering with unmerged Gerrit changes.
78 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010079 name: 'CODE_REPO'
80 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
81 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000082 name: 'CI_SCRIPTS_REPO'
83 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
84 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010085 name: 'CI_SCRIPTS_BRANCH'
86 default: 'master'
Dean Birche4cbc7c2020-01-20 10:40:21 +000087 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080088 name: 'MBEDTLS_VERSION'
Summer Qina400be82020-10-28 15:00:00 +080089 default: 'mbedtls-2.24.0'
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:
106 name: 'LAVA_CREDENTIALS'
107 default: 'LAVA_CREDENTIALS'
108 description: "Name of Jenkins credential for authentication with LAVA."
Dean Birche4cbc7c2020-01-20 10:40:21 +0000109 pipeline-scm:
110 scm:
111 - git:
112 url: '$CI_SCRIPTS_REPO'
113 branches:
114 - '$CI_SCRIPTS_BRANCH'
115 credentials-id: GIT_SSH_KEY
116 wipe-workspace: false
117 script-path: jenkins/lava-submit.jpl