From 0843b824f2c9601bc8113149be631e676d1f3f48 Mon Sep 17 00:00:00 2001 From: Vicente Falco Date: Mon, 8 Jan 2018 10:56:14 +0100 Subject: [PATCH 1/2] Jenkins --- Jenkinsfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 15c4ff79f..4066730c1 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'" + 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" + } } } } \ No newline at end of file From 713ebc8ffbf9e6563016933f64b1fdeb6ae08103 Mon Sep 17 00:00:00 2001 From: Vicente Falco Date: Mon, 8 Jan 2018 11:02:40 +0100 Subject: [PATCH 2/2] Jenkins --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4066730c1..1e4202752 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,7 +43,7 @@ node stage ("Stopping/Removing Docker") { - steps{ + step{ env.TAG = env.BUILD_NUMBER - 1; sh "docker-compose down --rmi 'all'" } @@ -51,7 +51,7 @@ node stage ("Generar dockers") { - steps{ + step{ env.TAG = env.BUILD_NUMBER + 1; sh "docker-compose up -d --build" }