blob: 418a0cb0123fd93064061c17f2a72c3c939f4042 [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:
33 anonymous:
34 - job-read
35 - job-extended-read
36 lsandov1:
37 - job-read
38 - job-extended-read
39 - job-build
40 - job-cancel
41 - run-update
42 wrappers:
43 - credentials-binding:
44 - ssh-user-private-key:
45 credential-id: TFA_CI_BOT_USER_SSH_KEY
46 key-file-variable: CI_BOT_KEY
47 username-variable: CI_BOT_USERNAME
48 passphrase-variable: ''
49 - workspace-cleanup
50 - timeout:
51 timeout: 180
52 fail: true
53 - timestamps
54 parameters:
55 - string:
56 name: TEST_GROUPS
57 default: tf-l2-boot-tests-cortex/fvp-default:fvp-linux-dtb-fip.uboot-cortexa35x4-debug
58 description: |
59 White space separated list of test configs: can be mix of specific
60 test configs (e.g., <code>l1/fvp-default:fvp-linux-default</code>) and
61 group names (e.g., <code>l1 l2</code>).
62 - bool:
63 name: ENABLE_STATIC_CHECK
64 default: false
65 scm:
66 - tf-a-ci-scripts
67 builders:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010068 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050069 #!/bin/bash
70 set -e
71 CI_ROOT=${PWD}/tf-a-ci-scripts
72 export workspace=$PWD
73 export test_groups=$TEST_GROUPS
74 $CI_ROOT/script/gen_test_desc.py
75 - trigger-builds:
76 - project:
Leonardo Sandoval9f159802021-01-20 16:47:25 -060077 - tf-a-builder
78 block: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050079 current-parameters: true
80 property-file-fail-on-missing: false
81 parameter-factories:
82 - factory: binaryfile
83 parameter-name: TEST_DESC
84 file-pattern: '*.test'
85 no-files-found-action: FAIL
Leonardo Sandoval9f159802021-01-20 16:47:25 -060086 publishers:
87 - postbuildscript:
88 builders:
89 - role: MASTER
90 build-on:
91 - SUCCESS
92 - FAILURE
93 - UNSTABLE
94 - ABORTED
95 - NOT_BUILT
96 build-steps:
97 - shell: |-
98 #!/bin/bash -e
99 export CI_ROOT=${PWD}/tf-a-ci-scripts
100 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
101 - archive:
102 artifacts: report.json, report.html
103 - groovy-postbuild:
104 script:
105 !include-raw:
106 - tf-ci-gateway/postbuild.groovy