From 7205748706663099aa36c06aa0c243cb1632db3d Mon Sep 17 00:00:00 2001 From: Max Rees Date: Mon, 15 Jun 2020 01:10:53 -0500 Subject: user/gitlab-runner: new package --- user/gitlab-runner/clean-tmpdirs.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 user/gitlab-runner/clean-tmpdirs.patch (limited to 'user/gitlab-runner/clean-tmpdirs.patch') diff --git a/user/gitlab-runner/clean-tmpdirs.patch b/user/gitlab-runner/clean-tmpdirs.patch new file mode 100644 index 000000000..89efd7a22 --- /dev/null +++ b/user/gitlab-runner/clean-tmpdirs.patch @@ -0,0 +1,21 @@ +Backport of: https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/1978 + +--- gitlab-runner-v12.1.0/executors/custom/executor.go 2019-07-19 12:13:32.000000000 +0000 ++++ gitlab-runner-v12.1.0/executors/custom/executor.go 2020-04-27 00:19:46.613372635 +0000 +@@ -7,6 +7,7 @@ import ( + "fmt" + "io" + "io/ioutil" ++ "os" + "path/filepath" + + "github.com/sirupsen/logrus" +@@ -216,6 +217,8 @@ func (e *executor) Cleanup() { + return + } + ++ defer os.RemoveAll(e.tempDir) ++ + // nothing to do, as there's no cleanup_script + if e.config.CleanupExec == "" { + return -- cgit v1.2.3-70-g09d2