When using Gradle with the Windows executors/orb, you may experience a timeout error:
Too long with no output (exceeded 10m0s): context deadline exceeded
gradlew.bat doesn't return the exit code for PowerShell. So, the step doesn't stop when the command has finished.
To resolve, set
This will cause the batch file and step to run in Bash, not PowerShell.
- run: shell: bash.exe command: ./gradlew.bat build
See information on our Windows Orb:
You can also reference Gradle's troubleshooting user guides:
If you are still experiencing problems after trying this, for further questions or suggestions for your particular use-case, please contact CircleCI Support.