Skip to content

Commit e68e7a8

Browse files
Adding Clean Directory and Checkout stage
1 parent ce7c8dd commit e68e7a8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

CI/JenkinsfileTestCleanInstance

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def slackNotification(buildStatus,String notification_url = "",project_name = ""
3131
]
3232
]
3333
)
34-
3534
sh "curl -X POST --fail -H 'Content-type: application/json' --data '${payload}' ${notification_url}"
3635
}
3736

@@ -89,6 +88,14 @@ pipeline {
8988
}
9089
}
9190
}
91+
stage ('Clean Directory and Checkout') {
92+
steps {
93+
dir('.') {
94+
deleteDir()
95+
}
96+
checkout scm
97+
}
98+
}
9299
stage('Build Base Image') {
93100
when {
94101
triggeredBy 'TimerTrigger'

0 commit comments

Comments
 (0)