This commit is contained in:
Vicente Falco 2018-01-08 10:56:14 +01:00
parent 2715699a35
commit 0843b824f2
1 changed files with 8 additions and 4 deletions

12
Jenkinsfile vendored
View File

@ -43,14 +43,18 @@ node
stage ("Stopping/Removing Docker")
{
env.TAG = env.BUILD_NUMBER - 1;
sh "docker-compose down --rmi 'all'"
steps{
env.TAG = env.BUILD_NUMBER - 1;
sh "docker-compose down --rmi 'all'"
}
}
stage ("Generar dockers")
{
env.TAG = env.BUILD_NUMBER + 1;
sh "docker-compose up -d --build"
steps{
env.TAG = env.BUILD_NUMBER + 1;
sh "docker-compose up -d --build"
}
}
}
}