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 |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 33 | parameters: |
| 34 | - string: |
| 35 | name: 'TARGET_PLATFORM' |
| 36 | description: | |
| 37 | Specifies the target platform. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 38 | 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] | 39 | default: '' |
| 40 | - string: |
| 41 | name: 'PROJ_CONFIG' |
| 42 | description: | |
| 43 | Specifies the way the application is built. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 44 | 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] | 45 | default: '' |
| 46 | - string: |
| 47 | name: 'COMPILER' |
| 48 | description: | |
| 49 | Specifies the compiler toolchain. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 50 | 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] | 51 | default: '' |
| 52 | - string: |
| 53 | name: 'CMAKE_BUILD_TYPE' |
| 54 | description: | |
| 55 | Configures debugging support. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 56 | 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] | 57 | default: '' |
| 58 | - string: |
| 59 | name: 'BL2' |
| 60 | default: 'True' |
| 61 | description: | |
| 62 | Whether to build BL2. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 63 | 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] | 64 | - string: |
| 65 | name: 'GERRIT_REFSPEC' |
| 66 | default: 'refs/heads/master' |
| 67 | description: | |
| 68 | For use when triggering with unmerged Gerrit changes. |
| 69 | - string: |
| 70 | name: 'GERRIT_BRANCH' |
| 71 | default: 'master' |
| 72 | description: | |
| 73 | For use when triggering with unmerged Gerrit changes. |
| 74 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 75 | name: 'CODE_REPO' |
| 76 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 77 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 78 | name: 'CI_SCRIPTS_REPO' |
| 79 | default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts' |
| 80 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 81 | name: 'CI_SCRIPTS_BRANCH' |
| 82 | default: 'master' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 83 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 84 | name: 'MBEDTLS_VERSION' |
Summer Qin | a400be8 | 2020-10-28 15:00:00 +0800 | [diff] [blame] | 85 | default: 'mbedtls-2.24.0' |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 86 | - string: |
| 87 | name: 'MBEDTLS_URL' |
| 88 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 89 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 90 | name: 'BUILD_NUMBER' |
| 91 | default: '' |
| 92 | - string: |
| 93 | name: 'BUILD_URL' |
| 94 | default: '' |
| 95 | - string: |
| 96 | name: 'LAVA_URL' |
| 97 | default: 'https://tf.validation.linaro.org' |
| 98 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 99 | name: 'DOCKER_PREFIX' |
Fathi Boudra | 527a2b3 | 2020-11-06 19:31:00 +0100 | [diff] [blame] | 100 | default: '987685672616.dkr.ecr.us-east-1.amazonaws.com' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 101 | - string: |
| 102 | name: 'LICENSE_VARIABLE' |
Fathi Boudra | 527a2b3 | 2020-11-06 19:31:00 +0100 | [diff] [blame] | 103 | default: 'ARMLMD_LICENSE_FILE=27000@ci.trustedfirmware.org' |
Matthew Hart | a5bc91c | 2020-05-26 23:37:59 +0100 | [diff] [blame] | 104 | - string: |
| 105 | name: 'PSA_API_SUITE' |
| 106 | default: '' |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 107 | - string: |
| 108 | name: 'LAVA_CREDENTIALS' |
| 109 | default: 'LAVA_CREDENTIALS' |
| 110 | description: "Name of Jenkins credential for authentication with LAVA." |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 111 | pipeline-scm: |
| 112 | scm: |
| 113 | - git: |
| 114 | url: '$CI_SCRIPTS_REPO' |
| 115 | branches: |
| 116 | - '$CI_SCRIPTS_BRANCH' |
| 117 | credentials-id: GIT_SSH_KEY |
| 118 | wipe-workspace: false |
| 119 | script-path: jenkins/lava-submit.jpl |