1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00

dockerExecuteOnKubernetes: return result of body closure (#4301)

This commit is contained in:
Marcus Holl
2023-03-27 09:42:04 +02:00
committed by GitHub
parent b0f578a5a9
commit d76246d781

View File

@@ -331,10 +331,11 @@ void executeOnPod(Map config, utils, Closure body, Script script) {
echo "invalidate stash workspace-${config.uniqueId}"
stash name: "workspace-${config.uniqueId}", excludes: '**/*', allowEmpty: true
}
body()
def result = body()
if (config.verbose) {
lsDir('Directory content after body execution')
}
return result
} finally {
stashWorkspace(config, 'container', true, true)
}