diff --git a/Jenkinsfile b/Jenkinsfile index 39a9928cd..18dfa08e0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -120,7 +120,7 @@ pipeline { } def image = docker.build('lilium-dev', '-f docs/Dockerfile.dev docs') image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ") { - sh 'sh test/cypress/cypressParallel.sh 4' + sh 'sh test/cypress/cypressParallel.sh 2' } } } diff --git a/test/cypress/cypressParallel.sh b/test/cypress/cypressParallel.sh index 370f22ded..e0aaf0b94 100644 --- a/test/cypress/cypressParallel.sh +++ b/test/cypress/cypressParallel.sh @@ -1,4 +1,17 @@ #!/bin/bash -find 'test/cypress/integration' -mindepth 1 -maxdepth 1 -type d | xargs -P "$1" -I {} sh -c 'echo "🔷 {}" && xvfb-run -a cypress run --headless --browser chromium --spec "{}" --quiet > /dev/null 2>&1' +find 'test/cypress/integration' \ + -mindepth 1 \ + -maxdepth 1 \ + -type d | \ +xargs -P "$1" -I {} \ +sh -c ''' + echo "🔷 {}" && + xvfb-run -a cypress run \ + --headless \ + --browser chromium \ + --spec "{}" \ + --quiet \ + > /dev/null 2>&1 +''' wait