aboutsummaryrefslogtreecommitdiff
path: root/lite-tf-m.yaml
blob: 76420030b633049a5f9a17746daaaa5a402af8a8 (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
- job:
    name: lite-tf-m
    project-type: matrix
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
                - job-workspace
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
            paul.sokolovsky@linaro.org:
                - job-build
                - job-read
                - job-extended-read
                - job-configure
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 30
            artifact-num-to-keep: 30
        - throttle:
            option: category
            categories: [lite-zephyr]
            matrix-builds: false
            matrix-configs: true
    parameters:
        - string:
            name: BRANCH
            default: 'master'
        - string:
            name: GIT_COMMIT
            default: 'b157dca40dcf'
        - string:
            name: LAVA_SERVER
            default: 'validation.linaro.org/RPC2/'
        - string:
            name: QA_SERVER
            default: 'https://qa-reports.linaro.org'
        - string:
            name: QA_SERVER_GROUP
            default: 'lite'
        - string:
            name: QA_SERVER_PROJECT
            default: 'lite-tf-m'
        - string:
            name: USE_QA_SERVER
            default: '1'
    disabled: false
    node: master
    child-workspace: .
    display-name: "LITE - TrustedFirmware-M"
    triggers:
        - timed: 'H 5 * * *'
    axes:
        - axis:
            type: slave
            name: label
            values:
                - docker-bionic-amd64
        - axis:
            type: user-defined
            name: ZEPHYR_TOOLCHAIN_VARIANT
            values:
                - gnuarmemb
        - axis:
            type: user-defined
            name: PLATFORM
            values:
                - AN521
    wrappers:
        - timestamps
        - credentials-binding:
            - text:
                credential-id: LAVA_USER
                variable: LAVA_USER
        - credentials-binding:
            - text:
                credential-id: LAVA_TOKEN
                variable: LAVA_TOKEN
        - credentials-binding:
            - text:
                credential-id: QA_REPORTS_TOKEN
                variable: QA_REPORTS_TOKEN
    builders:
        - shell: |
            rm -rf job-configs
            git clone --depth 1 https://git.linaro.org/ci/job/configs.git job-configs
        - shell: |
            ./job-configs/lite-tf-m/install-deps.sh
        - shell: |
            ./job-configs/lite-tf-m/build.sh
        - inject:
            properties-file: env_var_parameters
#        - build-name-setter:
#            template: '#${BUILD_NUMBER}-${GIT_COMMIT_ID}'
#            macro: true
        - linaro-publish-token
        - shell: |
            #!/bin/bash

            # Publish. Need to publish out of a directory to make files publicly accessible.
            test -d ${HOME}/bin || mkdir ${HOME}/bin
            wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
            time python ${HOME}/bin/linaro-cp.py \
              --api_version 3 \
              --link-latest \
              out/ components/kernel/aeolus-2/tf-m/${BRANCH}/${PLATFORM}/${BUILD_NUMBER}

        - shell: |
            #!/bin/bash -ex

            rm -rf configs
            git clone --depth 1 https://git.linaro.org/ci/job/configs.git
            git clone --depth 1 https://github.com/pfalcon/lite-build-tools
            ./configs/lite-tf-m/submit-test.sh

    publishers:
        - email:
            recipients: 'paul.sokolovsky@linaro.org'