Jenkins DSL: Gradle: Try to touch the test-results-files as Gradle will not execute the tests again if not needed

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1772904 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2016-12-06 15:14:50 +00:00
parent 57259f3a88
commit f42d14242f

View File

@ -213,6 +213,8 @@ Apache POI - the Java API for Microsoft Documents
shell(shellcmds) shell(shellcmds)
// For Jobs that should still have the default set of publishers we can configure different steps here // For Jobs that should still have the default set of publishers we can configure different steps here
if(poijob.gradle) { if(poijob.gradle) {
// Gradle will not run any tests if the code is up-to-date, therefore manually mark the files as updated
shell("touch --no-create build/*/build/test-results/test/TEST-*.xml")
gradle { gradle {
tasks('check') tasks('check')
useWrapper(false) useWrapper(false)