aboutsummaryrefslogtreecommitdiff
path: root/build-kvmtool.yaml
blob: 995dd7ed2e0ff672f252439c45b99a20f888f050 (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
- job:
    name: build-kvmtool
    project-type: freestyle
    defaults: global
    logrotate:
        daysToKeep: 30
        numToKeep: 30
        artifactNumToKeep: 1
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
    disabled: false
    node: docker-utopic
    display-name: 'KVMtool CI loop'
    scm:
        - git:
            url: https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git
            refspec: +refs/heads/master:refs/remotes/origin/master
            name: origin
            branches:
                - refs/heads/master
            skip-tag: true
            shallow-clone: false
            clean:
                after: true
            wipe-workspace: false
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
    builders:
        - shell: |
            #!/bin/bash

            set -e

            export upstream_repo=git://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git
            export upstream_source=kvmtool
            export packaging_repo=git://anonscm.debian.org/collab-maint/kvmtool.git
            export packaging_dir=kvmtool-debian

            wget https://git.linaro.org/ci/ubuntu-packaging-tools.git/blob_plain/HEAD:/jenkins-makesources

            bash -x ./jenkins-makesources

            cat > kvmtool-params <<EOF
            source=$BUILD_URL/artifact/`cat kvmtool.dsc`
            EOF
    publishers:
        - archive:
            artifacts: '*.changes, *.dsc, *.gz, *.xz'
        - trigger-parameterized-builds:
            - project: build-all-packages
              property-file: kvmtool-params
              condition: SUCCESS
        - email:
            recipients: 'riku.voipio@linaro.org'