Open brian428 opened 7 years ago
I have the exact same requirement, is there a way to set the max_old_space_size argument to an NpmTask?
The only option I've found is to set the NODE_OPTIONS environment variable (either before Gradle runs or as a permanent OS env. variable). E.g. export NODE_OPTIONS=--max_old_space_size=8192
.
Ok, I tried setting the NODE_OPTIONS environment variable in the JenkinsFile as a step before the gradle build is kicked in, but still running into Gradle daemon disappearance error.
https://stackoverflow.com/a/60077606/9591122
workaround by setting env vars by writing them into the gradle wrapper script files
Hello Friends,
I'm getting the memory allocation issue during the gulp process using "NodeJS" plugin on jenkins alone, The same works fine when i do the gulp manually.
In reference to #180, I think we need a similar mechanism to pass Node arguments to an NpmTask. I believe that right now the only option is write a custom subclass of NpmTask to accomplish this, which obviously isn't ideal. Thoughts?