aboutsummaryrefslogtreecommitdiff
path: root/openembedded-armv7ab-pre-built-images.yaml
blob: 9d82a9f5241a5a8ec02ffd1a4c8fc0d6a832fbd5 (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
- job:
    name: openembedded-armv7ab-pre-built-images
    project-type: matrix
    defaults: global
    logrotate:
        daysToKeep: 30
        numToKeep: 30
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
    disabled: false
    node: precise_hwpack_cloud
    child-workspace: .
    display-name: 'OpenEmbedded pre-built images (ARMv7-A big-endian)'
    axes:
        - axis:
            type: user-defined
            name: hwpack
            values:
                - arndale-be
        - axis:
            type: slave
            name: label
            values:
                - precise_hwpack_cloud
    execution-strategy:
        sequential: true
    wrappers:
        - timestamps
        - matrix-tie-parent:
            node: precise_hwpack_cloud
    builders:
        - shell: |
            #!/bin/bash

            set -x

            rm -rf daily-prebuilt-images
            git clone git://git.linaro.org/ci/daily-prebuilt-images.git

            case "${hwpack}" in
              arndale-be)
                DELETEDIR=1 ./daily-prebuilt-images/build-images -w ${hwpack} -p openembedded -b minimal-armv7ab-gcc-4.9
                ;;
            esac
        - ssh:
            site: 'snapshots.linaro.org'
            target: '${JOB_NAME}/${BUILD_NUMBER}/openembedded'
            source: 'out/pre-built/**'
            timeout: 120000
            remove-prefix: 'out'
            always-publish-from-master: true
        - ssh:
            site: 'snapshots.linaro.org file-move'
            target: ''
            source: ''
            command: 'reshuffle-files -t prebuilt -j ${JOB_NAME} -n ${BUILD_NUMBER}'
            timeout: 120000
            always-publish-from-master: true
        - shell: |
            #!/bin/bash

            set -x

            case "${hwpack}" in
              arndale-be)
                export DEVICE_TYPE=arndale
                export BUNDLE_STREAM_NAME="/public/team/linaro/pre-built-arndale-be/"
                ;;
            esac

            export HWPACK_JOB_NAME=${JOB_NAME}
            export ROOTFS_TYPE=minimal-armv7ab-gcc-4.9
            export HWPACK_FILE_NAME=`find out/pre-built -type f -name "${hwpack}*_minimal-armv7ab-gcc-4.9_*.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 daily-prebuilt-images/lava-submit.py
    publishers:
        - email-ext:
            recipients: 'fathi.boudra@linaro.org, koen.kooi@linaro.org'
            attach-build-log: true
            matrix-trigger: both