- 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-MicroBenchmarks project-type: freestyle defaults: global description: > Runs the Microbenchmarks Test script on the stable branch. The git revisions all track the linaro-stable branch for the following projects (in order): - art - build - 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 - copyartifact: projects: post-build-reports parameters: - string: name: ADB_VERSION default: 'adb-stable' - 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: false node: docker-utopic-art display-name: 'Stable: Benchmarks (Nexus 5X)' concurrent: true scm: - art - build - vixl triggers: - pollscm: 'H/5 * * * *' - 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: | #!/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} cd ${ART_BUILD_SCRIPTS_DIR}/jenkins # Port forwarding magic to have access to Nexus devices source /home/buildslave/srv/nexus-config export ANDROID_SERIAL=${BULLHEAD} ./setup_adb.sh ./setup_host.sh ./setup_android.sh alias python=python3 cd ${ANDROID_BUILD_DIR} perl scripts/jenkins/test_launcher.pl \ scripts/benchmarks/benchmarks_run_target.sh --default # create parameters for post-build-reports cat << EOF > ${WORKSPACE}/post_build_reports_parameters SOURCE_PROJECT_NAME=${JOB_NAME} SOURCE_BUILD_NUMBER=${BUILD_NUMBER} SOURCE_BUILD_ID=${BUILD_NUMBER} SOURCE_BUILD_URL=${BUILD_URL} ART_URL=https://art-reports.linaro.org/api/ SOURCE_BRANCH_NAME=linaro-stable EOF if [[ ${GERRIT_CHANGE_NUMBER} ]]; then echo SOURCE_GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} >> ${WORKSPACE}/post_build_reports_parameters fi if [[ ${GERRIT_CHANGE_ID} ]]; then echo SOURCE_GERRIT_CHANGE_ID=${GERRIT_CHANGE_ID} >> ${WORKSPACE}/post_build_reports_parameters fi if [[ ${GERRIT_CHANGE_URL} ]]; then echo SOURCE_GERRIT_CHANGE_URL=${GERRIT_CHANGE_URL} >> ${WORKSPACE}/post_build_reports_parameters fi if [[ ${GERRIT_PATCHSET_NUMBER} ]]; then echo SOURCE_GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} >> ${WORKSPACE}/post_build_reports_parameters fi publishers: - archive: artifacts: '*.txt, *.xml, *.json' - 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(".*error: no devices/emulators found.*") if ( matcher?.matches()) { manager.addShortText("No Device Found") } matcher = manager.getLogMatcher(".*buildbot-build setup failed.*") if ( matcher?.matches()) { manager.addShortText("buildbot-build setup 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