Issue
- We are facing an issue where the builds are failing and we are getting the below error:
org.jenkinsci.plugins.workflow.steps.SynchronousResumeNotSupportedException: Resume after a restart not supported for non-blocking synchronous steps at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.onResume(SynchronousNonBlockingStepExecution.java:75) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:187) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:182) at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1138) at org.jenkinsci.plugins.workflow.flow.DirectExecutor.execute(DirectExecutor.java:33) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1270) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:761) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:136) at com.google.common.util.concurrent.Futures.addCallback(Futures.java:1105) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl.onLoaded(FlowExecutionList.java:182) at jenkins.model.Jenkins.<init>(Jenkins.java:1037)
Environment
- Liferay PaaS
Resolution
- The general analyses has shown that a memory limit was reached and therefore the process couldn't move foward. Check if the properly "org.gradle.parallel=" is active or not. In some cases using the property "org.gradle.parallel=true" can speed up the build time. However, also take into account that the property can require a lot of memory.
- Please consider changing the JVM options and the LCP.json to adjust memory usage for Jenkins.
Additional Information