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:
parent
cceba787fa
commit
0048b70466
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue