From 0048b70466fd06e8be93f16b22bbbd7224e2aa22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 3 Jan 2023 15:40:45 +0100 Subject: [PATCH] ci: use WORKSPACE_TMP for TMPDIR to not abuse /run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because a lot of tests use `MkdirTemp` and do not clean up. Signed-off-by: Jakub SokoĊ‚owski --- _assets/ci/Jenkinsfile.android | 1 + _assets/ci/Jenkinsfile.ios | 1 + _assets/ci/Jenkinsfile.linux | 1 + _assets/ci/Jenkinsfile.tests | 10 +++++++++- 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/_assets/ci/Jenkinsfile.android b/_assets/ci/Jenkinsfile.android index 6631154c0..74ea08581 100644 --- a/_assets/ci/Jenkinsfile.android +++ b/_assets/ci/Jenkinsfile.android @@ -28,6 +28,7 @@ pipeline { environment { TARGET = 'android' + TMPDIR = "${WORKSPACE_TMP}" GOPATH = "${WORKSPACE_TMP}/go" PATH = "${PATH}:${GOPATH}/bin" REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go" diff --git a/_assets/ci/Jenkinsfile.ios b/_assets/ci/Jenkinsfile.ios index 12e5b0ce9..50b3e3766 100644 --- a/_assets/ci/Jenkinsfile.ios +++ b/_assets/ci/Jenkinsfile.ios @@ -28,6 +28,7 @@ pipeline { environment { TARGET = 'ios' + TMPDIR = "${WORKSPACE_TMP}" GOPATH = "${WORKSPACE_TMP}/go" PATH = "${PATH}:${GOPATH}/bin" REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go" diff --git a/_assets/ci/Jenkinsfile.linux b/_assets/ci/Jenkinsfile.linux index c6ea91600..aad83d98d 100644 --- a/_assets/ci/Jenkinsfile.linux +++ b/_assets/ci/Jenkinsfile.linux @@ -28,6 +28,7 @@ pipeline { environment { TARGET = 'linux' + TMPDIR = "${WORKSPACE_TMP}" GOPATH = "${WORKSPACE_TMP}/go" PATH = "${PATH}:${GOPATH}/bin" REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go" diff --git a/_assets/ci/Jenkinsfile.tests b/_assets/ci/Jenkinsfile.tests index 2df6584b2..350def756 100644 --- a/_assets/ci/Jenkinsfile.tests +++ b/_assets/ci/Jenkinsfile.tests @@ -22,7 +22,8 @@ pipeline { } environment { - TARGET = 'linux' + TARGET = 'tests' + TMPDIR = "${WORKSPACE_TMP}" GOPATH = "${WORKSPACE_TMP}/go" PATH = "${PATH}:${GOPATH}/bin" REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go" @@ -69,4 +70,11 @@ pipeline { } } } } // stages + + post { + always { script { env.PKG_URL = "${currentBuild.absoluteUrl}/consoleText" } } + success { script { github.notifyPR(true) } } + failure { script { github.notifyPR(false) } } + cleanup { dir(env.TMPDIR) { deleteDir() } } + } // post } // pipeline