Skip to content

Gradle build fails randomly #13683

@jniebuhr

Description

@jniebuhr

Description

When building our react native app on our jenkins, the build sometimes just fails. It does that pretty randomly.

This is the log output from the build:

Starting process 'command 'node''. Working directory: /home/jenkins/workspace/ Command: node node_modules/react-native/local-cli/cli.js bundle --platform android --dev false --reset-cache --entry-file index.android.js --bundle-output /home/jenkins/workspace/android/app/build/intermediates/assets/release/index.android.bundle --assets-dest /home/jenkins/workspace/android/app/build/intermediates/res/merged/release
Successfully started process 'command 'node''
Scanning 605 folders for symlinks in /home/jenkins/workspace/node_modules (4ms)
Scanning 605 folders for symlinks in /home/jenkins/workspace/node_modules (4ms)
Loading dependency graph, done.
warning: the transform cache was reset.
# :app:bundleReleaseJsAndAssets FAILED
:app:bundleReleaseJsAndAssets (Thread[main,5,main]) completed. Took 2 mins 38.439 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> Process 'command 'node'' finished with non-zero exit value 137
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 4 mins 18.872 secs
Stopped 0 compiler daemon(s).
script returned exit code 1

Reproduction Steps and Sample Code

./gradlew clean assembleRelease

Additional Information

  • React Native version: 0.42.3
  • Platform: Android
  • Development Operating System: Debian GNU/Linux 8 (jessie)
  • Dev tools: Android Build Tools 25.0.2, Node v7.7.3, NPM 4.1.2, Gradle 2.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions