aboutsummaryrefslogtreecommitdiff
path: root/lhg-oe-build.yaml
blob: 9d0f1016679ef79e91b41b59931266d358c21305 (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
- job:
    name: lhg-oe-build
    project-type: matrix
    defaults: global
    logrotate:
        daysToKeep: 30
        numToKeep: 30
        artifactNumToKeep: 1
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
                - job-workspace
            linaro:
                - job-build
                - job-cancel
                - job-configure
    parameters:
        - string:
            name: MANIFEST_BRANCH
            default: 'morty'
        - string:
            name: DISTRO
            default: 'rpb-wayland'
        - string:
            name: image_type
            default: 'rpb-westonchromium-image'
    disabled: false
    node: lhg
    display-name: 'LHG rpb-based build'
    axes:
        - axis:
            type: slave
            name: label
            values:
                - lhg
        - axis:
            type: user-defined
            name: MACHINE
            values:
                - dragonboard-410c
                - hikey
                - am57xx-evm
    execution-strategy:
        sequential: true
    wrappers:
        - timestamps
        - matrix-tie-parent:
            node: lhg
    builders:
        - shell:
            !include-raw: lhg-oe-build/builders.sh
        - inject:
            properties-file: post_build_lava_parameters
        - linaro-publish-token
        - shell: |
            #!/bin/bash

            # Publish
            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 \
              --server ${PUBLISH_SERVER} \
              --link-latest \
              ${DEPLOY_DIR_IMAGE}/ \
              openembedded/pre-built/lhg/${MANIFEST_BRANCH}/${MACHINE}/${DISTRO}/${BUILD_NUMBER}
    publishers:
        - archive:
            artifacts: 'out/*'
        - email:
            recipients: 'andrey.konovalov@linaro.org'