Gradle task failed, :app:bundleReleaseJsAndAssets FAILED
Gradle runner tasks fail on Bitrise (even old branches that used to build successfully)
FAILURE: Build failed with an exception.
- What went wrong:
Failed to capture snapshot of input files for task ‘:app:bundleReleaseJsAndAssets’ property ‘$1’ during up-to-date check.
> Could not list contents of ‘/Users/vagrant/git/node_modules/.bin/detox’. Couldn’t follow symbolic link.
- Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
- Exception is:
org.gradle.api.UncheckedIOException: Failed to capture snapshot of input files for task ‘:app:bundleReleaseJsAndAssets’ property ‘$1’ during up-to-date check.
at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository.snapshotTaskFiles(CacheBackedTaskHistoryRepository.java:333)
…
Environment:
Build OS? Fails on OS X 10.0.0 El Capitan (previously it worked on OS X 10.11 El Capitan)
Which build Step causes the issue and which version of the step? gradle-runner@1.8.3
Reproducibility
- Rebuild and removing node_modules before
npm i
oryarn
does not fix the issue - The builds always fail (even the older ones that used to build successfully)
- When did the issue start? Last successful build was Friday 2018-09-28 13:04, first unsuccessful build Monday 2018-10-01 12:26
- iOS builds also fail now with a different error, I will make a different ticket for it
Local reproduction
I can’t reproduce the issue on my machine (Mac OS High Sierra 10.13.5) even after clearing cache.