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

The plugin can't post REST API request against the latest JIRA v6.1-OD-02

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello,

      I've stumble upon a problem running fresh unmofified Atlassian JIRA v6.0.3#6099 and Jenkins 1.520

      I've tried the plugin agaist the company's Jira installation but I've got the same error.

      It seems that the REST request in mailformed (status: 400)

      JiraTestResultReporter DEBUG Creating issue in project AUTOMATION at URL http://localhost:9000/rest/api/2/issue/

      JiraTestResultReporter INFO Reporting issue.
      JiraTestResultReporter DEBUG statusLine: HTTP/1.1 400 Bad Request

      JiraTestResultReporter DEBUG statusCode: 400

      ERROR: Publisher JiraTestResultReporter.JiraReporter aborted due to exception
      java.lang.RuntimeException: JiraTestResultReporter ERROR Failed : HTTP error code : 400
      at JiraTestResultReporter.JiraReporter.createJiraIssue(JiraReporter.java:188)
      at JiraTestResultReporter.JiraReporter.perform(JiraReporter.java:108)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
      at hudson.model.Run.execute(Run.java:1618)
      at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:247)
      Finished: FAILURE

      I suggest it's because of incompatiblity between the some of the request fields and the Jira ones.JiraTestResultReporter

      JiraTestResultReporter

      JiraTestResultReporter

      JiraTestResultReporter DEBUG ----------------------------
      JiraTestResultReporter DEBUG projectKey: AUTOMATION
      JiraTestResultReporter DEBUG errorDetails: No alert is present (WARNING: The server did not provide any stacktrace information)
      Command duration or timeout: 2.63 seconds
      Build info: version: '2.32.0', revision: '6c40c187d01409a5dc3b7f8251859150c8af0bcb', time: '2013-04-09 10:39:28'
      System info: os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_17'
      Session ID: e97ecf43-52a8-40ed-ac0e-aeec6d4a6a8e
      Driver info: org.openqa.selenium.firefox.FirefoxDriver
      Capabilities
      Unknown macro:

      {platform=XP, databaseEnabled=true, cssSelectorsEnabled=true, javascriptEnabled=true, acceptSslCerts=true, handlesAlerts=true, browserName=firefox, browserConnectionEnabled=true, nativeEvents=true, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=17.0.6}

      JiraTestResultReporter DEBUG fullName: backoffice.autoreferrals.DuplicateBetPlacedThatHadTimedOutWhileWaitingForCustomerAcceptanceTest.testDuplicateBetPlacedThatHadTimedOutWhileWaitingForCustomerAcceptance
      JiraTestResultReporter DEBUG simpleName: DuplicateBetPlacedThatHadTimedOutWhileWaitingForCustomerAcceptanceTest
      JiraTestResultReporter DEBUG title: Case Result: testDuplicateBetPlacedThatHadTimedOutWhileWaitingForCustomerAcceptance
      JiraTestResultReporter DEBUG packageName: backoffice.autoreferrals
      JiraTestResultReporter DEBUG name: testDuplicateBetPlacedThatHadTimedOutWhileWaitingForCustomerAcceptance
      JiraTestResultReporter DEBUG className: backoffice.autoreferrals.DuplicateBetPlacedThatHadTimedOutWhileWaitingForCustomerAcceptanceTest
      JiraTestResultReporter DEBUG failedSince: 31
      JiraTestResultReporter DEBUG status: FAILED
      JiraTestResultReporter DEBUG age: 1
      JiraTestResultReporter DEBUG ErrorStackTrace: org.openqa.selenium.NoAlertPresentException: No alert is present (WARNING: The server did not provide any stacktrace information)
      Command duration or timeout: 2.63 seconds
      Build info: version: '2.32.0', revision: '6c40c187d01409a5dc3b7f8251859150c8af0bcb', time: '2013-04-09 10:39:28'
      System info: os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_17'
      Session ID: e97ecf43-52a8-40ed-ac0e-aeec6d4a6a8e
      Driver info: org.openqa.selenium.firefox.FirefoxDriver
      Capabilities

      platform=XP, databaseEnabled=true, cssSelectorsEnabled=true, javascriptEnabled=true, acceptSslCerts=true, handlesAlerts=true, browserName=firefox, browserConnectionEnabled=true, nativeEvents=true, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=17.0.6}at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
      at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:187)
      at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:569)
      at org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator.alert(RemoteWebDriver.java:848)
      at EventMarket.modifyPricingMaxBet(EventMarket.java:87)
      at DuplicateBetPlacedThatHadTimedOutWhileWaitingForCustomerAcceptanceTest.testDuplicateBetPlacedThatHadTimedOutWhileWaitingForCustomerAcceptance(DuplicateBetPlacedThatHadTimedOutWhileWaitingForCustomerAcceptanceTest.java:96)

        Attachments

          Activity

          Hide
          yeraze Randall Hand added a comment -

          I'm setting identical results.

          Show
          yeraze Randall Hand added a comment - I'm setting identical results.
          Hide
          schuchj Jennifer schuch added a comment -

          I'm also receiving the same error:

          ERROR: Publisher JiraTestResultReporter.JiraReporter aborted due to exception
          java.lang.RuntimeException: [JiraTestResultReporter] [ERROR] Failed : HTTP error code : 400

          Show
          schuchj Jennifer schuch added a comment - I'm also receiving the same error: ERROR: Publisher JiraTestResultReporter.JiraReporter aborted due to exception java.lang.RuntimeException: [JiraTestResultReporter] [ERROR] Failed : HTTP error code : 400
          Hide
          scips S├ębastien Barbieri added a comment -

          Same issue with Jira 6.0.1

          00:33:51.268 [JiraTestResultReporter] [INFO] Reporting issue.
          00:33:51.268 [JiraTestResultReporter] [DEBUG] statusLine: HTTP/1.1 400 Bad Request
          00:33:51.364
          00:33:51.378 [JiraTestResultReporter] [DEBUG] statusCode: 400
          00:33:51.441
          00:33:51.447 ERROR: Publisher JiraTestResultReporter.JiraReporter aborted due to exception
          00:33:51.456 java.lang.RuntimeException: [JiraTestResultReporter] [ERROR] Failed : HTTP error code : 400
          00:33:51.456 at JiraTestResultReporter.JiraReporter.createJiraIssue(JiraReporter.java:188)
          00:33:51.456 at JiraTestResultReporter.JiraReporter.perform(JiraReporter.java:108)
          00:33:51.456 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          00:33:51.456 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
          00:33:51.456 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757)
          00:33:51.456 at hudson.model.Build$BuildExecution.post2(Build.java:183)
          00:33:51.456 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706)
          00:33:51.456 at hudson.model.Run.execute(Run.java:1703)
          00:33:51.456 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          00:33:51.456 at hudson.model.ResourceController.execute(ResourceController.java:88)
          00:33:51.456 at hudson.model.Executor.run(Executor.java:231)

          Show
          scips S├ębastien Barbieri added a comment - Same issue with Jira 6.0.1 00:33:51.268 [JiraTestResultReporter] [INFO] Reporting issue. 00:33:51.268 [JiraTestResultReporter] [DEBUG] statusLine: HTTP/1.1 400 Bad Request 00:33:51.364 00:33:51.378 [JiraTestResultReporter] [DEBUG] statusCode: 400 00:33:51.441 00:33:51.447 ERROR: Publisher JiraTestResultReporter.JiraReporter aborted due to exception 00:33:51.456 java.lang.RuntimeException: [JiraTestResultReporter] [ERROR] Failed : HTTP error code : 400 00:33:51.456 at JiraTestResultReporter.JiraReporter.createJiraIssue(JiraReporter.java:188) 00:33:51.456 at JiraTestResultReporter.JiraReporter.perform(JiraReporter.java:108) 00:33:51.456 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 00:33:51.456 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) 00:33:51.456 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757) 00:33:51.456 at hudson.model.Build$BuildExecution.post2(Build.java:183) 00:33:51.456 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706) 00:33:51.456 at hudson.model.Run.execute(Run.java:1703) 00:33:51.456 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 00:33:51.456 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:33:51.456 at hudson.model.Executor.run(Executor.java:231)
          Hide
          mvadivelu Magesh Vadivelu added a comment - - edited

          Experiencing same issue with Jenkins 1.480 & Jira 5.1.2

          Here is the stack trace:
          Feb 3, 2014 11:12:12 AM hudson.model.AbstractBuild$AbstractBuildExecution performAllBuildSteps
          WARNING: Publisher JiraTestResultReporter.JiraReporter aborted due to exception
          java.lang.NullPointerException
          at JiraTestResultReporter.JiraReporter.perform(JiraReporter.java:110)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
          at hudson.model.Run.execute(Run.java:1527)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:236)

          Show
          mvadivelu Magesh Vadivelu added a comment - - edited Experiencing same issue with Jenkins 1.480 & Jira 5.1.2 Here is the stack trace: Feb 3, 2014 11:12:12 AM hudson.model.AbstractBuild$AbstractBuildExecution performAllBuildSteps WARNING: Publisher JiraTestResultReporter.JiraReporter aborted due to exception java.lang.NullPointerException at JiraTestResultReporter.JiraReporter.perform(JiraReporter.java:110) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)
          Hide
          ryanwang Ryan Wang added a comment -

          The same problem
          Recording NUnit tests results
          [JiraTestResultReporter] [INFO] Examining test results...
          [JiraTestResultReporter] [INFO] Reporting issue.
          ERROR: Publisher JiraTestResultReporter.JiraReporter aborted due to exception
          java.lang.RuntimeException: [JiraTestResultReporter] [ERROR] Failed : HTTP error code : 400
          at JiraTestResultReporter.JiraReporter.createJiraIssue(JiraReporter.java:188)
          at JiraTestResultReporter.JiraReporter.perform(JiraReporter.java:108)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:756)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:705)
          at hudson.model.Run.execute(Run.java:1695)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:231)

          Show
          ryanwang Ryan Wang added a comment - The same problem Recording NUnit tests results [JiraTestResultReporter] [INFO] Examining test results... [JiraTestResultReporter] [INFO] Reporting issue. ERROR: Publisher JiraTestResultReporter.JiraReporter aborted due to exception java.lang.RuntimeException: [JiraTestResultReporter] [ERROR] Failed : HTTP error code : 400 at JiraTestResultReporter.JiraReporter.createJiraIssue(JiraReporter.java:188) at JiraTestResultReporter.JiraReporter.perform(JiraReporter.java:108) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:756) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:705) at hudson.model.Run.execute(Run.java:1695) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231)
          Hide
          praveenlakshmanan Praveen Lakshmanan added a comment -

          I'm also facing the same scenario, kindly update if anyone fixed this issue.

          Versions:
          Jenkins ver. 1.580
          JiraTestResultReporter plugin 1.0.5
          JIRA: 6.4
          Console Output:
          [JiraTestResultReporter] [DEBUG] ----------------------------
          [JiraTestResultReporter] [DEBUG] Creating issue in project QAA at URL https://guidanz.atlassian.net/rest/api/2/issue/
          [JiraTestResultReporter] [INFO] Reporting issue.
          [JiraTestResultReporter] [DEBUG] statusLine: HTTP/1.1 400 Bad Request
          [JiraTestResultReporter] [DEBUG] statusCode: 400
          ERROR: Publisher JiraTestResultReporter.JiraReporter aborted due to exception
          java.lang.RuntimeException: [JiraTestResultReporter] [ERROR] Failed : HTTP error code : 400
          at JiraTestResultReporter.JiraReporter.createJiraIssue(JiraReporter.java:188)
          at JiraTestResultReporter.JiraReporter.perform(JiraReporter.java:108)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
          at hudson.model.Run.execute(Run.java:1770)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:89)
          at hudson.model.Executor.run(Executor.java:240)
          No emails were triggered.
          Finished: FAILURE

          Show
          praveenlakshmanan Praveen Lakshmanan added a comment - I'm also facing the same scenario, kindly update if anyone fixed this issue. Versions: Jenkins ver. 1.580 JiraTestResultReporter plugin 1.0.5 JIRA: 6.4 Console Output: [JiraTestResultReporter] [DEBUG] ---------------------------- [JiraTestResultReporter] [DEBUG] Creating issue in project QAA at URL https://guidanz.atlassian.net/rest/api/2/issue/ [JiraTestResultReporter] [INFO] Reporting issue. [JiraTestResultReporter] [DEBUG] statusLine: HTTP/1.1 400 Bad Request [JiraTestResultReporter] [DEBUG] statusCode: 400 ERROR: Publisher JiraTestResultReporter.JiraReporter aborted due to exception java.lang.RuntimeException: [JiraTestResultReporter] [ERROR] Failed : HTTP error code : 400 at JiraTestResultReporter.JiraReporter.createJiraIssue(JiraReporter.java:188) at JiraTestResultReporter.JiraReporter.perform(JiraReporter.java:108) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1770) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) No emails were triggered. Finished: FAILURE

            People

            • Assignee:
              Unassigned
              Reporter:
              kanchev_atanas Atanas Kanchev
            • Votes:
              5 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: