- job: name: art-tip-build-nexus9-microbenchmarks-baseline 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_flounder' - string: name: ART_URL default: 'https://art-reports.linaro.org/api/' - password: name: ART_TOKEN default: ${ART_TOKEN} - password: name: PRIVATE_KEY default: ${PRIVATE_KEY} disabled: false node: docker-utopic-art display-name: 'ART - Tip - Nexus 9 Microbenchmarks Baseline' concurrent: true triggers: - 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' silent: true wrappers: - timestamps - timeout: timeout: 500 builders: - linaro-publish-token - shell: | #!/bin/bash rm -rf art-build-tests android build-configs pba git clone --depth 1 git://git.linaro.org/people/daniel.diaz/art-build-tests.sh.git art-build-tests git clone --depth 1 http://android.git.linaro.org/git/android-build-configs.git build-configs git clone --depth 1 https://github.com/mwasilew/art-db-client.git pba cd art-build-tests . ./setup-host.sh . ./build.sh cat > out/target/product/flounder/BUILD-INFO.txt << EOF Format-Version: 0.5 Files-Pattern: * License-Type: protected Auth-Groups: linaro-art EOF PUB_DEST=/android/$JOB_NAME/$BUILD_NUMBER time linaro-cp.py \ --api_version 3 \ --manifest \ --no-build-info \ --link-latest \ --split-job-owner \ out/target/product/*/ ${PUB_DEST} \ --include "^[^/]+[._](img[^/]*|tar[^/]*|xml|sh|config)$" \ --include "^[BHi][^/]+txt$" \ --include "^(MANIFEST|MD5SUMS)$" # Construct post-build-lava parameters if [ -f ${WORKSPACE}/build-configs/${BUILD_CONFIG_FILENAME} ]; then source ${WORKSPACE}/build-configs/${BUILD_CONFIG_FILENAME} else echo "No config file named ${BUILD_CONFIG_FILENAME} exists" echo "in android-build-configs.git" exit 1 fi cat << EOF > ${WORKSPACE}/post_build_lava_parameters DEVICE_TYPE=aosp_flounder TARGET_PRODUCT=aosp_flounder MAKE_TARGETS=droidcore JOB_NAME=${JOB_NAME} BUILD_NUMBER=${BUILD_NUMBER} BUILD_URL=${BUILD_URL} LAVA_SERVER=validation.linaro.org/RPC2/ FRONTEND_JOB_NAME=${JOB_NAME} DOWNLOAD_URL=${PUBLISH_SERVER}/${PUB_DEST} CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/blob_plain/refs/heads/master:/android/nexus9-aosp-master/nexus9-ubenchmarks-64bit.json EOF - trigger-builds: - project: 'post-build-lava' property-file: post_build_lava_parameters block: true - shell: | sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/blob_plain/refs/heads/master:/android/nexus9-aosp-master/nexus9-ubenchmarks-32bit.json#g" ${WORKSPACE}/post_build_lava_parameters - trigger-builds: - project: 'post-build-lava' property-file: post_build_lava_parameters block: true - shell: | set -a source ${WORKSPACE}/build-configs/${BUILD_CONFIG_FILENAME} source ${WORKSPACE}/post_build_lava_parameters python ./pba/jenkins.py echo "Build finished" 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 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(".*make failed.*") if ( matcher?.matches()) { manager.addShortText("make failed") } matcher = manager.getLogMatcher(".*images failed to boot.*") if ( matcher?.matches()) { manager.addShortText("Boot test failed") } - plot: - title: 'Sync Time' group: 'Time Measurements' yaxis: 'Seconds' style: line series: - file: repo_time.txt format: properties - title: 'Build Time' group: 'Time Measurements' yaxis: 'Seconds' style: line series: - file: make_time.txt format: properties