aboutsummaryrefslogtreecommitdiff
path: root/build-package-obs.yaml
blob: 0f8b09594a1cda4b88da8f44bb7c813b97bdf61c (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
- job:
    name: build-package-obs
    description: See https://wiki.linaro.org/Platform/Systems/OBS
    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: 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: 'false'
        - bool:
            name: backport
            description: 'mark as backport'
            default: 'false'
    disabled: false
    node: docker-jessie-amd64
    display-name: 'Build package on OBS'
    wrappers:
        - timestamps
        - credentials-binding:
            - text:
                credential-id: OSCRC_USER
                variable: OSCRC_USER
        - credentials-binding:
            - text:
                credential-id: OSCRC_PASS
                variable: OSCRC_PASS
        - build-name:
            name: '#${BUILD_NUMBER}: ${ENV,var="source"}'
    builders:
        - shell:
            !include-raw: build-package/builder-obs.sh
    publishers:
        - 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
                Build Log: ${BUILD_URL}/consoleText
                Build URL: ${BUILD_URL}
            send-to:
                - requester