diff options
author | Daniel Díaz <daniel.diaz@linaro.org> | 2016-02-26 15:43:25 -0600 |
---|---|---|
committer | Daniel Díaz <daniel.diaz@linaro.org> | 2016-04-28 20:58:27 -0500 |
commit | de264d6debd0c7a13b665c665890b07d099f394a (patch) | |
tree | d23e5fbd9fa58995b9364d8c5fbf65c5ee6e147f /art-tip-build-hosttest.yaml | |
parent | 3e717246c41512af2dbb6d10938e7a10babeb2c2 (diff) |
art: Add tip-build-hosttest.
Change-Id: I178b05beec91de2f3d509aa7bb88f12e283dfcd0
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Diffstat (limited to 'art-tip-build-hosttest.yaml')
-rw-r--r-- | art-tip-build-hosttest.yaml | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/art-tip-build-hosttest.yaml b/art-tip-build-hosttest.yaml new file mode 100644 index 0000000000..4a5161bceb --- /dev/null +++ b/art-tip-build-hosttest.yaml @@ -0,0 +1,132 @@ +- job: + name: art-tip-build-hosttest + 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 - Test Host' + concurrent: true + scm: + - git: + url: ssh://git@dev-private-git.linaro.org/linaro-art/platform/art.git + credentials-id: 'git' + branches: + - '*/master' + skip-tag: true + shallow-clone: true + triggers: + - pollscm: 'H/5 * * * *' + - gerrit: + server-name: 'dev-private-review.linaro.org' + trigger-on: + - patchset-created-event + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'linaro-art/platform/build' + branches: + - branch-pattern: 'master' + - project-compare-type: 'PLAIN' + project-pattern: 'linaro-art/platform/art' + branches: + - branch-pattern: 'master' + - project-compare-type: 'PLAIN' + project-pattern: 'linaro-art/platform/external/vixl' + branches: + - branch-pattern: 'master' + wrappers: + - timestamps + - timeout: + timeout: 500 + builders: + - shell: | + #!/bin/bash + + # 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} + ./setup_jenkins_host.sh + ./setup_android.sh + + cd ${ANDROID_BUILD_DIR} + ${ART_BUILD_SCRIPTS_DIR}/test_art_host.sh + + echo "Build finished" + publishers: + - archive: + artifacts: '*.txt, *.xml' + - logparser: + parse-rules: 'Android-ART Build' + 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") + } + - junit: + results: 'test-art-host/*.xml' + health-scale-factor: 5 + keep-long-stdio: false + - naginator: + rerun-unstable-builds: true + max-failed-builds: 1 |