aboutsummaryrefslogtreecommitdiff
path: root/build-odp-deb.yaml
blob: eb1daffd050722ce23784033b8fc949ecc562db6 (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
- job:
    name: build-odp-deb
    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-jessie
    display-name: 'Build debian source for opendataplane.org'
    scm:
        - git:
            url: https://git.linaro.org/lng/odp.git
            refspec: +refs/heads/master:refs/remotes/origin/master
            name: origin
            branches:
                - refs/heads/master
            basedir: odp
            skip-tag: true
            shallow-clone: false
            wipe-workspace: false
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
    builders:
        - shell: |
            #!/bin/bash

            set -e

            sudo apt-get update
            sudo apt-get install --no-install-recommends -q -y libssl-dev doxygen imagemagick libmagickcore-extra asciidoc mscgen texlive-latex-recommended ghostscript

            cd odp; bash -x scripts/builddeb

            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'