Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55209

p4 groovy commands with 300 second timeout

    Details

    • Similar Issues:

      Description

      We're seeing an issue where an unshelve command through a p4groovy object is timing out after 5 minutes. There's no other information besides an InterruptedException

       
      00:31:58 [windows-pipeline || windows-pipeline-main-8-0] Unshelve shelve sync label: 292428
      [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] p4
      [Pipeline] [Scheduler] }
      [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] }
      [Pipeline] [Scheduler] {
      [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] // ws
      [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] echo*00:36:58* [windows-pipeline || windows-pipeline-main-8-0] Exception running batch java.lang.InterruptedException
       

      Code snippet

      def p4client = jenkins.p4(credential: context.p4credentials, workspace: workspace)

      def result = p4client.run('unshelve', '-f', '-s', context.shelveSyncLabel.toString())

       

      Call stack snippet

      [Pipeline] End of Pipeline
      java.lang.InterruptedException
      at java.lang.Object.wait(Native Method)
      at hudson.remoting.Request.call(Request.java:177)
      at hudson.remoting.Channel.call(Channel.java:954)
      at hudson.FilePath.act(FilePath.java:1036)
      at hudson.FilePath.act(FilePath.java:1025)
      at org.jenkinsci.plugins.p4.groovy.P4Groovy.run(P4Groovy.java:63)
      at sun.reflect.GeneratedMethodAccessor975.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
       

      This looks to be the same issue as JENKINS-44427 but I'm not sure how to apply that fix to p4 groovy as well.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sean_sutherland Sean Sutherland
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: