mirror of https://github.com/status-im/go-waku.git
ci: cleanup Ganache container after tests finish
We've had too many leftover containers conflicting with new ones. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
f94b071a84
commit
8fafc367eb
|
@ -44,14 +44,16 @@ pipeline {
|
||||||
} } }
|
} } }
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Ganache') { steps { script {
|
stage('Ganache') {
|
||||||
|
steps { script {
|
||||||
ganache = docker.image(
|
ganache = docker.image(
|
||||||
'trufflesuite/ganache:v7.4.1'
|
'trufflesuite/ganache:v7.4.1'
|
||||||
).run(
|
).run(
|
||||||
["-p 127.0.0.1:${env.GANACHE_RPC_PORT}:8545"].join(' '),
|
"-p 127.0.0.1:${env.GANACHE_RPC_PORT}:8545",
|
||||||
["-m='${GANACHE_MNEMONIC}'"].join(' ')
|
"-m='${GANACHE_MNEMONIC}'"
|
||||||
)
|
)
|
||||||
} } }
|
} }
|
||||||
|
}
|
||||||
|
|
||||||
stage('On-chain tests') {
|
stage('On-chain tests') {
|
||||||
environment {
|
environment {
|
||||||
|
@ -68,6 +70,11 @@ pipeline {
|
||||||
} }
|
} }
|
||||||
success { script { github.notifyPR(true) } }
|
success { script { github.notifyPR(true) } }
|
||||||
failure { script { github.notifyPR(false) } }
|
failure { script { github.notifyPR(false) } }
|
||||||
cleanup { cleanWs() }
|
cleanup { script {
|
||||||
|
cleanWs()
|
||||||
|
catchError {
|
||||||
|
ganache.stop()
|
||||||
|
}
|
||||||
|
} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue