I have a composite gradle build. One of the subprojects has a jmh source-set. When executing jmh task (in many ways of invocation either from master or the subproject) everything works as expected on my Mac.
However when it is run in Jenkins, the jar creation step fails:
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':../subproject:jmhJar'.
Could not create ZIP '/the/path/to/subproject/build/libs/../subproject-jmh.jar'.
No matter what way I try to excute jmh it fails the same, but preceding jmh tasks run fine.
Any idea would be welcome.