aboutsummaryrefslogtreecommitdiff
path: root/ubuntu-arm64-rootfs.yaml
blob: 93feb2c251309f2e58e6cfbbff35d1a27dc572ae (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
- job:
    name: ubuntu-arm64-rootfs
    project-type: matrix
    defaults: global
    logrotate:
        daysToKeep: 30
        numToKeep: 30
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
    disabled: false
    node: build
    child-workspace: .
    display-name: 'Linaro Ubuntu arm64 rootfs'
    scm:
        - git:
            url: git://git.linaro.org/ci/ubuntu-build-service.git
            refspec: +refs/heads/master:refs/remotes/origin/master
            name: origin
            branches: 
                - origin/master
            skip-tag: true
            shallow-clone: true
            clean: true
            wipe-workspace: false
    axes:
        - axis:
            type: slave
            name: label
            values:
                - build
        - axis:
            type: user-defined
            name: rootfs
            values:
                - nano
                - developer
    execution-strategy:
        sequential: true
    wrappers:
        - timestamps
        - matrix-tie-parent:
            node: build
        - timeout:
            timeout: 120
    builders:
        - shell: |
            #!/bin/bash

            trap cleanup_exit INT TERM EXIT

            cleanup_exit()
            {
              cd ${WORKSPACE}
              sudo umount builddir
            }

            dpkg -s qemu-user-static |grep '^Version'
            dpkg -s live-build |grep '^Version'

            rm -f linaro-utopic-${rootfs}-* *.txt

            test -d builddir || mkdir builddir
            sudo mount -t tmpfs -o size=6G tmpfs builddir
            cp -a utopic-arm64-${rootfs} builddir/
            cd builddir/utopic-arm64-${rootfs}
            ./configure
            make
            sudo mv linaro-utopic-* ${WORKSPACE}

            cat << EOF > ${WORKSPACE}/BUILD-INFO.txt
            Format-Version: 0.5

            Files-Pattern: *
            License-Type: open
            EOF
        - ssh:
            site: 'snapshots.linaro.org'
            target: '${JOB_NAME}/${BUILD_NUMBER}/ubuntu/images/${rootfs}-arm64/${BUILD_NUMBER}'
            source: 'linaro-utopic-${rootfs}-*, *.txt'
            timeout: 120000
            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:
        - archive:
            artifacts: 'linaro-utopic-*.tar.gz'
            latest-only: true
        - email:
            recipients: 'fathi.boudra@linaro.org riku.voipio@linaro.org'