aboutsummaryrefslogtreecommitdiff
path: root/linux-kvm.yaml
blob: ce3afb193cbb8068c7fdd6dae7e46792d4ee491d (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
- job:
    name: linux-kvm
    project-type: matrix
    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: true
    display-name: 'Linaro KVM image builds'
    axes:
        - axis:
            type: user-defined
            name: hwpack
            values:
                - arndale
                - juno
                - mustang
        - axis:
            type: slave
            name: label
            values:
                - docker-xenial-amd64
    triggers:
        - timed: 'H(0-30) H(9-11) * * *'
    wrappers:
        - timestamps
        - matrix-tie-parent:
            node: master
    builders:
        - linaro-publish-token
        - shell: |
            #!/bin/bash

            set -e

            rm -rf kvm-ci
            git clone git://git.linaro.org/ci/kvm-ci.git kvm-ci
            bash ./kvm-ci/jenkins-run

            # Publish
            mkdir out
            mv *.gz uImage* Image* zImage* *.dtb *.deb out/ ||true
            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/kvm/${hwpack}/${BUILD_NUMBER}
        - trigger-builds:
            - project: 'post-build-lava'
              property-file: post_build_lava_parameters
              block: true
    publishers:
        - email:
            recipients: 'riku.voipio@linaro.org'