Use Xvfb for testing

MYC-Refactor
Hammy 3 years ago
parent d9d06aee63
commit 30645b4819

24
Jenkinsfile vendored

@ -29,21 +29,21 @@ pipeline {
} }
} }
} }
wrap([$class: 'Xvfb']) { stage("Test") {
stage("Test") { steps {
steps { wrap([$class: 'Xvfb']) {
sh "mvn test" sh "mvn test"
} }
post { }
success { post {
echo "Generating Test Report..." success {
publishCoverage adapters: [jacocoAdapter('target/site/jacoco/jacoco.xml')] echo "Generating Test Report..."
publishCoverage adapters: [jacocoAdapter('target/site/jacoco/jacoco.xml')]
echo "Sending Report to CodeCov..." echo "Sending Report to CodeCov..."
sh '''#!/bin/bash sh '''#!/bin/bash
bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN || echo "Codecov did not collect coverage reports" bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN || echo "Codecov did not collect coverage reports"
''' '''
}
} }
} }
} }

Loading…
Cancel
Save