aboutsummaryrefslogtreecommitdiff
path: root/build-ofp-nginx-deb.yaml
blob: 07cba051da17d0bf0e3301aa37ad28b8af979509 (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
- job:
    name: build-ofp-nginx-deb
    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:
            num-to-keep: 30
            days-to-keep: 30
            artifact-num-to-keep: 1
    disabled: false
    node: docker-jessie-arm64
    display-name: 'Build Debian source for NGINX OpenFastPath fork'
    wrappers:
        - timestamps
        - timeout:
            timeout: 20
    builders:
        - shell: |
            #!/bin/bash

            set -ex

            wget -qO - http://deb.opendataplane.org/odp.key | sudo apt-key add -
            echo 'deb http://deb.opendataplane.org/ jessie main' | sudo tee /etc/apt/sources.list.d/odp.list

            sudo apt-get -q=2 update
            sudo apt-get -q=2 -y --no-install-recommends install debhelper devscripts

            source='http://people.linaro.org/~fathi.boudra/repo/nginx_1.9.10-1~linaro1.dsc'
            dget -du ${source}

            cat > ${WORKSPACE}/build-package.properties <<EOF
            codename=jessie
            source=${source}
            repo=odp-staging
            EOF
    publishers:
        - archive:
            artifacts: '*.dsc, *.gz, *.xz'
        - trigger-parameterized-builds:
            - project: build-package
              property-file: build-package.properties
              condition: SUCCESS
        - email:
            recipients: 'fathi.boudra@linaro.org'