diff options
-rw-r--r-- | vars/utils.groovy | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vars/utils.groovy b/vars/utils.groovy index f955d67..c361eb6 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -135,6 +135,10 @@ def run(configs, concurrent = true) { } withEnv(runtime) { stage("Build (${myconfig.name})") { + // When running on a real system Jenkins leaves behind a populated + // 'job@#' workspace directory. It needs to be purged for unstash + // to be successful. + deleteDir() unstash "source_tree" for (cmd in myconfig.build_cmds) { sh(script: cmd) |