blob: 9b77882ba2cca400be242d7ec1002bb327c0cbdd [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
16 node: master
17 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:
25 days-to-keep: 180
26 num-to-keep: 180
27 - throttle:
28 option: project
29 enabled: true
30 max-per-node: 3
31 max-total: 10
32 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060033 !include: authorization.yaml.inc
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050034 wrappers:
35 - credentials-binding:
36 - ssh-user-private-key:
37 credential-id: TFA_CI_BOT_USER_SSH_KEY
38 key-file-variable: CI_BOT_KEY
39 username-variable: CI_BOT_USERNAME
40 passphrase-variable: ''
41 - workspace-cleanup
42 - timeout:
43 timeout: 180
44 fail: true
45 - timestamps
46 parameters:
47 - string:
48 name: TEST_GROUPS
49 default: tf-l2-boot-tests-cortex/fvp-default:fvp-linux-dtb-fip.uboot-cortexa35x4-debug
50 description: |
51 White space separated list of test configs: can be mix of specific
52 test configs (e.g., <code>l1/fvp-default:fvp-linux-default</code>) and
53 group names (e.g., <code>l1 l2</code>).
54 - bool:
55 name: ENABLE_STATIC_CHECK
56 default: false
57 scm:
58 - tf-a-ci-scripts
59 builders:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010060 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050061 #!/bin/bash
62 set -e
63 CI_ROOT=${PWD}/tf-a-ci-scripts
64 export workspace=$PWD
65 export test_groups=$TEST_GROUPS
66 $CI_ROOT/script/gen_test_desc.py
67 - trigger-builds:
68 - project:
Leonardo Sandoval9f159802021-01-20 16:47:25 -060069 - tf-a-builder
70 block: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050071 current-parameters: true
72 property-file-fail-on-missing: false
73 parameter-factories:
74 - factory: binaryfile
75 parameter-name: TEST_DESC
76 file-pattern: '*.test'
77 no-files-found-action: FAIL
Leonardo Sandoval9f159802021-01-20 16:47:25 -060078 publishers:
79 - postbuildscript:
80 builders:
81 - role: MASTER
82 build-on:
83 - SUCCESS
84 - FAILURE
85 - UNSTABLE
86 - ABORTED
87 - NOT_BUILT
88 build-steps:
89 - shell: |-
90 #!/bin/bash -e
91 export CI_ROOT=${PWD}/tf-a-ci-scripts
92 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
93 - archive:
94 artifacts: report.json, report.html
95 - groovy-postbuild:
96 script:
97 !include-raw:
98 - tf-ci-gateway/postbuild.groovy