mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-27 05:56:07 +00:00
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 {
|
||||
ganache = docker.image(
|
||||
'trufflesuite/ganache:v7.4.1'
|
||||
).run(
|
||||
["-p 127.0.0.1:${env.GANACHE_RPC_PORT}:8545"].join(' '),
|
||||
["-m='${GANACHE_MNEMONIC}'"].join(' ')
|
||||
)
|
||||
} } }
|
||||
stage('Ganache') {
|
||||
steps { script {
|
||||
ganache = docker.image(
|
||||
'trufflesuite/ganache:v7.4.1'
|
||||
).run(
|
||||
"-p 127.0.0.1:${env.GANACHE_RPC_PORT}:8545",
|
||||
"-m='${GANACHE_MNEMONIC}'"
|
||||
)
|
||||
} }
|
||||
}
|
||||
|
||||
stage('On-chain tests') {
|
||||
environment {
|
||||
@ -68,6 +70,11 @@ pipeline {
|
||||
} }
|
||||
success { script { github.notifyPR(true) } }
|
||||
failure { script { github.notifyPR(false) } }
|
||||
cleanup { cleanWs() }
|
||||
cleanup { script {
|
||||
cleanWs()
|
||||
catchError {
|
||||
ganache.stop()
|
||||
}
|
||||
} }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user