blob: ab7c4f0ee1abf03979f051f893b9cd2ca06fe213 [file] [log] [blame]
Fathi Boudra9e402bf2019-12-05 11:16:41 +02001- scm:
2 name: tf-a-ci-scripts
3 scm:
4 - git:
5 url: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
6 refspec: +refs/heads/master:refs/remotes/origin/master
7 name: origin
8 branches:
9 - refs/heads/master
10 basedir: tf-a-ci-scripts
11 skip-tag: true
12 shallow-clone: true
13 wipe-workspace: false
14- scm:
15 name: trusted-firmware-a
16 scm:
17 - git:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050018 url: https://review.trustedfirmware.org/${TF_GERRIT_PROJECT}
19 refspec: ${TF_GERRIT_REFSPEC}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020020 name: origin
21 branches:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050022 - ${TF_GERRIT_BRANCH}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020023 basedir: trusted-firmware-a
24 skip-tag: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050025 shallow-clone: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020026 wipe-workspace: false
27- scm:
28 name: tf-a-tests
29 scm:
30 - git:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050031 url: https://git.trustedfirmware.org/${TFTF_GERRIT_PROJECT}
32 refspec: ${TFTF_GERRIT_REFSPEC}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020033 name: origin
34 branches:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050035 - ${TFTF_GERRIT_BRANCH}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020036 basedir: tf-a-tests
37 skip-tag: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050038 shallow-clone: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020039 wipe-workspace: false
40- job:
41 name: tf-a-builder
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050042 node: docker-amd64-tf-a-bionic
Fathi Boudra9e402bf2019-12-05 11:16:41 +020043 project-type: freestyle
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050044 concurrent: true
45 disabled: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020046 defaults: global
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050047 Description: |
48 Trusted Firmware A (TF-A) builder
Fathi Boudra9e402bf2019-12-05 11:16:41 +020049 properties:
50 - build-discarder:
Leonardo Sandovaleb141602020-07-13 14:21:20 -050051 days-to-keep: 180
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050052 num-to-keep: 3000
Riku Voipiobc87be22020-09-04 15:56:09 +030053 - authorization:
54 anonymous:
Riku Voipio3a69f722020-10-05 11:39:45 +030055 - job-discover
Riku Voipiobc87be22020-09-04 15:56:09 +030056 - job-read
57 - job-extended-read
Riku Voipio3a69f722020-10-05 11:39:45 +030058 - job-workspace
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050059 lsandov1:
60 - job-read
61 - job-extended-read
62 - job-build
63 - job-cancel
64 - run-update
Fathi Boudra9e402bf2019-12-05 11:16:41 +020065 parameters:
66 - string:
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050067 name: import_cc
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050068 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050069 name: TEST_DESC
Fathi Boudra18eca5c2020-01-16 17:50:42 +020070 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050071 name: TF_GERRIT_PROJECT
Fathi Boudra18eca5c2020-01-16 17:50:42 +020072 default: 'TF-A/trusted-firmware-a'
73 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050074 name: TF_GERRIT_BRANCH
Fathi Boudra18eca5c2020-01-16 17:50:42 +020075 default: 'refs/heads/master'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050076 - string:
77 name: TF_GERRIT_REFSPEC
78 default: '+refs/heads/master:refs/remotes/origin/master'
79 - string:
80 name: TFTF_GERRIT_PROJECT
81 default: 'TF-A/tf-a-tests'
82 - string:
83 name: TFTF_GERRIT_BRANCH
84 default: 'refs/heads/master'
85 - string:
86 name: TFTF_GERRIT_REFSPEC
87 default: '+refs/heads/master:refs/remotes/origin/master'
88 - string:
89 name: DOCKER_REGISTRY
90 default: '987685672616.dkr.ecr.us-east-1.amazonaws.com'
91 - string:
92 name: ARMLMD_LICENSE_FILE
93 default: '27000@ci.trustedfirmware.org'
94 - string:
95 name: JUNO_ROOTFS_URL
96 default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
97 - string:
98 name: MBEDTLS_URL
99 default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.24.0.tar.gz'
100 - bool:
101 name: ENABLE_STATIC_CHECK
102 default: false
103 - choice:
104 name: REPO_UNDER_STATIC_CHECK
105 choices:
106 - trusted-firmware-a
107 - tf-a-tests
108 default: trusted-firmware-a
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200109 scm:
110 - tf-a-ci-scripts
111 - trusted-firmware-a
112 - tf-a-tests
113 wrappers:
114 - timestamps
115 builders:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500116 - conditional-step:
117 condition-kind: boolean-expression
118 condition-expression: "${ENABLE_STATIC_CHECK}"
119 steps:
Fathi Boudra9c8a9452020-12-08 22:16:57 +0100120 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500121 #!/bin/bash
122 set -e
123 export IS_CONTINUOUS_INTEGRATION=1
124 cd ${WORKSPACE}/${REPO_UNDER_STATIC_CHECK}
125 ${WORKSPACE}/tf-a-ci-scripts/script/static-checks/static-checks.sh
126 mv "static-checks.log" "$WORKSPACE"
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200127 - shell:
128 !include-raw: tf-a-builder/builders.sh
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500129 - conditional-step:
130 condition-kind: file-exists
131 on-evaluation-failure: dont-run
132 condition-filename: artefacts/debug/job.yaml
133 condition-basedir: workspace
134 steps:
135 - shell: |
136 #!/bin/bash
Fathi Boudraf60340c2020-01-17 18:44:15 +0200137
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500138 set -e
Fathi Boudraf60340c2020-01-17 18:44:15 +0200139
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500140 DEVICE_TYPE=fvp
141 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml
142 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts/debug/job.yaml)
Fathi Boudraf60340c2020-01-17 18:44:15 +0200143
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500144 cat << EOF > ${WORKSPACE}/post-build-lava.param
145 DEVICE_TYPE=${DEVICE_TYPE}
146 CUSTOM_YAML_URL=${CUSTOM_YAML_URL}
147 LAVA_SERVER=tf.validation.linaro.org/RPC2/
148 EOF
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200149 publishers:
150 - archive:
151 artifacts: 'artefacts/**'
152 latest-only: false
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500153 allow-empty: true
154 - conditional-publisher:
155 - condition-kind: file-exists
156 on-evaluation-failure: dont-run
157 condition-filename: artefacts/debug/job.yaml
158 condition-basedir: workspace
159 action:
160 - trigger-parameterized-builds:
161 - project: post-build-lava
162 property-file: post-build-lava.param