New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.io.IOException: Cannot use custom test directory 'build/Test/*/junit' that does not exist! #971
Comments
I'm encountering it as well |
@renedupont - What's the expectation here - that ods creates it? .. my intention (it was my change) is that one MUST point this to an existing dir :) |
@clemensutschig I assume that error occurs in my case because the custom test dir (with reports as content) is normally being created during the build stage which is never happening when In that case, my expectation would have been that the pipeline run does not try to stash test reports that have not been created and then fails because of it.
|
@renedupont - that's fair, it's a finally block - that's why you see it the way you do :) we could just go and create the dir early on (which is maybe the quickest fix ... ) |
@clemensutschig Yes, true :). |
we cant "see" what stages you ran . we can just check if the dir is there - and dont fail |
Sounds good 👍🏻. |
I have also just stumbled across this problem. My preferred solution: Warn if the custom dir doesn't exist and either create it or skip the rest of the test result collection. |
Describe the bug
The content of the project is the Tosca Quickstarter.
An error occurs at the end of the build process because the system doesn't find out the custom test directory defined in Jenkins file.
Don't hesitate to contact me if you need more info.
Expected behavior
The build finishes SUCCESS.
Screenshots
Build executed with the current ods-jenkins-shared-library. (Finished: FAILURE)
Build executed with the previous ods-jenkins-shared-library (before the last upgrade). (Finished: SUCCESS)
Affected version:
Additional context
After a quick assessment comparing both ods-jenkins-shared-library versions:
Regarding the numbers that appear in the picture:
We don't know if it is an error or if it is correct and all testing quickstarters must change something to work properly.
The text was updated successfully, but these errors were encountered: