diff --git a/Jenkinsfile b/Jenkinsfile index 30daa2d..6f60e72 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,13 +17,30 @@ pipeline { sh 'docker exec ogcore-php php bin/console lexik:jwt:generate-keypair --overwrite' sh 'docker exec ogcore-php php bin/console doctrine:migrations:migrate --no-interaction' sh 'docker exec ogcore-php php bin/console doctrine:fixtures:load --no-interaction' - sh 'docker exec ogcore-php php bin/console app:load-default-user-groups' } } stage('Tests') { steps { - sh 'docker compose exec php bin/phpunit' + sh 'docker compose exec php bin/phpunit --log-junit phpunit.xml' } } } + post { + always { + xunit ( + testTimeMargin: '3000', + thresholdMode: 'percent', + thresholds: [ + skipped: 0, + unstable: 0, + failed: 0 + ], + tools: [ + PHPUnitJunit( + pattern: 'phpunit.xml' + ) + ] + ) + } + } }