Jenkins
This commit is contained in:
parent
2715699a35
commit
0843b824f2
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue