aboutsummaryrefslogtreecommitdiff
path: root/lkft-hikey-android-8.1-4.14.yaml
blob: 94172f60f5f9aec1f180cd45111971bb2cc35045 (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
- job:
    name: lkft-hikey-android-8.1-4.14
    project-type: freestyle
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 30
            artifact-num-to-keep: 1
    parameters:
        - string:
            name: ANDROID_VERSION
            default: 'android-8.1.0_r29'
        - string:
            name: REFERENCE_BUILD_URL
            default: 'http://testdata.linaro.org/lkft/aosp-stable/android-8.1.0_r29/'
        - string:
            name: KERNEL_BRANCH
            default: 'android-hikey-linaro-4.14'
        - string:
            name: KERNEL_REPO
            default: 'https://android.googlesource.com/kernel/hikey-linaro'
        - string:
            name: QA_SERVER
            default: 'https://qa-reports.linaro.org'
        - string:
            name: QA_SERVER_PROJECT
            default: 'android-hikey-linaro-4.14-android-8.1'
        - string:
            name: VTS_URL
            default: 'http://testdata.linaro.org/vts/oreo-mr1-vts-release-07112018/'
        - string:
            name: CTS_URL
            default: 'http://testdata.linaro.org/cts/android-cts-8.1_r6/'
        - string:
            name: TOOLCHAIN
            default: 'clang-r328903'
        - string:
            name: CONFIG_FRAGMENTS_PATH
            default: 'android-4.14'
        - string:
            name: KERNEL_DESCRIBE
        - string:
            name: SRCREV_kernel
    disabled: false
    node: docker-xenial-aosp
    display-name: 'LKFT - AOSP Stable 4.14 (Android 8.1.0_r14)'
    scm:
        - git:
            url: ${KERNEL_REPO}
            refspec: +refs/heads/${KERNEL_BRANCH}:refs/remotes/origin/${KERNEL_BRANCH}
            name: origin
            branches:
                - origin/${KERNEL_BRANCH}
            skip-tag: true
            shallow-clone: false
            wipe-workspace: false
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
        - timeout:
            timeout: 500
        - credentials-binding:
            - text:
                credential-id: QA_REPORTS_TOKEN
                variable: QA_REPORTS_TOKEN
            - text:
                credential-id: ARTIFACTORIAL_TOKEN
                variable: ARTIFACTORIAL_TOKEN
            - text:
                credential-id: AP_SSID
                variable: AP_SSID
            - text:
                credential-id: AP_KEY
                variable: AP_KEY
    builders:
        - shell: |
            #!/bin/bash

            git config --global user.email "ci_notify@linaro.org"
            git config --global user.name "Linaro CI"
            git revert --no-edit 20ebc74d51a1542e4290abf5ac9e32b524f891d1
            git revert --no-edit d0455063e17c07841eb40b8e755f4c9241506de5

        - shell:
            !include-raw:
                - lkft/hikey-aosp/builders.sh
        - linaro-publish-token
        - shell: |
            #!/bin/bash

            wget -q https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/android-lcr/hikey/build-info/aosp-master-template.txt -O out/BUILD-INFO.txt

            # 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} \
              --build-info out/BUILD-INFO.txt \
              --link-latest \
              out/ android/lkft/${JOB_NAME}/${BUILD_NUMBER}

            PUB_DEST=android/lkft/${JOB_NAME}/${BUILD_NUMBER}
        - shell:
             !include-raw: lkft/hikey-aosp/submit_for_testing.sh
    publishers:
        - logparser:
            parse-rules: '/var/lib/jenkins/userContent/android.parse'
            unstable-on-warning: false
            fail-on-error: false
        - fingerprint:
            files: 'build/fingerprints/*'
        - groovy-postbuild:
            script:
                !include-raw: openembedded-lkft/postbuild.groovy
        - email:
            recipients: 'lkft-maintainers@lists.linaro.org'
            subject: '[CI] HiKey: ${KERNEL_BRANCH} {{SRCREV_kernel}} ${BUILD_STATUS}'
            body: |
                Build URL: ${PROJECT_URL}${BUILD_NUMBER}/
                Full log: ${PROJECT_URL}${BUILD_NUMBER}/consoleText
                Parsed warnings/errors: ${PROJECT_URL}${BUILD_NUMBER}/parsed_console
                Git branch: ${KERNEL_BRANCH}
                Git URL: ${KERNEL_REPO}
                Git commit: ${SRCREV_kernel}

                Errors:
                ${BUILD_LOG_REGEX, regex="^ERROR:.* ", linesBefore=0, linesAfter=0, showTruncatedLines=false}
            presend-script:
                !include-raw: openembedded-lkft/presend-script.groovy