#!/bin/sh

set -ex

echo "Sleep 15 sec to let pipeline to finish"
sleep 15

echo "Provided docker-compose.yml:"
cat docker-compose.yml

echo "Stop master and slave"
docker stop dockerizeit_jmaster_1 dockerizeit_jslave_1

echo "Start new master and slave container using provided docker-compose.yml"
docker-compose -p dockerizeit up -d

#!/bin/sh

set -ex

echo "Sleep 15 sec to let pipeline to finish"
sleep 15

echo "Provided docker-compose.yml:"
cat docker-compose.yml

echo "Stop master and slave"
docker stop dockerizeit_jmaster_1 dockerizeit_jslave_1

echo "Start new master and slave container using provided docker-compose.yml"
docker-compose -p dockerizeit up -d --force-recreate

Use --force-recreate when restarting jenkins
Use --force-recreate when restarting jenkins

Fixes #58
