aboutsummaryrefslogtreecommitdiff
path: root/bridge-nfsroot.yaml
blob: 9c05474eeb6fd342003c8e667d44134bb8e837dd (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
- job:
    name: bridge-nfsroot
    project-type: freestyle
    defaults: global
    description: |
        * Create a minimal initramfs with bridge-nfsroot functionality
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
        - build-discarder:
            num-to-keep: 30
            days-to-keep: 30
    parameters:
        - string:
            name: DEB_ARCH
            default: 'armhf arm64 amd64'
    disabled: false
    node: docker-jessie-arm64
    retry-count: 3
    display-name: 'Create a minimal initramfs with bridge-nfsroot functionality'
    scm:
        - git:
            url: https://github.com/suihkulokki/bridge-nfsroot.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:
        - linaro-publish-token
        - shell: |
            #!/bin/bash

            sudo apt-get -q=2 update
            sudo apt-get install -y python-requests cpio wget

            rm -rf out && mkdir out

            set -ex

            for arch in ${DEB_ARCH}; do
              ./mkinitrd.sh ${arch}
              mv initramfs.${arch}.cpio.gz out/
            done

            # Publish to snapshots
            test -d ${HOME}/bin || mkdir ${HOME}/bin
            wget -q 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 \
              --api_version 3 \
              --link-latest \
              out components/bridge-nfsroot/${BUILD_NUMBER}
    publishers:
        - email:
            recipients: 'anders.roxell@linaro.org fathi.boudra@linaro.org'