Skip to content

Commit

Permalink
dockerExecuteOnKubernetes: return result of body closure (#4301)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusholl authored Mar 27, 2023
1 parent b0f578a commit d76246d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vars/dockerExecuteOnKubernetes.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d76246d

Please sign in to comment.