ci: fix GOCACHE and GOPATH to avoid poisoning (#125)
We've had this issue before with some `go-waku` builds: https://github.com/waku-org/go-waku/pull/512 Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
9c81b72711
commit
fe0361a5b8
|
@ -7,8 +7,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
GOPATH = '/tmp/go'
|
/* Avoid cache poisoning by other jobs. */
|
||||||
GOCACHE = '/tmp/'
|
GOCACHE = "${env.WORKSPACE_TMP}/go-build"
|
||||||
|
GOPATH = "${env.WORKSPACE_TMP}/go"
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
@ -22,9 +23,9 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('Check') {
|
stage('Check') {
|
||||||
steps {
|
steps {
|
||||||
sh 'cargo check --all --all-features'
|
sh 'cargo check --all --all-features'
|
||||||
sh 'cargo fmt -- --check'
|
sh 'cargo fmt -- --check'
|
||||||
sh 'cargo clippy --all --all-features -- --deny warnings'
|
sh 'cargo clippy --all --all-features -- --deny warnings'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,13 @@ library 'status-jenkins-lib@v1.6.0'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
label 'macos && aarch64'
|
label 'macos && aarch64 && nix-2.11'
|
||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
GOPATH = '/tmp/go'
|
/* Avoid cache poisoning by other jobs. */
|
||||||
GOCACHE = '/tmp/'
|
GOCACHE = "${env.WORKSPACE_TMP}/go-build"
|
||||||
|
GOPATH = "${env.WORKSPACE_TMP}/go"
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
@ -21,9 +22,9 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('Check') {
|
stage('Check') {
|
||||||
steps { script {
|
steps { script {
|
||||||
nix.shell('cargo check --all --all-features')
|
nix.shell('cargo check --all --all-features')
|
||||||
nix.shell('cargo fmt -- --check')
|
nix.shell('cargo fmt -- --check')
|
||||||
nix.shell('cargo clippy --all --all-features -- --deny warnings')
|
nix.shell('cargo clippy --all --all-features -- --deny warnings')
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue