This is an automated email from the ASF dual-hosted git repository. aduprat pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 78813a88b126936a38180547a089aa5fbc47f113 Author: Gautier DI FOLCO <gdifo...@linagora.com> AuthorDate: Wed Jul 3 14:13:25 2019 +0200 JAMES-2771 Fix dirty provisionning for CI benchmarks --- JenkinsfileStressTests.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/JenkinsfileStressTests.groovy b/JenkinsfileStressTests.groovy index 737f690..b621958 100644 --- a/JenkinsfileStressTests.groovy +++ b/JenkinsfileStressTests.groovy @@ -50,6 +50,10 @@ pipeline { stage('Start James') { steps { script { + if (fileExists('/srv/bench-running-docker')) { + echo 'Last build failed, cleaning provisionning' + sh 'sudo btrfs subvolume delete /srv/bench-running-docker' + } sh "cd /srv && sudo btrfs subvolume snapshot bench-snapshot bench-running-docker" sh 'docker run -d --name=cassandra -p 9042:9042 -v /srv/bench-running-docker/cassandra:/var/lib/cassandra cassandra:3.11.3' sh 'docker run -d --name=elasticsearch -p 9200:9200 -v /srv/bench-running-docker/elasticsearch:/usr/share/elasticsearch/data/elasticsearch --env "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.3.2' --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org