blob: ab8b1efc2da65bf5c266115ab906dcfe482137e5 [file] [log] [blame]
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05001- 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
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050014- job:
15 name: tf-ci-gateway
Leonardo Sandovalb1961662021-02-02 09:29:27 -060016 node: docker-amd64-tf-a-bionic
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050017 project-type: freestyle
18 concurrent: true
19 disabled: false
20 defaults: global
21 description: |
22 Main job entry point for a Trusted Firmware A (TF-A) CI.
23 properties:
24 - build-discarder:
Leonardo Sandovala4feb552021-03-02 12:10:21 -060025 days-to-keep: 14
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050026 - throttle:
27 option: project
28 enabled: true
29 max-per-node: 3
30 max-total: 10
31 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060032 !include: authorization.yaml.inc
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050033 wrappers:
34 - credentials-binding:
35 - ssh-user-private-key:
36 credential-id: TFA_CI_BOT_USER_SSH_KEY
37 key-file-variable: CI_BOT_KEY
38 username-variable: CI_BOT_USERNAME
39 passphrase-variable: ''
40 - workspace-cleanup
41 - timeout:
42 timeout: 180
43 fail: true
44 - timestamps
45 parameters:
46 - string:
47 name: TEST_GROUPS
48 default: tf-l2-boot-tests-cortex/fvp-default:fvp-linux-dtb-fip.uboot-cortexa35x4-debug
49 description: |
50 White space separated list of test configs: can be mix of specific
51 test configs (e.g., <code>l1/fvp-default:fvp-linux-default</code>) and
52 group names (e.g., <code>l1 l2</code>).
53 - bool:
54 name: ENABLE_STATIC_CHECK
55 default: false
56 scm:
57 - tf-a-ci-scripts
58 builders:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010059 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050060 #!/bin/bash
61 set -e
62 CI_ROOT=${PWD}/tf-a-ci-scripts
63 export workspace=$PWD
64 export test_groups=$TEST_GROUPS
65 $CI_ROOT/script/gen_test_desc.py
66 - trigger-builds:
67 - project:
Leonardo Sandoval9f159802021-01-20 16:47:25 -060068 - tf-a-builder
69 block: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050070 current-parameters: true
71 property-file-fail-on-missing: false
72 parameter-factories:
73 - factory: binaryfile
74 parameter-name: TEST_DESC
75 file-pattern: '*.test'
76 no-files-found-action: FAIL
Leonardo Sandoval9f159802021-01-20 16:47:25 -060077 publishers:
78 - postbuildscript:
79 builders:
Leonardo Sandovalb1961662021-02-02 09:29:27 -060080 - role: SLAVE
Leonardo Sandoval9f159802021-01-20 16:47:25 -060081 build-on:
82 - SUCCESS
83 - FAILURE
84 - UNSTABLE
85 - ABORTED
86 - NOT_BUILT
87 build-steps:
88 - shell: |-
89 #!/bin/bash -e
90 export CI_ROOT=${PWD}/tf-a-ci-scripts
91 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
92 - archive:
93 artifacts: report.json, report.html
94 - groovy-postbuild:
95 script:
96 !include-raw:
97 - tf-ci-gateway/postbuild.groovy