jjb: tools: add post-build action to gather tap logs
[lttng-ci.git] / scripts / lttng-tools / tap_aborted.sh
CommitLineData
f6baccc6
JR
1#!/bin/bash
2# Copyright (C) 2021 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
3#
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17set -exu
18
19# Required variables
20WORKSPACE=${WORKSPACE:-}
21
22SRCDIR="$WORKSPACE/src/lttng-tools"
23TAPDIR="$WORKSPACE/tap"
24
25cd "$SRCDIR"
26
27# Try to fetch all tap logs.
28rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$TAPDIR"
29
30# TAP plugin is having a hard time with .yml files.
31find "$TAPDIR" -name "meta.yml" -exec rm -f {} \;
32
33# EOF
This page took 0.023749 seconds and 4 git commands to generate.