ignore odltools errors and continue
[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 source /tmp/v/odltools/bin/activate
18 pip install odltools
19 mkdir $REPORT_PATH
20 python -m odltools csit reports --numjobs $NUM_JOBS --path $REPORT_PATH --url $LOG_URL --jobnames $JOB_NAMES || true
21 python -m odltools csit exceptions --numjobs $NUM_JOBS --path $REPORT_PATH --url $LOG_URL --jobnames $JOB_NAMES || true
22 mkdir -p $WORKSPACE/archives
23 cp $REPORT_PATH/*.txt $WORKSPACE/archives || true
24 exit 0