diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2016-06-01 12:45:23 +0530 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-06-01 10:05:08 +0000 |
commit | 741aa86b7bed3edf09dc462454a1ea57425101b0 (patch) | |
tree | 7429f31fa85399a5231e39a80d4db8097c54066d /linaro-art-tip-build-ARTHostTest.yaml | |
parent | 6c6264f525cbb8e5dd5faf7918c090f08183c196 (diff) |
art: rename art tip and stable host test
Change-Id: I94116f56d3de93151aca3301492d0f3c599a1040
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'linaro-art-tip-build-ARTHostTest.yaml')
-rw-r--r-- | linaro-art-tip-build-ARTHostTest.yaml | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/linaro-art-tip-build-ARTHostTest.yaml b/linaro-art-tip-build-ARTHostTest.yaml new file mode 100644 index 0000000000..165e8cbc22 --- /dev/null +++ b/linaro-art-tip-build-ARTHostTest.yaml @@ -0,0 +1,130 @@ +- job: + name: linaro-art-tip-build-ARTHostTest + project-type: freestyle + defaults: global + 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-tip-aosp_arm64' + - string: + name: CURRENT_FAILING_ART_TESTS + default: + - password: + name: PRIVATE_KEY + default: ${PRIVATE_KEY} + disabled: false + node: docker-utopic-art + display-name: 'ART - Tip - Host Test' + concurrent: true + triggers: + - gerrit: + server-name: 'dev-private-review.linaro.org' + trigger-on: + - comment-added-contains-event: + comment-contains-value: '.*IncludeAllTest.*' + - gerrit: + server-name: 'dev-private-review.linaro.org' + trigger-on: + - change-merged-event + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'linaro-art/platform/art' + branches: + - branch-pattern: 'master' + wrappers: + - timestamps + - timeout: + timeout: 500 + builders: + - shell: | + #!/bin/bash -xe + + # 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} + + # Private key + wget https://git.linaro.org/people/daniel.diaz/ci/misc-utils.git/blob_plain/HEAD:/add-private-key.sh + source add-private-key.sh + + 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}/test_art_host.sh + publishers: + - 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: | + import hudson.model.* + def currentBuild = Thread.currentThread().executable + def description = "" + def matcher = manager.getLogMatcher(".*repo sync failed.*") + if ( matcher?.matches()) { + manager.addShortText("repo sync failed") + } + matcher = manager.getLogMatcher(".*patch merge failed.*") + if ( matcher?.matches()) { + manager.addShortText("merge failed") + } + + matcher = manager.getLogMatcher(".* tests have failed") + if (matcher?.matches()) { + def test =matcher.group(0).split(" ") + manager.listener.logger.println test.length + i=0 + while( i<test.length-3) { + description+="${test[i]} failed<br>" + i++; + } + currentBuild.setDescription(description) + manager.addShortText("Tests failed") + } + - 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 + - naginator: + rerun-unstable-builds: true + max-failed-builds: 1 |