Fix dockerfile agent checkout ordering
sandbox/pipeline/pr-main Something is wrong with the build of this commit
sandbox/pipeline/pr-main Something is wrong with the build of this commit
This commit is contained in:
1 parent
6d986b8967
commit
87b2580e9a
1 file changed
+5
-2
Vendored
+5
-2
@@ -7,7 +7,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
skipDefaultCheckout()
|
|
||||||
timestamps()
|
timestamps()
|
||||||
disableConcurrentBuilds()
|
disableConcurrentBuilds()
|
||||||
}
|
}
|
||||||
@@ -53,7 +52,11 @@ pipeline {
|
|||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
cleanWs deleteDirs: true, disableDeferredWipeout: true
|
script {
|
||||||
|
if (getContext(hudson.FilePath)) {
|
||||||
|
cleanWs deleteDirs: true, disableDeferredWipeout: true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user