aboutsummaryrefslogtreecommitdiff
path: root/ubuntu-armhf-pre-built-images.yaml
blob: d305c85423ce54397a097f4dcd915131bdf82eba (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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
- job:
    name: ubuntu-armhf-pre-built-images
    project-type: matrix
    defaults: global
    logrotate:
        daysToKeep: 30
        numToKeep: 30
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-build
                - job-cancel
    disabled: false
    node: build
    display-name: 'Linaro Ubuntu pre-built images (armhf)'
    scm:
        - git:
            url: git://git.linaro.org/ci/pre-built-images.git
            refspec: +refs/heads/master:refs/remotes/origin/master
            name: origin
            branches: 
                - refs/heads/master
            skip-tag: true
            shallow-clone: true
            wipe-workspace: false
    axes:
        - axis:
            type: user-defined
            name: hwpack
            values:
                - arndale
                - lsk-vexpress
                - panda
                - vexpress
        - axis:
            type: slave
            name: label
            values:
                - docker-utopic-amd64
    execution-strategy:
        sequential: true
    wrappers:
        - timestamps
        - matrix-tie-parent:
            node: build
    builders:
        - copyartifact:
            project: ubuntu-armhf-rootfs
            filter: 'out/linaro-vivid-*.tar.gz'
            target: artifacts
        - copyartifact:
            project: ubuntu-armhf-hwpacks/hwpack=${hwpack},label=build
            filter: 'out/hwpack_linaro-${hwpack}*.tar.gz'
            target: artifacts
            parameter-filters: 'hwpack=${hwpack},label=build'
        - shell: |
            #!/bin/bash

            test -d out || mkdir out
            sudo mount -t tmpfs -o size=6G tmpfs out

            case "${hwpack}" in
              snowball)
                # XXX Hook to accept ST-Ericsson Limited License Agreement
                export LIT="lp:~fboudra/linaro-image-tools/ste-license-agreement"
                ;;
              lsk-vexpress|vexpress)
                export BOOTLOADER="uefi"
                ;;
            esac

            export PYTHONUNBUFFERED=1
            export HWPACK_JOB_NAME="${JOB_NAME}"
            export TMPDIR="${WORKSPACE}/out"

            case "${hwpack}" in
              arndale|arndale-octa|highbank|midway|lsk-vexpress|panda|snowball|vexpress)
                export ROOTFS_TYPE="developer nano"
                python pre-built-images.py ${hwpack} -b developer -b nano
                ;;
            esac
        - ssh:
            site: 'snapshots.linaro.org'
            target: '${JOB_NAME}/${BUILD_NUMBER}'
            source: 'out/**/*.txt, out/**/*.img.gz*'
            timeout: 120000
            remove-prefix: 'out'
            always-publish-from-master: true
        - ssh:
            site: 'snapshots.linaro.org file-move'
            target: ''
            source: ''
            command: 'reshuffle-files --job-type prebuilt --job-name ${JOB_NAME} --build-num ${BUILD_NUMBER}'
            timeout: 120000
            always-publish-from-master: true
        - shell: |
            #!/bin/bash

            export PYTHONUNBUFFERED=1
            export HWPACK_JOB_NAME="${JOB_NAME}"

            case "${hwpack}" in
              arndale|arndale-octa|highbank|midway)
                export DEVICE_TYPE=${hwpack}
                ;;
              panda)
                export DEVICE_TYPE=panda-es

                export ROOTFS_TYPE=developer
                export HWPACK_FILE_NAME=`find out -type f -name '*_developer_*.img.gz' |xargs basename`
                export HWPACK_BUILD_NUMBER=`echo ${HWPACK_FILE_NAME} |cut -d'_' -f3 |cut -d'-' -f2`
                export HWPACK_BUILD_NUMBER=${HWPACK_BUILD_NUMBER%%.img.gz}
                python lava-submit.py

                export ROOTFS_TYPE=nano
                export HWPACK_FILE_NAME=`find out -type f -name '*_nano_*.img.gz' |xargs basename`
                export HWPACK_BUILD_NUMBER=`echo ${HWPACK_FILE_NAME} |cut -d'_' -f3 |cut -d'-' -f2`
                export HWPACK_BUILD_NUMBER=${HWPACK_BUILD_NUMBER%%.img.gz}
                python lava-submit.py

                export DEVICE_TYPE=panda
                ;;
              snowball)
                export DEVICE_TYPE=snowball_sd
                ;;
              lsk-vexpress)
                export DEVICE_TYPE=vexpress-a9
                ;;
              vexpress)
                export DEVICE_TYPE=vexpress-a9
                ;;
            esac

            case "${hwpack}" in
              arndale|arndale-octa|highbank|lsk-vexpress|midway|panda|snowball|vexpress)
                export ROOTFS_TYPE=developer
                export HWPACK_FILE_NAME=`find out -type f -name '*_developer_*.img.gz' |xargs basename`
                export HWPACK_BUILD_NUMBER=`echo ${HWPACK_FILE_NAME} |cut -d'_' -f3 |cut -d'-' -f2`
                export HWPACK_BUILD_NUMBER=${HWPACK_BUILD_NUMBER%%.img.gz}
                python lava-submit.py

                export ROOTFS_TYPE=nano
                export HWPACK_FILE_NAME=`find out -type f -name '*_nano_*.img.gz' |xargs basename`
                export HWPACK_BUILD_NUMBER=`echo ${HWPACK_FILE_NAME} |cut -d'_' -f3 |cut -d'-' -f2`
                export HWPACK_BUILD_NUMBER=${HWPACK_BUILD_NUMBER%%.img.gz}
                python lava-submit.py
                ;;
            esac

            sudo umount out
        - ssh:
            site: 'snapshots.linaro.org'
            target: '${JOB_NAME}/${BUILD_NUMBER}/vivid'
            source: 'out/**/*.html'
            timeout: 120000
            remove-prefix: 'out'
            always-publish-from-master: true
        - ssh:
            site: 'snapshots.linaro.org file-move'
            target: ''
            source: ''
            command: 'reshuffle-files --job-type prebuilt --job-name ${JOB_NAME} --build-num ${BUILD_NUMBER}'
            timeout: 120000
            always-publish-from-master: true
    publishers:
        - email:
            recipients: 'fathi.boudra@linaro.org riku.voipio@linaro.org'