Why is Jenkins build failing with SynchronousResumeNotSupportedException?
written-by
Sebastian Madaras
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
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)
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.
did-this-article-resolve-your-issue