aboutsummaryrefslogtreecommitdiff
path: root/linaro-art-stable-build-ARTVixlTest.yaml
blob: 25dc0adc34b31d764423cd1325f8423eea62023f (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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
- scm:
    name: art
    scm:
        - git:
            url: ssh://git@dev-private-git.linaro.org/linaro-art/platform/art.git
            branches:
                - origin/linaro-stable
            credentials-id: '768c1ba1-6052-4b97-a531-7e4fabda6979'
            skip-tag: true
            shallow-clone: true
            wipe-workspace: false
- scm:
    name: build
    scm:
        - git:
            url: ssh://git@dev-private-git.linaro.org/linaro-art/platform/build.git
            branches:
                - origin/linaro-stable
            credentials-id: '768c1ba1-6052-4b97-a531-7e4fabda6979'
            skip-tag: true
            shallow-clone: true
            wipe-workspace: false
- scm:
    name: vixl
    scm:
        - git:
            url: ssh://git@dev-private-git.linaro.org/linaro-art/platform/external/vixl.git
            branches:
                - origin/linaro-stable
            credentials-id: '768c1ba1-6052-4b97-a531-7e4fabda6979'
            skip-tag: true
            shallow-clone: true
            wipe-workspace: false
- job:
    name: linaro-art-stable-build-ARTVixlTest
    project-type: freestyle
    defaults: global
    description: >
      Runs the
      <a href="https://android-git.linaro.org/linaro-art/art-build-scripts.git/tree/tests/test_art_vixl.sh">Vixl Tests</a>
      on the stable branch.<br>

      The git revisions all track the linaro-stable branch for the following projects (in order):<br>
        - art<br>
        - build<br>
        - external/vixl
    properties:
        - authorization:
            anonymous:
                - job-discover
            linaro-android-builders:
                - job-read
                - job-extended-read
                - job-workspace
            linaro-art:
                - job-build
                - job-read
                - job-extended-read
                - job-workspace
        - build-discarder:
            days-to-keep: 60
            num-to-keep: 60
    parameters:
        - string:
            name: BUILD_CONFIG_REPO
            default: 'git://android-git.linaro.org/android-build-configs.git'
        - string:
            name: BUILD_CONFIG_BRANCH
            default: 'master'
        - string:
            name: BUILD_CONFIG_FILENAME
            default: 'linaro-art-stable'
    disabled: true
    node: docker-utopic-art
    display-name: 'Stable: VIXL Test'
    concurrent: true
    scm:
        - art
        - build
        - vixl
    triggers:
        - gerrit:
            server-name: dev-private-review.linaro.org
            override-votes: true
            gerrit-build-successful-verified-value: 1
            gerrit-build-failed-verified-value: -1
            trigger-on:
                - patchset-created-event
            projects:
                - project-compare-type: 'PLAIN'
                  project-pattern: 'linaro-art/platform/build'
                  branches:
                      - branch-pattern: 'linaro-stable'
                - project-compare-type: 'PLAIN'
                  project-pattern: 'linaro-art/platform/art'
                  branches:
                      - branch-pattern: 'linaro-stable'
                - project-compare-type: 'PLAIN'
                  project-pattern: 'linaro-art/platform/external/vixl'
                  branches:
                      - branch-pattern: 'linaro-stable'
    wrappers:
        - timestamps
        - timeout:
            timeout: 500
        - ssh-agent-credentials:
                users:
                    - '768c1ba1-6052-4b97-a531-7e4fabda6979'
    builders:
        - shell: |
            CI_MAIL_RECIPIENTS="${GERRIT_CHANGE_OWNER_EMAIL},${GERRIT_EVENT_ACCOUNT_EMAIL}"
            CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},vishal.bhoj@linaro.org"
            CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},daniel.diaz@linaro.org"
            CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},julien.duraj@linaro.org"
            echo "CI_MAIL_RECIPIENTS=${CI_MAIL_RECIPIENTS}" > env_var_parameters
        - inject:
            properties-file: env_var_parameters
        - shell: |
            #!/bin/bash -xe

            # Some Docker instances mount ${HOME}/.ssh/config from the host.
            mv ${HOME}/.ssh{,.not}
            mkdir -p "${HOME}/bin"
            export PATH="${HOME}/bin:${PATH}"

            # Build scripts
            ANDROID_BUILD_DIR="${HOME}/srv/${JOB_NAME}/android"
            ART_BUILD_SCRIPTS_DIR="${WORKSPACE}/art-build-scripts"
            git clone https://android-git.linaro.org/git/linaro-art/art-build-scripts.git ${ART_BUILD_SCRIPTS_DIR}

            # clang-format-3.6
            wget -q http://mirrors.kernel.org/ubuntu/pool/universe/l/llvm-toolchain-3.6/clang-format-3.6_3.6-2ubuntu1~trusty1_amd64.deb \
              http://mirrors.kernel.org/ubuntu/pool/main/l/llvm-toolchain-3.6/libllvm3.6_3.6-2ubuntu1~trusty1_amd64.deb
            sudo dpkg -i clang-format-3.6_3.6-2ubuntu1~trusty1_amd64.deb libllvm3.6_3.6-2ubuntu1~trusty1_amd64.deb

            cd ${ART_BUILD_SCRIPTS_DIR}/jenkins
            ./setup_host.sh
            ./setup_android.sh

            cd ${ANDROID_BUILD_DIR}
            perl ${ART_BUILD_SCRIPTS_DIR}/jenkins/test_launcher.pl \
              ${ART_BUILD_SCRIPTS_DIR}/tests/test_art_vixl.sh
    publishers:
        - email-ext:
            recipients: '${CI_MAIL_RECIPIENTS}'
            content-type: text
            body: |
                Build Triggered by: ${GERRIT_CHANGE_SUBJECT}: ${GERRIT_CHANGE_URL}
                Build URL: ${PROJECT_URL}${BUILD_NUMBER}/
                Full log: ${PROJECT_URL}${BUILD_NUMBER}/consoleText
                Parsed warnings/errors: ${PROJECT_URL}${BUILD_NUMBER}/parsed_console

                Errors:
                ${BUILD_LOG_REGEX, regex=".*ERROR:.* ", linesBefore=0, linesAfter=0, showTruncatedLines=false}
        - archive:
            artifacts: '*.txt, *.xml'
        - logparser:
            parse-rules: '/var/lib/jenkins/userContent/android-art.parse'
            unstable-on-warning: false
            fail-on-error: false
        - groovy-postbuild:
            script:
              !include-raw:
                - linaro-art/global.groovy
        - plot:
            - title: 'Sync Time'
              group: 'Time Measurements'
              yaxis: 'Seconds'
              style: line
              series:
                  - file: time_repo.txt
                    format: properties
            - title: 'Test Time'
              group: 'Time Measurements'
              yaxis: 'Seconds'
              style: line
              series:
                  - file: time_test.txt
                    format: properties