aboutsummaryrefslogtreecommitdiff
path: root/lite-gateway-ubuntu-core.yaml
blob: bc62f76e261766ecf09fbc2023649061e89163d9 (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
- job:
    name: lite-gateway-ubuntu-core
    project-type: freestyle
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 30
    parameters:
        - string:
            name: MACHINES
            default: 'dragonboard-410c pi-2 pi-3 hummingboard'
    disabled: false
    node: docker-xenial-amd64
    display-name: 'LITE - Ubuntu Core gateway image'
    wrappers:
        - timestamps
        - copy-to-slave:
            includes:
                - snap.tar
            relative-to: 'somewhereElse'
    builders:
        - shell:
            !include-raw: lite-gateway-ubuntu-core/builders.sh
        - linaro-publish-token
        - shell: |
            #!/bin/bash -e

            mkdir out
            for machine in ${MACHINES}; do
                pxz ubuntu-core-16-${machine}-lite.img
                mv ubuntu-core-16-${machine}-lite.img.xz out/
            done

            # 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 \
              --api_version 3 \
              --link-latest \
              out ubuntu/images/lite-gateway/${BUILD_NUMBER}

            rm -rf out
    publishers:
        - email:
            recipients: 'fathi.boudra@linaro.org madper.xie@linaro.org'