Sha256: a228939c0fbe8578b2b8b7d5dedf2402dbe1b69f5b218c94c6c9063540f48c45

Contents?: true

Size: 588 Bytes

Versions: 4

Compression:

Stored size: 588 Bytes

Contents

#!/bin/bash -ex

CONJUR_VERSION=${CONJUR_VERSION:-"5.0"}
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 -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

4 entries across 4 versions & 1 rubygems

Version Path
conjur-api-4.25.0 jenkins.sh
conjur-api-4.24.1 jenkins.sh
conjur-api-4.24.0 jenkins.sh
conjur-api-4.23.0 jenkins.sh