diff --git a/Jenkinsfile b/Jenkinsfile index db8dcd4bc..b194b2634 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ def dockerProductionName = ["production", "-p 3004:3004"] def buildNumber = "${env.BUILD_NUMBER}"; -def dockers = [dockerAuthName, dockerSalixName, dockerClientName, dockerMailerName, dockerNginxName, dockerProductionName] +def dockers = [dockerAuthName, dockerSalixName, dockerClientName, dockerMailerName, dockerProductionName, dockerNginxName] node { @@ -48,8 +48,8 @@ node { { def returnDocker = sh (script: "docker stop ${prefixDocker}-${element}", returnStdout: true).trim(); echo "${returnDocker}"; - returnDocker = sh (script: "docker rm ${prefixDocker}-${element}", returnStdout: true).trim(); - echo "${returnDocker}"; + returnDocker = sh (script: "docker rm ${prefixDocker}-${element}", returnStdout: false).trim(); + //echo "${returnDocker}"; //returnDocker = sh (script: "docker rmi ${prefixDocker}-${element}:${buildNumber-3}", returnStdout: true).trim(); echo "borran ${prefixDocker}-${element}:${buildNumber-3}"; //echo "${returnDocker}";