mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-26 08:06:09 +01:00
Add "rerun" flag for integration tests
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -62,7 +62,8 @@ pipeline {
|
||||
// in parallel with check?
|
||||
stage('Integration Tests') {
|
||||
steps {
|
||||
gradle 'integrationTest'
|
||||
// TODO remove obligatory rerun flag when flappy tests have been fixed
|
||||
gradle '-PrerunIntegrationTests integrationTest'
|
||||
junit allowEmptyResults: true, testResults: 'scm-it/build/test-results/javaIntegrationTests/*.xml,scm-ui/build/reports/e2e/*.xml'
|
||||
archiveArtifacts allowEmptyArchive: true, artifacts: 'scm-ui/e2e-tests/cypress/videos/*.mp4'
|
||||
archiveArtifacts allowEmptyArchive: true, artifacts: 'scm-ui/e2e-tests/cypress/screenshots/**/*.png'
|
||||
|
||||
@@ -78,6 +78,7 @@ task javaIntegrationTests(type: Test) {
|
||||
include '**/*ITCase.class'
|
||||
exclude '**/*Test.class'
|
||||
ignoreFailures = project.isCI
|
||||
outputs.upToDateWhen { !project.hasProperty('rerunIntegrationTests') }
|
||||
finalizedBy = ['stopScmServer']
|
||||
|
||||
dependsOn 'test', 'startScmServer'
|
||||
|
||||
Reference in New Issue
Block a user