ci: use WORKSPACE_TMP for TMPDIR to not abuse /run

Because a lot of tests use `MkdirTemp` and do not clean up.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-01-03 15:40:45 +01:00
parent cceba787fa
commit 0048b70466
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
4 changed files with 12 additions and 1 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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