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

Use JiraFinder plugin in Jenkins pipeline(Groovy) type of job.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      I want to use the JiraFinder plugin in jenkins pipeline. So for this have generated the below groovy code from snippet generator of Jenkins.

      junit (
      testResults: '*/test-automation/config/.xml',
      testDataPublishers: [
      [$class: 'JirafaPrecomputer',
      filter: '${TEST_ERROR_DETAILS}',
      jiraUrl: 'https://jira_url/',
      password: 'jira_user',
      username: 'jira_password']])

      But, when i run the above code in a Jenkins job i get below java error. Can you please provide us with a solution for this.

      java.lang.NoSuchMethodError: org.apache.http.impl.client.cache.CacheConfig.setNeverCache1_0ResponsesWithQueryString(Z)V
      at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClient.<init>(DefaultHttpClient.java:155)
      at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:53)
      at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35)
      at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.createWithBasicHttpAuthentication(AsynchronousJiraRestClientFactory.java:42)
      at org.jenkinsci.plugins.jirafa.service.JiraFinderService.connect(JiraFinderService.java:75)
      at org.jenkinsci.plugins.jirafa.JirafaPrecomputer.contributeTestData(JirafaPrecomputer.java:58)
      at hudson.tasks.junit.JUnitResultArchiver.parseAndAttach(JUnitResultArchiver.java:199)
      at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:50)
      at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:23)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
      at hudson.security.ACL.impersonate(ACL.java:290)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Finished: FAILURE

       

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            jholusa Jiri Holusa
            Reporter:
            aashish89 Aashish Rajguru
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: