diff --git a/Jenkinsfile b/Jenkinsfile index 15c4ff79f..1e4202752 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,14 +43,18 @@ node stage ("Stopping/Removing Docker") { - env.TAG = env.BUILD_NUMBER - 1; - sh "docker-compose down --rmi 'all'" + step{ + 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" + step{ + env.TAG = env.BUILD_NUMBER + 1; + sh "docker-compose up -d --build" + } } } } \ No newline at end of file