aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-debian-images-dragonboard820c.yaml
blob: 2a478207d64239f32d84d348d374fe433ed2edd3 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
- job:
    name: lt-qcom-debian-images-dragonboard820c
    project-type: freestyle
    defaults: global
    logrotate:
        daysToKeep: 30
        numToKeep: 30
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
                - job-workspace
            linaro-landing-team-qualcomm-personnel:
                - job-build
                - job-cancel
    parameters:
        - string:
            name: VENDOR
            default: 'linaro'
        - string:
            name: OS_FLAVOUR
            default: 'stretch'
        - string:
            name: LINARO_OVERLAY
            default: 'linaro-overlay-stretch/Debian_9.0'
        - string:
            name: PLATFORM_NAME
            default: 'qcom-snapdragon-arm64'
        - string:
            name: ROOTFS
            default: 'developer,arm64,1800M'
        - string:
            name: ROOTFS_PARTLABEL
            default: 'userdata'
        - string:
            name: DTBS
            default: 'msm8996-mtp.dtb apq8096-db820c.dtb'
        - string:
            name: SERIAL_CONSOLE
            default: 'ttyMSM0'
        - string:
            name: KERNEL_BRANCH
            default: 'release/db820c/qcomlt-4.11'
        - string:
            name: BOOTIMG_PAGESIZE
            default: '4096'
        - string:
            name: EXTRA_PACKAGES
            default: 'firmware-atheros'
    disabled: false
    node: docker-jessie-amd64
    display-name: 'Qualcomm Debian based images for Snapdragon 820'
    scm:
        - git:
            url: https://git.linaro.org/landing-teams/working/qualcomm/kernel.git
            refspec: +refs/heads/${KERNEL_BRANCH}:refs/remotes/origin/${KERNEL_BRANCH}
            name: origin
            branches:
                - refs/heads/${KERNEL_BRANCH}
            skip-tag: true
            shallow-clone: true
            wipe-workspace: false
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
    builders:
        - shell:
            !include-raw: lt-qcom-debian-images/builders-arm64.sh
        - linaro-publish-token:
            host: builds.96boards.org
        - shell: |
            #!/bin/bash
            set -ex
            trap cleanup_exit INT TERM EXIT
            cleanup_exit()
            {
                # cleanup here, only in case of error in this script
                # normal cleanup deferred to later
                [ $? = 0 ] && exit;
                sudo git clean -fdxq
            }

            # Create MD5SUMS file
            (cd out && md5sum * > MD5SUMS.txt)

            wget -q ${BUILD_URL}consoleText -O out/build-log-${JOB_NAME}-${BUILD_NUMBER}.txt

            # Publish to snapshots
            test -d ${HOME}/bin || mkdir ${HOME}/bin
            wget https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
            time python ${HOME}/bin/linaro-cp.py \
                 --server ${PUBLISH_SERVER} \
                 --link-latest \
                 out snapshots/dragonboard820c/${VENDOR}/debian/${BUILD_NUMBER}
    publishers:
        - groovy-postbuild:
            script: |
                def build_number = manager.build.number
                def vendor = manager.build.buildVariables.get('VENDOR')
                def url = "http://builds.96boards.org/snapshots/dragonboard820c/${vendor}/debian/${build_number}/"
                def desc = "&nbsp;<a href='${url}'>Build location<t/a>"

                if (manager.build.result == hudson.model.Result.SUCCESS) {
                  manager.build.setDescription(desc)
                }
        - email:
            recipients: 'fathi.boudra@linaro.org'
        - email-ext:
            recipients: 'nicolas.dechesne@linaro.org qa-team@linaro.org anibal.limon@linaro.org'
            always: true
        - ircbot:
            channels:
                - name: '#linaro-lt-qcomm'
                  password: ${LT_QCOM_KEY}