ci: skip cleanup before node allocation

This commit is contained in:
2026-08-21 12:41:53 +08:00
parent fefa2d74e6
commit ff55623d80
Vendored
+10 -1
View File
@@ -172,6 +172,15 @@ PY
post {
success { archiveArtifacts artifacts: 'artifacts/*.apk,artifacts/*.sha256,artifacts/*.json', fingerprint: true }
always { cleanWs(deleteDirs: true, notFailBuild: true) }
always {
script {
// A build can be aborted while still waiting for an executor. In that
// case Jenkins has no FilePath context and cleanWs would mask the
// original result with MissingContextVariableException.
if (env.NODE_NAME?.trim()) {
cleanWs(deleteDirs: true, notFailBuild: true)
}
}
}
}
}