allow prune to fail to prevent build from terminating

This commit is contained in:
Brian Gough 2018-07-17 10:41:10 +01:00
parent e1406abc7d
commit d85980ad9d

View file

@ -54,7 +54,7 @@ pipeline {
steps { steps {
sh 'mkdir -p compiles cache' sh 'mkdir -p compiles cache'
// Not yet running, due to volumes/sibling containers // Not yet running, due to volumes/sibling containers
sh 'docker container prune -f' sh 'docker container prune -f || true'
sh 'docker pull $TEXLIVE_IMAGE' sh 'docker pull $TEXLIVE_IMAGE'
sh 'docker pull sharelatex/acceptance-test-runner:clsi-6.11.2' sh 'docker pull sharelatex/acceptance-test-runner:clsi-6.11.2'
sh 'docker run --rm -e SIBLING_CONTAINER_USER=root -e SANDBOXED_COMPILES_HOST_DIR=$(pwd)/compiles -e SANDBOXED_COMPILES_SIBLING_CONTAINERS=true -e TEXLIVE_IMAGE=$TEXLIVE_IMAGE -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/app sharelatex/acceptance-test-runner:clsi-6.11.2' sh 'docker run --rm -e SIBLING_CONTAINER_USER=root -e SANDBOXED_COMPILES_HOST_DIR=$(pwd)/compiles -e SANDBOXED_COMPILES_SIBLING_CONTAINERS=true -e TEXLIVE_IMAGE=$TEXLIVE_IMAGE -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/app sharelatex/acceptance-test-runner:clsi-6.11.2'