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

publishHTML on blueocean pipeline editor crashes

    XMLWordPrintable

Details

    • Blue Ocean 1.0-rc3

    Description

      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.

      Attachments

        Issue Links

          Activity

            abayer Andrew Bayer added a comment -

            This is related to JENKINS-41456 - perhaps a more general case.

            abayer Andrew Bayer added a comment - This is related to  JENKINS-41456 - perhaps a more general case.
            jamesdumay James Dumay added a comment -

            Another conversion issue I suspect is related to declarative rather than the editor. Feel free to bounce this back to me abayer if thats not the case.

            jamesdumay James Dumay added a comment - Another conversion issue I suspect is related to declarative rather than the editor. Feel free to bounce this back to me abayer if thats not the case.
            abayer Andrew Bayer added a comment -

            So yeah, this is a dupe of JENKINS-41456 which I just realized I could fix. So yay!

            abayer Andrew Bayer added a comment - So yeah, this is a dupe of JENKINS-41456 which I just realized I could fix. So yay!
            bitwiseman Liam Newman added a comment -

            Bulk closing resolved issues.

            bitwiseman Liam Newman added a comment - Bulk closing resolved issues.

            People

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

              Dates

                Created:
                Updated:
                Resolved: