This commit is contained in:
Vicente Falco 2017-08-24 13:26:22 +02:00
parent 1743db2174
commit 50a0f05779
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

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