aboutsummaryrefslogtreecommitdiff
path: root/build-odp-deb.yaml
blob: 250b2ebe42fa64d24e42078888dfa0257ad83b1b (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-odp-deb
    project-type: freestyle
    defaults: global
    properties:
        - build-discarder:
            num-to-keep: 30
            days-to-keep: 30
            artifact-num-to-keep: 1
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
    disabled: false
    node: docker-jessie-arm64
    display-name: 'Build debian source for opendataplane.org'
    scm:
        - git:
            url: https://git.linaro.org/lng/odp-packaging.git
            refspec: +refs/heads/master:refs/remotes/origin/master
            name: origin
            branches:
                - refs/heads/master
            basedir: odp-packaging
            skip-tag: true
            shallow-clone: false
            wipe-workspace: false
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
        - timeout:
            timeout: 20
    builders:
        - shell: |
            #!/bin/bash

            set -e

            sudo apt-get update
            sudo apt-get install --no-install-recommends -q -y libssl-dev doxygen asciidoctor mscgen dh-autoreconf graphviz libcunit1-dev libpcap-dev

            cd odp-packaging; bash -x ./build-deb-package

            cat > ${WORKSPACE}/odp-params <<EOF
            source=${BUILD_URL}/artifact/$(echo *.dsc)
            repo=odp
            EOF

            mv *.dsc *.gz *.xz ${WORKSPACE}/
    publishers:
        - archive:
            artifacts: '*.dsc, *.gz, *.xz'
        - trigger-parameterized-builds:
            - project: build-all-packages
              property-file: odp-params
              condition: SUCCESS
        - email:
            recipients: 'riku.voipio@linaro.org lng-ci@lists.linaro.org'