HTML publisher step cannot be edited in the pipeline editor

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Problem
      HTML publisher step cannot be edited in the pipeline editor

      Original description
      When using the Blue Ocean pipeline editor I cannot make use of the HTML Publisher plugin. I attempt to add a step under a stage by selecting add step and then Publish HTML Reports. I get a field for Target and no matter what I enter in the field I get this error:

       

      • Expecting "class htmlpublisher.HtmlPublisherTarget" but got "<TARGET PARAMS HERE>" of type class java.lang.String instead

      I can temporarily work around this by placing the following code in the Jenkinsfile directly:

       

      publishHTML(target: [
      allowMissing: false,
      alwaysLinkToLastBuild: false,
      keepAll: true,
      reportDir: 'coverage',
      reportFiles: 'index.html',
      reportTitles: "SimpleCov Report",
      reportName: "SimpleCov Report"
      ])

       

      This seems to work but if I modify the pipeline through the UI it will remove the text 'target:' from the parameter yielding:

       

      publishHTML([
      allowMissing: false,
      alwaysLinkToLastBuild: false,
      keepAll: true,
      reportDir: 'coverage',
      reportFiles: 'index.html',
      reportTitles: "SimpleCov Report",
      reportName: "SimpleCov Report"
      ])

       

      Which doesn't work. Once the pipeline runs I get validation errors on the newly generated object from the Blue Ocean UI. Any help would be appriciated.

            Assignee:
            James Dumay
            Reporter:
            Lance Lacoste
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: