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

htmlpublisher - jobdsl - Report directory for html publisher is required

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • job-dsl-plugin
    • 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

          [JENKINS-63513] htmlpublisher - jobdsl - Report directory for html publisher is required

          Peter Simms created issue -

          Richard Bywater added a comment - - edited

          Assigned to Job DSL component as a starting point given that's the interface for this issue. (If it turns out to be part of an issue with the HTML Publisher plugin please yell out)

          Richard Bywater added a comment - - edited Assigned to Job DSL component as a starting point given that's the interface for this issue. (If it turns out to be part of an issue with the HTML Publisher plugin please yell out)
          Richard Bywater made changes -
          Component/s New: job-dsl-plugin [ 16720 ]
          Component/s Original: htmlpublisher-plugin [ 15681 ]
          Assignee Original: Richard Bywater [ r2b2_nz ] New: Daniel Spilker [ daspilker ]
          Jamie Tanna made changes -
          Assignee Original: Daniel Spilker [ daspilker ] New: Jamie Tanna [ jamietanna ]

            jamietanna Jamie Tanna
            psimms_r7 Peter Simms
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: