-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.292 | P4 Plugin 1.11.5
If you try doing any operations with p4 groovy that last longer than 5 minutes, jenkins kills the build as failure:
Doing this for example on a very large depot that would result in more than 5 minutes of sync time causes the exception.
def p4Object = p4(credential: credentialsId, workspace: workspace)
p4Object.run('sync')
Ideally this should behave the same as the normal checkout that occasionally gives back time to the thread so other things can process and does the normal "..tick.." messages to keep the process alive.
- relates to
-
JENKINS-58161 Agent time out with P4Groovy sync after 5 minutes?
-
- Closed
-
Any plans to revisit this? This is related to https://issues.jenkins.io/browse/JENKINS-58161 which was closed citing https://issues.jenkins.io/browse/JENKINS-58817 as blocking the issue.
However, after that happened more commentary was made here: https://github.com/jenkinsci/workflow-cps-plugin/pull/313#issuecomment-548070971 stating this work should be done in an async step not directly during a cps remote call. If that happens it should operate as desired.
I am not familiar with the architecture of the plugin, is this possible to make this adjustment for p4.run? This is a very frustrating issue.