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

Jenkins gradle java.lang.interrupted exception for Jbehave Automated test

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • gradle-plugin
    • None

      My automated JBehave test cases run fine in IntelliJ but when run as a job in Jenkins, it throws the following error. This error is not consistent with any specific test case/scenario. The job remains idle and the job fails after specific inactivity time set by me. No info on Jenkins log is seen except below.

      java.lang.InterruptedException
       at java.lang.Object.wait(Native Method)
       at java.lang.Object.wait(Object.java:502)
       at java.lang.UNIXProcess.waitFor(UNIXProcess.java:396)
       at hudson.Proc$LocalProc.join(Proc.java:324)
       at hudson.Launcher$ProcStarter.join(Launcher.java:474)
       at hudson.plugins.gradle.Gradle.performTask(Gradle.java:333)
       at hudson.plugins.gradle.Gradle.perform(Gradle.java:225)
       at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
       at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
       at hudson.model.Build$BuildExecution.build(Build.java:206)
       at hudson.model.Build$BuildExecution.doRun(Build.java:163)
       at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
       at hudson.model.Run.execute(Run.java:1727)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)

      I've tried with increasing the timeout value in Storiesrunner.java to 100000, but still sees the issue.

      configuredEmbedder()
       .embedderControls()
       .useStoryTimeouts("100000")

      Jenkins version installed in Linux(Centos Java 1.8): Jenkins ver. 2.105
      Gradle plugin: 1.9. Gradle version 4.9

      performTask(Gradle.java:333) has

      launcher.launch().cmds(args).envs(env).stdout(gca)
       .pwd(rootLauncher).join();

       

       

            wolfs Stefan Wolf
            tejo Tejo K
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: