aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-debian-images-dragonboard820c.yaml
blob: 91fdf50b03cdd469252b65add22a699564730a37 (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
- job:
    name: lt-qcom-debian-images-dragonboard820c
    project-type: freestyle
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
                - job-workspace
            linaro-landing-team-qualcomm-personnel:
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 30
    parameters:
        - string:
            name: VENDOR
            default: 'linaro'
        - string:
            name: OS_FLAVOUR
            default: 'buster'
        - string:
            name: PLATFORM_NAME
            default: 'dragonboard-820c'
        - string:
            name: FAI_BOARD_CLASS
            default: 'DB820C'
        - string:
            name: ROOTFS
            default: 'developer,1800M alip,3G'
        - string:
            name: ROOTFS_PARTLABEL
            default: 'userdata'
        - string:
            name: DTBS
            default: 'qcom/apq8096-db820c.dtb'
        - string:
            name: SERIAL_CONSOLE
            default: 'ttyMSM0'
        - string:
            name: BOOTIMG_PAGESIZE
            default: '4096'
    disabled: false
    node: docker-stretch-arm64
    display-name: 'Qualcomm Debian based images for Snapdragon 820'
    scm:
        - git:
            url: https://git.linaro.org/ci/fai.git
            refspec: +refs/heads/master:refs/remotes/origin/master
            name: origin
            branches:
                - refs/heads/master
            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-fai.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}