aboutsummaryrefslogtreecommitdiff
path: root/leg-cloud-image-debian.yaml
blob: 97fe72b0e7fc2c17367a20a06c606166eaa7950c (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
- job:
    name: leg-cloud-image-debian
    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
    disabled: false
    node: docker-xenial-arm64
    display-name: 'LEG Cloud image Debian'
    wrappers:
        - timestamps
    builders:
        - shell:
            !include-raw: leg-cloud-image/debian/builders.sh
        - linaro-publish-token:
            host: builds.96boards.org
        - 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 \
              out snapshots/developer-cloud/debian/cloud-image/${BUILD_NUMBER}

            rm -rf out
    publishers:
        - email:
            recipients: 'fathi.boudra@linaro.org marcin.juszkiewicz@linaro.org'