aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-clo-openembedded-rpb-master.yaml
blob: b2abbd8787888bac1d02a88a3bd889158428e4db (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
- job:
    name: lt-qcom-clo-openembedded-rpb-master
    project-type: matrix
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
                - job-workspace
            linaro-qualcomm-ci:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 30
            artifact-num-to-keep: 1
    parameters:
        - string:
            name: IMAGES
            default: 'rpb-console-image initramfs-tiny-image initramfs-test-image initramfs-test-full-image'
        - string:
            name: IMAGES_RPB
            default: 'rpb-desktop-image'
        - string:
            name: IMAGES_RPB_WAYLAND
            default: 'rpb-weston-image'
        - string:
            name: MANIFEST_URL
            default: 'https://github.com/96boards/oe-rpb-manifest.git'
        - string:
            name: MANIFEST_BRANCH
            default: 'qcom/master'
        - string:
            name: PUBLISH_SERVER
            default: 'https://staging-artifacts.codelinaro.org/artifactory/codelinaro-qualcomm/'
        - string:
            name: CLO_MIGRATION
            default: 'true'
            description: 'Temporal variable which condition CLO code. This variable and conditions should be removed at some point'
    disabled: true
    node: master
    display-name: '[CLO] Qualcomm OpenEmbedded RPB (master)'
    axes:
        - axis:
            type: user-defined
            name: MACHINE
            values:
                - 'dragonboard-410c'
                - 'dragonboard-820c'
                - 'dragonboard-845c'
                - 'qrb5165-rb5'
                - 'qcom-armv8a'
                - 'sdx55-mtp'
                - 'sa8155p-adp'
        - axis:
            type: user-defined
            name: DISTRO
            values:
                - rpb
                - rpb-wayland
    execution-strategy:
        sequential: false
    wrappers:
        - timestamps
        - workspace-cleanup
        - credentials-binding:
            - text:
                credential-id: TUXSUITE_TOKEN
                variable: TUXSUITE_TOKEN
            - text:
                credential-id: QA_REPORTS_TOKEN
                variable: QA_REPORTS_TOKEN
            - text:
                credential-id: LT_QCOM_CLO_API_KEY
                variable: LT_QCOM_CLO_API_KEY
    builders:
        - shell: |
            #!/bin/bash

            # some machine names we use on 96boards are slightly different
            case "${MACHINE}" in
              dragonboard-410c)
                MACHINE=dragonboard410c
                ;;
              dragonboard-820c)
                MACHINE=dragonboard820c
                ;;
              dragonboard-845c)
                MACHINE=dragonboard845c
                ;;
            esac

            # Publish artifacts in 96boards folder only for 96boards machines
            PUB_DEST=member-builds/qcomlt/boards/${MACHINE}
            case "${MACHINE}" in
              dragonboard*|qrb5165-rb5)
                PUB_DEST=96boards/${MACHINE}/linaro
                ;;
            esac

            echo "PUB_DEST=${PUB_DEST}/openembedded/$(echo ${MANIFEST_BRANCH} | sed s'!qcom/!!')/${BUILD_NUMBER}/${DISTRO}" > pub_dest_parameters
        - inject:
            properties-file: pub_dest_parameters
        - shell:
            !include-raw: rpb-openembedded/builders-tux.sh
        - inject:
            properties-file: parameters
        - shell:
            !include-raw: rpb-openembedded/publishers.sh
    publishers:
        - groovy-postbuild:
            script:
                !include-raw:
                  - lt-qcom/tuxpub.groovy
        - email-ext:
            recipients: 'leonardo.sandoval@linaro.org nicolas.dechesne@linaro.org'
            failure: true
            still-failing: true
            matrix-trigger: only-parent