Cleaning Jenkinsfile

This commit is contained in:
bernat 2020-03-20 18:13:08 +01:00
parent ee8b6921ad
commit 4fc90bc2db
1 changed files with 30 additions and 22 deletions

30
Jenkinsfile vendored
View File

@ -187,11 +187,22 @@ pipeline
} }
} }
} }
stage('Cleaning') }
post
{ {
steps always
{ {
deleteDir() deleteDir()
node('master')
{
script
{
JOB_ID = "${env.BUILD_TAG}"
jenkinsLib = load("/home/jenkins/jenkins424.groovy")
jenkinsLib.DeleteUbuntuBuildNode(JOB_ID)
}
} }
} }
} }
@ -295,17 +306,11 @@ pipeline
} }
} }
post post
{
always { deleteDir() }
}
}
}
}
}
post
{ {
always always
{ {
deleteDir()
node('master') node('master')
{ {
script script
@ -313,10 +318,13 @@ pipeline
JOB_ID = "${env.BUILD_TAG}" JOB_ID = "${env.BUILD_TAG}"
jenkinsLib = load("/home/jenkins/jenkins424.groovy") jenkinsLib = load("/home/jenkins/jenkins424.groovy")
jenkinsLib.DeleteUbuntuBuildNode(JOB_ID)
jenkinsLib.DeleteWindowsBuildNode(JOB_ID) jenkinsLib.DeleteWindowsBuildNode(JOB_ID)
} }
} }
} }
} }
} }
}
}
}
}