You've already forked sap-jenkins-library
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user