Purge Magnesium jobs from builder
[releng/builder.git] / jjb / netvirt / run-reports.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2018 Red Hat, Inc. and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11
12 echo "Executing run-reports.sh"
13 set -e -o pipefail # Fail on errors, give stacktrace
14 set -x # Enable trace
15
16 virtualenv --quiet "/tmp/v/odltools"
17 # shellcheck disable=SC1091
18 source /tmp/v/odltools/bin/activate
19 pip install odltools
20 mkdir "$REPORT_PATH"
21 python -m odltools csit reports --numjobs "$NUM_JOBS" --path "$REPORT_PATH" --url "$LOG_URL" --jobnames "$JOB_NAMES" || true
22 python -m odltools csit exceptions --numjobs "$NUM_JOBS" --path "$REPORT_PATH" --url "$LOG_URL" --jobnames "$JOB_NAMES" || true
23 mkdir -p "$WORKSPACE/archives"
24 cp "$REPORT_PATH"/*.txt "$WORKSPACE/archives" || true
25 exit 0