#!/bin/sh set -xe LAVA_SERVER="validation.linaro.org" BUILD_STREAM_NAME="/private/team/linaro/ci-$KERNEL_NAME-build/" LAVA_ENDPOINT="http://ciadmin@$LAVA_SERVER/RPC2/" build_json_fname=$KERNEL_JOB_NAME"_"$HWPACK_BUILD_DATE"_build_status" kernel_test_json_fname="kernel_test_$KERNEL_JOB_NAME.json" lava-dashboard-tool make-stream --dashboard-url "$LAVA_ENDPOINT" "$BUNDLE_STREAM_NAME" || true lava-dashboard-tool make-stream --dashboard-url "$LAVA_ENDPOINT" "$BUILD_STREAM_NAME" || true if test $SUBMIT_LAVA_JOB -eq 1; then for board in `printf "$BOARD_TYPES" | tr ',' ' '` do export BOARD_TYPE=$board if test -z "$HWPACK_TYPE"; then HWPACK_TYPE=$board fi python $WORKSPACE/lci-build-tools/jenkins_kernel_ci_bundle > $build_json_fname lava-dashboard-tool put --dashboard-url "$LAVA_ENDPOINT" $build_json_fname "$BUILD_STREAM_NAME" python $WORKSPACE/lci-build-tools/get_latest_ci_hwpack "$board" > $kernel_test_json_fname lava_job_id=`lava-tool submit-job "$LAVA_ENDPOINT" $kernel_test_json_fname | grep -v EXPERIMENTAL | cut -d ":" -f 2 | tr -d ' '` echo "LAVA Job Id: $lava_job_id, URL: http://$LAVA_SERVER/scheduler/job/$lava_job_id" done fi