aboutsummaryrefslogtreecommitdiff
path: root/build-package.yaml
blob: 8f355d01a7bb5a16d496182250cc0cc79e021caf (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
- job:
    name: build-package
    description: See https://wiki.linaro.org/Platform/Systems/Repository
    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
    parameters:
        - string:
            name: codename
            default: 'jessie'
            description: 'distribution codename targeted: jessie or xenial'
        - string:
            name: source
            description: 'dsc source url or filename'
        - string:
            name: repo
            description: 'repository to upload to'
            default: 'linaro-staging'
        - bool:
            name: appendversion
            description: 'append version with linaro$dist'
            default: 'true'
        - bool:
            name: backport
            description: 'mark as backport'
            default: 'false'
    axes:
        - axis:
            type: slave
            name: label
            values:
                - docker-jessie-amd64
                - docker-jessie-arm64
    disabled: true
    node: master
    display-name: 'Build package'
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}-${ENV,var="codename"}: ${ENV,var="source"}'
    builders:
        - shell:
            !include-raw: build-package/builders.sh
    publishers:
        - copy-to-master:
            includes:
                - '*.changes, *.dsc, *.gz, *.bz2, *.xz, *.deb, *.udeb, *.buildinfo, repo.parameters'
        - trigger-parameterized-builds:
            - project: post-build-repo
              property-file: "label/docker-${codename}-arm64/repo.parameters"
            - project: post-build-repo
              property-file: "label/docker-${codename}-armhf/repo.parameters"
            - project: post-build-repo
              property-file: "label/docker-${codename}-amd64/repo.parameters"
        - email-ext:
            recipients: '$DEFAULT_RECIPIENTS, packages@lists.linaro.org'
            attach-build-log: true
            failure: true
            still-failing: true
            subject: 'build-package: ${ENV,var="source"} failed'
            matrix-trigger: only-configurations
            body: |
                Build ${BUILD_NUMBER} for ${ENV,var="source"} failed on ${ENV,var="codename"}
                Build Log: ${BUILD_URL}/consoleText
                Build URL: ${BUILD_URL}
            send-to:
                - requester
        - email-ext:
            recipients: packages@lists.linaro.org
            attach-build-log: true
            success: true
            subject: 'build-package: ${ENV,var="source"} ${BUILD_STATUS}'
            matrix-trigger: only-parent
            body: |
                Build ${BUILD_NUMBER} for ${ENV,var="source"} ${BUILD_STATUS} on ${ENV,var="codename"}
                Build Log: ${BUILD_URL}/consoleText
                Build URL: ${BUILD_URL}