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

HTML publisher step cannot be edited in the pipeline editor

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • Blue Ocean - 1.3.0
      HTML Publisher - 1.14
      Jenkins - 2.86

      Running on Vagrant using the AWS Debian image (jessie 64 bit)
      Java: openjdk-8-jre
      Latest stable version of chrome

      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.

          [JENKINS-47638] HTML publisher step cannot be edited in the pipeline editor

          Lance Lacoste created issue -
          James Dumay made changes -
          Description Original: 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.
          New: *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.
          Summary Original: Cannot use the HTML Publisher plugin with Blue Ocean New: HTML publisher step cannot be edited in the pipeline editor
          James Dumay made changes -
          Epic Link New: JENKINS-36291 [ 172300 ]
          Richard Bywater made changes -
          Assignee Original: Richard Bywater [ r2b2_nz ] New: James Dumay [ jamesdumay ]
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-51403 [ JENKINS-51403 ]

            jamesdumay James Dumay
            llacoste Lance Lacoste
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: