Jenkins Allure plugin is throwing error

This question shows research effort; it is useful and clear

0

I have installed the latest Allure plugins in Jenkins server. That specific code when it tries to generate allure report, it has thrown me the following error```

[Pipeline] { (Generate Report)
[Pipeline] script
[Pipeline] {
[Pipeline] allure
Unable to auto-install JDK until the license is accepted.
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // ws
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.lang.NullPointerException
at ru.yandex.qatools.allure.jenkins.AllureReportPublisherDescriptor.getCommandlineInstallation(AllureReportPublisherDescriptor.java:112)
at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.getCommandline(AllureReportPublisher.java:346)
at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.generateReport(AllureReportPublisher.java:303)
at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.perform(AllureReportPublisher.java:231)
at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71)
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

are you sure you did all the research necessary?

I ask because “Unable to auto-install JDK until the license is accepted” is a pretty clear error message to me and easily researchable.

I had seen this message but I have java installed on the Jenkins server and it is throwing NullPointerException.
Do allure plugin do java installation. I am not sure why it is trying to do java installation

Hello @vinod and welcome to this community! :wave:

I guess you’re running an Oracle JDK…
My quick and dirty workaround would be to use an OpenJDK build…