Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 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 Voipio | d4ea534 | 2020-09-04 16:00:02 +0300 | [diff] [blame] | 15 | properties: |
Matthew Hart | db4cc38 | 2020-10-13 16:13:58 +0100 | [diff] [blame] | 16 | - build-discarder: |
| 17 | days-to-keep: 15 |
| 18 | num-to-keep: 6000 |
Riku Voipio | d4ea534 | 2020-09-04 16:00:02 +0300 | [diff] [blame] | 19 | - authorization: |
| 20 | anonymous: |
| 21 | - job-read |
| 22 | - job-extended-read |
Xinyu Zhang | d527ed6 | 2020-11-25 10:41:30 +0800 | [diff] [blame] | 23 | 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 Boudra | 57ba430 | 2020-11-10 12:56:53 +0100 | [diff] [blame^] | 33 | # 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 37 | parameters: |
| 38 | - string: |
| 39 | name: 'TARGET_PLATFORM' |
| 40 | description: | |
| 41 | Specifies the target platform. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 42 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 43 | default: '' |
| 44 | - string: |
| 45 | name: 'PROJ_CONFIG' |
| 46 | description: | |
| 47 | Specifies the way the application is built. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 48 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 49 | default: '' |
| 50 | - string: |
| 51 | name: 'COMPILER' |
| 52 | description: | |
| 53 | Specifies the compiler toolchain. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 54 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 55 | default: '' |
| 56 | - string: |
| 57 | name: 'CMAKE_BUILD_TYPE' |
| 58 | description: | |
| 59 | Configures debugging support. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 60 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 61 | default: '' |
| 62 | - string: |
| 63 | name: 'BL2' |
| 64 | default: 'True' |
| 65 | description: | |
| 66 | Whether to build BL2. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 67 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 68 | - 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 Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 79 | name: 'CODE_REPO' |
| 80 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 81 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 82 | name: 'CI_SCRIPTS_REPO' |
| 83 | default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts' |
| 84 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 85 | name: 'CI_SCRIPTS_BRANCH' |
| 86 | default: 'master' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 87 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 88 | name: 'MBEDTLS_VERSION' |
Summer Qin | a400be8 | 2020-10-28 15:00:00 +0800 | [diff] [blame] | 89 | default: 'mbedtls-2.24.0' |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 90 | - string: |
| 91 | name: 'MBEDTLS_URL' |
| 92 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 93 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 94 | 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 Hart | a5bc91c | 2020-05-26 23:37:59 +0100 | [diff] [blame] | 103 | name: 'PSA_API_SUITE' |
| 104 | default: '' |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 105 | - string: |
| 106 | name: 'LAVA_CREDENTIALS' |
| 107 | default: 'LAVA_CREDENTIALS' |
| 108 | description: "Name of Jenkins credential for authentication with LAVA." |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 109 | 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 |