aboutsummaryrefslogtreecommitdiff
path: root/96boards-reference-debian-installer.yaml
blob: 61e801a90c478b8b12fab82353104a718b0e6424 (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
- job:
    name: 96boards-reference-debian-installer
    project-type: freestyle
    defaults: global
    logrotate:
        daysToKeep: 30
        numToKeep: 30
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
                - job-workspace
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
    parameters:
        - string:
            name: PUB_DEST
            default: 'reference-platform/components/debian-installer/${BUILD_NUMBER}'
    disabled: false
    node: docker-stretch-arm64-leg
    display-name: 'DELETE ME'
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}'
    builders:
        - linaro-publish-token
        - shell: |
            #!/bin/bash
            set -e
            cat <<EOF >local.list
            deb http://obs.linaro.org/ERP:/18.06/Debian_9/ ./
            deb http://obs.linaro.org/ERP:/19.03/Debian_9/ ./
            EOF

            cat <<EOF > sources.list.udeb
            deb [trusted=yes] http://obs.linaro.org/ERP:/19.03/Debian_9/debian-installer ./
            deb http://deb.debian.org/debian stretch main/debian-installer
            deb http://deb.debian.org/debian stretch-backports main/debian-installer
            deb http://deb.debian.org/debian stretch non-free
            deb http://deb.debian.org/debian stretch-backports non-free
            EOF

            cat <<EOF > localudebs
            linaro-erp-udeb
            EOF

            wget -q https://git.linaro.org/ci/job/configs.git/plain/rpb-debian-installer/stable/default-preseed.cfg -O default-preseed
        - shell:
            !include-raw: rpb-debian-installer/builders.sh
        - shell: |
            #!/bin/bash
            set -e
            # Build information
            KERNEL_VERSION=`grep -a "Linux version" out/debian-installer/arm64/linux`
            cat > out/HEADER.textile << EOF

            h4. Reference Platform - Debian Installer

            Debian Installer (Stretch) produced with the Reference Platform Kernel package.

            Check "https://platforms.linaro.org/documentation/Reference-Platform/Platforms/Enterprise/Documentation/Installation/Debian/README.md":https://platforms.linaro.org/documentation/Reference-Platform/Platforms/Enterprise/Documentation/Installation/Debian/README.md for the install instructions.

            Build Description:
            * Build URL: "$BUILD_URL":$BUILD_URL
            * Debian Installer version: $DEB_INSTALLER_VERSION
            * Kernel: $KERNEL_VERSION
            EOF

            # Publish
            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 \
              --server ${PUBLISH_SERVER} \
              --link-latest \
              out ${PUB_DEST}
        - trigger-builds:
            - project: erp-test-automation-matrix
              predefined-parameters: |
                  BUILD_ENV=stable
                  BUILD_NUM=${BUILD_NUMBER}
                  BUILD_DISTRO=debian
    publishers:
        - groovy-postbuild:
            script:
                !include-raw:
                  - rpb-openembedded/postbuild.groovy
        - email:
            recipients: 'fathi.boudra@linaro.org riku.voipio@linaro.org'
        - email-ext:
            recipients: 'qa-team@linaro.org'
            always: true