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

Synopsys Coverity plugin does not work with folder-scoped credentials

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.387.1
      synopsys-coverity 3.0.3

      The default Coverity plugin credentials cannot be overridden with credentials scoped to a folder (when using the coverityIssueCheck or withCoverityEnvironment pipeline steps).

      The pipeline syntax generator only lists global credentials. Even if I enter the credentials ID manually into the snippet, the step fails (see the message below). It works fine with global credentials.

       
      java.lang.IllegalArgumentException: Username and password must be specified.
      at com.synopsys.integration.builder.IntegrationBuilder.assertValid(IntegrationBuilder.java:44)
      at com.synopsys.integration.builder.IntegrationBuilder.build(IntegrationBuilder.java:27)
      at com.synopsys.integration.coverity.config.CoverityServerConfigBuilder.build(CoverityServerConfigBuilder.java:59)
      at com.synopsys.integration.jenkins.coverity.extensions.global.CoverityConnectInstance.getCoverityServerConfig(CoverityConnectInstance.java:97)
      at com.synopsys.integration.jenkins.coverity.stepworkflow.CoverityWorkflowStepFactory.getWebServiceFactoryFromUrl(CoverityWorkflowStepFactory.java:204)
      at com.synopsys.integration.jenkins.coverity.extensions.pipeline.CheckForIssuesStep$Execution.lambda$run$0(CheckForIssuesStep.java:326)
      at com.synopsys.integration.jenkins.coverity.stepworkflow.CoverityJenkinsStepWorkflow.runWorkflow(CoverityJenkinsStepWorkflow.java:45)
      at com.synopsys.integration.jenkins.coverity.extensions.pipeline.CheckForIssuesStepWorkflow.perform(CheckForIssuesStepWorkflow.java:65)
      at com.synopsys.integration.jenkins.coverity.extensions.pipeline.CheckForIssuesStep$Execution.run(CheckForIssuesStep.java:336)
      at com.synopsys.integration.jenkins.coverity.extensions.pipeline.CheckForIssuesStep$Execution.run(CheckForIssuesStep.java:280)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:829)
      Finished: FAILURE

            jrichard James Richard
            matejsoc Matej Soc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: