aboutsummaryrefslogtreecommitdiff
path: root/odp-diff-api-publish.yaml
blob: d70a1c28296a0bd34e50941a32da08fda125db34 (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
- job:
    name: odp-diff-api-publish
    project-type: matrix
    defaults: global
    description: |
        * Diff ODP API between different implementations and the released version<br>
        * (i.e., ODPs master branch). The diff is the doxygen documentation of the spec files.<br>
    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
    disabled: false
    node: master
    child-workspace: .
    display-name: 'ODP diff API publish'
    triggers:
        - timed: '@daily'
    axes:
        - axis:
            type: user-defined
            name: platform_type
            values:
                - generic
                - dpdk
        - axis:
            type: slave
            name: label
            values:
                - docker-jessie-amd64
    wrappers:
        - timestamps
        - matrix-tie-parent:
            node: master
        - timeout:
            timeout: 60
    builders:
        - shell: |
            #!/bin/bash

            set -ex

            rm -rf check-odp
            git clone --depth 1 git://git.linaro.org/lng/check-odp.git

            ./check-odp/pre-install.sh

            case "${platform_type}" in
              dpdk)
                mkdir -p ${HOME}/bin
                cp check-odp/helper/ci-uname ${HOME}/bin/uname
                export PATH=${HOME}/bin:${PATH}
                export COMPARE_URL=git://git.linaro.org/lng/odp-dpdk.git
                export COMPARE_BRANCH=master
                ;;
            esac

            bash -x ${WORKSPACE}/check-odp/diff-api.sh |tee
        - ssh:
            site: 'docs.opendataplane.org'
            target: 'incoming/odp-diff-api-publish/${platform_type}/${BUILD_NUMBER}'
            source: 'check-odp/publishing/**'
            command: |
                cd /srv/docs.opendataplane.org
                mkdir -p snapshots/odp-diff-api-publish/${platform_type}/${BUILD_NUMBER}
                cp -a incoming/odp-diff-api-publish/${platform_type}/${BUILD_NUMBER}/* snapshots/odp-diff-api-publish/${platform_type}/${BUILD_NUMBER}
                rm -rf $(pwd)/snapshots/odp-diff-api-publish/${platform_type}/latest
                ln -sf $(pwd)/snapshots/odp-diff-api-publish/${platform_type}/${BUILD_NUMBER} snapshots/odp-diff-api-publish/${platform_type}/latest
                rm -rf incoming/odp-diff-api-publish/${platform_type}/${BUILD_NUMBER}
            timeout: 120000
            remove-prefix: 'check-odp/publishing'
            always-publish-from-master: true
    publishers:
        - email:
            recipients: 'lng-ci@lists.linaro.org'