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

publishHTML on blueocean pipeline editor crashes

    • Blue Ocean 1.0-rc3

      In my repository (https://github.com/bitwiseman/hermann), I went to edit an existing pipeline in the branch "blog/declarative/html".

      In this pipeline I have the following: 

            post {
              success {
                // publish html
                publishHTML target: [
                    allowMissing: false,
                    alwaysLinkToLastBuild: false,
                    keepAll: true,
                    reportDir: 'coverage',
                    reportFiles: 'index.html',
                    reportName: 'RCov Report'
                  ]
              }
            }
      

      I then saved that pipeline to the branch issue/blue-ocean-editor/html .
      On save, the editor converted that to:

            post {
              success {
                publishHTML([
                                allowMissing: false,
                                alwaysLinkToLastBuild: false,
                                keepAll: true,
                                reportDir: 'coverage',
                                reportFiles: 'index.html',
                                reportName: 'RCov Report'
                              ])
                  
                }
                
              }
      

       
      When I try to edit that converted pipeline again, I get the error shown in the attached screenshot and cannot edit the pipeline anymore.

          [JENKINS-43000] publishHTML on blueocean pipeline editor crashes

          Liam Newman created issue -
          James Dumay made changes -
          Sprint New: Blue Ocean 1.0-rc2 [ 261 ]
          James Dumay made changes -
          Rank New: Ranked higher
          Andrew Bayer made changes -
          Link New: This issue relates to JENKINS-41456 [ JENKINS-41456 ]
          James Dumay made changes -
          Component/s New: pipeline-model-definition-plugin [ 21706 ]
          Component/s Original: blueocean-pipeline-editor-plugin [ 21828 ]
          Assignee Original: James Dumay [ jamesdumay ] New: Andrew Bayer [ abayer ]
          Andrew Bayer made changes -
          Link New: This issue duplicates JENKINS-41456 [ JENKINS-41456 ]
          Andrew Bayer made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Liam Newman made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            abayer Andrew Bayer
            bitwiseman Liam Newman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: