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 {
|
environment {
|
||||||
TARGET = 'android'
|
TARGET = 'android'
|
||||||
|
TMPDIR = "${WORKSPACE_TMP}"
|
||||||
GOPATH = "${WORKSPACE_TMP}/go"
|
GOPATH = "${WORKSPACE_TMP}/go"
|
||||||
PATH = "${PATH}:${GOPATH}/bin"
|
PATH = "${PATH}:${GOPATH}/bin"
|
||||||
REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go"
|
REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go"
|
||||||
|
|
|
@ -28,6 +28,7 @@ pipeline {
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
TARGET = 'ios'
|
TARGET = 'ios'
|
||||||
|
TMPDIR = "${WORKSPACE_TMP}"
|
||||||
GOPATH = "${WORKSPACE_TMP}/go"
|
GOPATH = "${WORKSPACE_TMP}/go"
|
||||||
PATH = "${PATH}:${GOPATH}/bin"
|
PATH = "${PATH}:${GOPATH}/bin"
|
||||||
REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go"
|
REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go"
|
||||||
|
|
|
@ -28,6 +28,7 @@ pipeline {
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
TARGET = 'linux'
|
TARGET = 'linux'
|
||||||
|
TMPDIR = "${WORKSPACE_TMP}"
|
||||||
GOPATH = "${WORKSPACE_TMP}/go"
|
GOPATH = "${WORKSPACE_TMP}/go"
|
||||||
PATH = "${PATH}:${GOPATH}/bin"
|
PATH = "${PATH}:${GOPATH}/bin"
|
||||||
REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go"
|
REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go"
|
||||||
|
|
|
@ -22,7 +22,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
TARGET = 'linux'
|
TARGET = 'tests'
|
||||||
|
TMPDIR = "${WORKSPACE_TMP}"
|
||||||
GOPATH = "${WORKSPACE_TMP}/go"
|
GOPATH = "${WORKSPACE_TMP}/go"
|
||||||
PATH = "${PATH}:${GOPATH}/bin"
|
PATH = "${PATH}:${GOPATH}/bin"
|
||||||
REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go"
|
REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go"
|
||||||
|
@ -69,4 +70,11 @@ pipeline {
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
} // stages
|
} // 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
|
} // pipeline
|
||||||
|
|
Loading…
Reference in New Issue