
JN450653 (Community Member) asked a question.
Can someone let me know how to get it resolved?
incase if I have to use Results API, how it should be used from Jenkins?
Few Details From Console Output:
The status of the new build is "Results Ready".
The scan finished with policy status 'Pass'.
Ran into problem when generating scan results in Jenkins. Error: [ApiException, No report available.]
com.veracode.apiwrapper.wrapper.cli.exceptions.ApiException: No report available.
at com.veracode.jenkins.plugin.utils.WrapperUtil.getDetailedReport(WrapperUtil.java:163)
at com.veracode.jenkins.plugin.VeracodeNotifier.getScanResults(VeracodeNotifier.java:971)
at com.veracode.jenkins.plugin.VeracodeNotifier.runScanFromRemote(VeracodeNotifier.java:901)
at com.veracode.jenkins.plugin.VeracodeNotifier.perform(VeracodeNotifier.java:692)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1878)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:427)
.png)
Hello @JN450653 (Community Member),
After reviewing a few Customer Support tickets that our team has taken, it seems that this occurs because the 'Maximum Wait Time' value in the Jenkins configuration is set to 0 when the setting 'Wait for scan to complete' is enabled.
Could you please try changing that value to something that is longer than the amount of time the scan usually takes to complete, and then running a new build? Let me know if this works.