From bac85a4a0f75b5fb44db44bd867340142e17266e Mon Sep 17 00:00:00 2001 From: Christopher Hubing Date: Thu, 17 May 2018 14:28:16 -0400 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b7ada966..8cb90349 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,7 +31,7 @@ pipeline { } } } - stage('Build') { + stage('Clean') { steps { script { try{ @@ -45,12 +45,14 @@ pipeline { } } } - stage('Push') { + stage('Build') { steps { script { docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-$maintainer") { def baseImg = docker.build("$maintainer/$imagename", "--no-cache .") + // test the environment sh 'cd test-compose && ./compose.sh' + // bring down after testing sh 'cd test-compose && docker-compose down' baseImg.push("$tag") }