Sha256: 3bc2e169353024729290dbaf606f05c8dc019b2ee9585922afc561ba2bc76679

Contents?: true

Size: 601 Bytes

Versions: 3

Compression:

Stored size: 601 Bytes

Contents

#!/bin/bash -ex

CONJUR_VERSION=${CONJUR_VERSION:-"4.8"}
DOCKER_IMAGE=${DOCKER_IMAGE:-"registry.tld/conjur-appliance-cuke-master:$CONJUR_VERSION-stable"}
NOKILL=${NOKILL:-"0"}
PULL=${PULL:-"1"}

if [ -z "$CONJUR_CONTAINER" ]; then
	if [ "$PULL" == "1" ]; then
	    docker pull $DOCKER_IMAGE
	fi
	
	cid=$(docker run --privileged -d -v ${PWD}:/src/conjur-api $DOCKER_IMAGE)
	function finish {
    	if [ "$NOKILL" != "1" ]; then
			docker rm -f ${cid}
		fi
	}
	trap finish EXIT
	
	>&2 echo "Container id:"
	>&2 echo $cid
else
	cid=${CONJUR_CONTAINER}
fi

docker exec -i ${cid} /src/conjur-api/ci/test.sh

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
conjur-api-4.28.1 jenkins.sh
conjur-api-4.28.0 jenkins.sh
conjur-api-4.26.0 jenkins.sh