Jenkins
This commit is contained in:
parent
1743db2174
commit
50a0f05779
|
@ -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}";
|
||||||
|
|
Loading…
Reference in New Issue