Add workspace cleanup stage to prevent corruption issues
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
- Add Cleanup stage at pipeline start to wipe workspace before checkout - Prevents 'corrupt .git repository' errors from stale build artifacts - Uses disableDeferredWipeout for thorough cleanup Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Entire-Checkpoint: f6767c4eba2c
This commit is contained in:
1 parent
d79dcac3b3
commit
50073e010f
1 file changed
+9
Vendored
+9
@@ -23,6 +23,15 @@ pipeline {
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Cleanup') {
|
||||
steps {
|
||||
script {
|
||||
echo "Cleaning workspace to avoid corruption issues..."
|
||||
cleanWs deleteDirs: true, disableDeferredWipeout: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
|
||||
Reference in new issue
Block a user