aboutsummaryrefslogtreecommitdiff
path: root/android-chromium-clang-armv7.yaml
blob: 85a1842aae05ba4d5f38d8208f19904e278081ed (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
- job:
    name: android-chromium-clang-armv7
    project-type: freestyle
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-build
                - job-cancel
                - job-configure
        - build-discarder:
            days-to-keep: 60
            num-to-keep: 60
            artifact-num-to-keep: 1
    parameters:
        - string:
            name: ARGS
            default: 'clang_arm'
    disabled: false
    node: docker-xenial-chromium
    display-name: 'Chromium apk Built with clang for ARMv7'
    wrappers:
        - timestamps
        - timeout:
            timeout: 500
    builders:
        - linaro-publish-token
        - shell: |
            #!/bin/bash

            if [ ! -d "/home/buildslave/srv/${JOB_NAME}" ]; then
              sudo mkdir -p /home/buildslave/srv/${JOB_NAME}
              sudo chmod 777 /home/buildslave/srv/${JOB_NAME}
            fi
            cd /home/buildslave/srv/${JOB_NAME}

            rm -rf configs
            git clone https://git.linaro.org/ci/job/configs.git
            ./configs/android-chromium/chromium-build.sh

            # 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 \
              --api_version 3 \
              --link-latest \
              chromium/src/out/Default/apks \
              android/${JOB_NAME}/${BUILD_NUMBER} \
              --include "^[^/]+[._](img[^/]*|tar[^/]*|xml|sh|apk)$" \
              --include "^[BHi][^/]+txt$" \
              --include "^(MANIFEST|MD5SUMS)$"

            echo "Build finished"
    publishers:
        - archive:
            artifacts: '*.xml, *.json'
        - logparser:
            parse-rules: 'Android Build'
            unstable-on-warning: false
            fail-on-error: false
        - fingerprint:
            files: 'build/fingerprints/*'
        - email:
            recipients: 'vishal.bhoj@linaro.org fathi.boudra@linaro.org daniel.diaz@linaro.org'