From dde4e0abefbb11f5c29dcbb7b77d49e94f311ccd Mon Sep 17 00:00:00 2001 From: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com> Date: Tue, 5 Feb 2019 09:07:47 +0100 Subject: [PATCH] Fix regression introduced with #474 (#483) Fix stashing behavior to include all files in workspace. This was for example an issue for PR-voting in Docker pipeline since `Dockerfile` has been excluded from stashing --- resources/default_pipeline_environment.yml | 2 +- vars/dockerExecuteOnKubernetes.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/default_pipeline_environment.yml b/resources/default_pipeline_environment.yml index f3b7b26ce..ca0ffa493 100644 --- a/resources/default_pipeline_environment.yml +++ b/resources/default_pipeline_environment.yml @@ -157,7 +157,7 @@ steps: dockerExecuteOnKubernetes: stashContent: [] stashIncludes: - workspace: '**/*.*' + workspace: '**/*' stashExcludes: workspace: 'nohup.out' githubPublishRelease: diff --git a/vars/dockerExecuteOnKubernetes.groovy b/vars/dockerExecuteOnKubernetes.groovy index 8736214e5..8ab146681 100644 --- a/vars/dockerExecuteOnKubernetes.groovy +++ b/vars/dockerExecuteOnKubernetes.groovy @@ -122,7 +122,7 @@ chown -R 1000:1000 .""" stash( name: stashName, includes: config.stashIncludes.workspace, - excludes: config.stashExcludes.excludes + excludes: config.stashExcludes.workspace ) return stashName } catch (AbortException | IOException e) {