Add "rerun" flag for integration tests

This commit is contained in:
René Pfeuffer
2021-01-20 11:26:40 +01:00
parent c8b167b4ec
commit 0b43630f06
2 changed files with 3 additions and 1 deletions

3
Jenkinsfile vendored
View File

@@ -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'

View File

@@ -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'