File: cleanup-tests.sh

package info (click to toggle)
python-confluent-kafka 2.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,660 kB
  • sloc: python: 30,428; ansic: 9,487; sh: 1,477; makefile: 192
file content (21 lines) | stat: -rwxr-xr-x 344 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash

# Used by Jenkins in post step to cleanup after ./run-tests.sh

if [[ -z $WORKSPACE ]]; then
  echo "This should be run by Jenkins only"
  exit 1
fi

set -e

. jenkins-common/resources/scripts/extract-iam-credential.sh

set -x

KAFKA_DIR=$WORKSPACE/kafka

if [ -d $KAFKA_DIR ]; then
  cd $KAFKA_DIR
  vagrant destroy -f
fi