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

52
Jenkinsfile vendored
View File

@ -187,11 +187,22 @@ pipeline
}
}
}
stage('Cleaning')
{
steps
}
post
{
always
{
deleteDir()
node('master')
{
deleteDir()
script
{
JOB_ID = "${env.BUILD_TAG}"
jenkinsLib = load("/home/jenkins/jenkins424.groovy")
jenkinsLib.DeleteUbuntuBuildNode(JOB_ID)
}
}
}
}
@ -296,27 +307,24 @@ pipeline
}
post
{
always { deleteDir() }
always
{
deleteDir()
node('master')
{
script
{
JOB_ID = "${env.BUILD_TAG}"
jenkinsLib = load("/home/jenkins/jenkins424.groovy")
jenkinsLib.DeleteWindowsBuildNode(JOB_ID)
}
}
}
}
}
}
}
}
post
{
always
{
node('master')
{
script
{
JOB_ID = "${env.BUILD_TAG}"
jenkinsLib = load("/home/jenkins/jenkins424.groovy")
jenkinsLib.DeleteUbuntuBuildNode(JOB_ID)
jenkinsLib.DeleteWindowsBuildNode(JOB_ID)
}
}
}
}
}