jjb: tools: add post-build action to gather tap logs
[lttng-ci.git] / scripts / lttng-tools / tap_aborted.sh
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
17 set -exu
18
19 # Required variables
20 WORKSPACE=${WORKSPACE:-}
21
22 SRCDIR="$WORKSPACE/src/lttng-tools"
23 TAPDIR="$WORKSPACE/tap"
24
25 cd "$SRCDIR"
26
27 # Try to fetch all tap logs.
28 rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$TAPDIR"
29
30 # TAP plugin is having a hard time with .yml files.
31 find "$TAPDIR" -name "meta.yml" -exec rm -f {} \;
32
33 # EOF
This page took 0.032885 seconds and 5 git commands to generate.