-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins ver. 2.222.3
HTML Publisher Plugin 1.23
Getting "Report directory for html publisher is required" when trying to use "publishHtml" inside jobdsl for a freestyle job when "report" has no value
This points to "HTML directory to archive" inside the freestyle job which is not a mandatory value however is being treated as mandatory for jobdsl.
Code:
publishHtml {
report('') {
reportName('Tests')
reportFiles('output.html')
keepAll()
allowMissing()
alwaysLinkToLastBuild()
}
}
https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.publishHtml