Jenkins
This commit is contained in:
parent
6109338726
commit
3a922e5345
|
@ -43,13 +43,17 @@ node
|
|||
|
||||
stage ("Stopping/Removing Docker")
|
||||
{
|
||||
//env.TAG = env.BUILD_NUMBER - 1;
|
||||
environment {
|
||||
env.TAG = env.BUILD_NUMBER - 1;
|
||||
}
|
||||
sh "docker-compose down --rmi 'all'"
|
||||
}
|
||||
|
||||
stage ("Generar dockers")
|
||||
{
|
||||
//env.TAG = env.BUILD_NUMBER + 1;
|
||||
environment {
|
||||
env.TAG = env.BUILD_NUMBER + 1;
|
||||
}
|
||||
sh "docker-compose up -d --build"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue