Collecting report after execute tests
testing/ogcore-api/pipeline/head There was a failure building this commit Details

helpers/ci-integration
Nicolas Arenas 2024-09-25 14:29:40 +02:00
parent 4523135041
commit 784fbfe89c
1 changed files with 19 additions and 2 deletions

21
Jenkinsfile vendored
View File

@ -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'
)
]
)
}
}
}