summaryrefslogtreecommitdiff
path: root/tf-ci-gateway.yaml
blob: 4f0ab35ce7f99df078fe5fd91fb0ef94e40a0fd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
- scm:
    name: tf-a-ci-scripts
    scm:
        - git:
            url: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
            refspec: +refs/heads/master:refs/remotes/origin/master
            name: origin
            branches:
                - refs/heads/master
            basedir: tf-a-ci-scripts
            skip-tag: true
            shallow-clone: true
            wipe-workspace: false
- job:
    name: tf-ci-gateway
    node: docker-amd64-tf-a-bionic
    project-type: freestyle
    concurrent: true
    disabled: false
    defaults: global
    description: |
      Main job entry point for a Trusted Firmware A (TF-A) CI.
    properties:
    - build-discarder:
        days-to-keep: 180
        num-to-keep: 180
    - throttle:
        option: project
        enabled: true
        max-per-node: 3
        max-total: 10
    - authorization:
        !include: authorization.yaml.inc
    wrappers:
    - credentials-binding:
      - ssh-user-private-key:
          credential-id: TFA_CI_BOT_USER_SSH_KEY
          key-file-variable: CI_BOT_KEY
          username-variable: CI_BOT_USERNAME
          passphrase-variable: ''
    - workspace-cleanup
    - timeout:
        timeout: 180
        fail: true
    - timestamps
    parameters:
    - string:
        name: TEST_GROUPS
        default: tf-l2-boot-tests-cortex/fvp-default:fvp-linux-dtb-fip.uboot-cortexa35x4-debug
        description: |
          White space separated list of test configs: can be mix of specific
          test configs (e.g., <code>l1/fvp-default:fvp-linux-default</code>) and
          group names (e.g., <code>l1 l2</code>).
    - bool:
        name: ENABLE_STATIC_CHECK
        default: false
    scm:
        - tf-a-ci-scripts
    builders:
    - shell: |
        #!/bin/bash
        set -e
        CI_ROOT=${PWD}/tf-a-ci-scripts
        export workspace=$PWD
        export test_groups=$TEST_GROUPS
        $CI_ROOT/script/gen_test_desc.py
    - trigger-builds:
      - project:
        - tf-a-builder
        block: true
        current-parameters: true
        property-file-fail-on-missing: false
        parameter-factories:
        - factory: binaryfile
          parameter-name: TEST_DESC
          file-pattern: '*.test'
          no-files-found-action: FAIL
    publishers:
        - postbuildscript:
            builders:
                - role: SLAVE
                  build-on:
                      - SUCCESS
                      - FAILURE
                      - UNSTABLE
                      - ABORTED
                      - NOT_BUILT
                  build-steps:
                      - shell: |-
                          #!/bin/bash -e
                          export CI_ROOT=${PWD}/tf-a-ci-scripts
                          bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
        - archive:
            artifacts: report.json, report.html
        - groovy-postbuild:
            script:
                !include-raw:
                  - tf-ci-gateway/postbuild.groovy