Details

    • Sprint:
      Blue Ocean 1.2
    • Similar Issues:

      Description

      Ready for release

      This improvement is completed and scheduled for release in 1.2. Check the roadmap page for updates.

      Original request
      I Have a really basic repo I wanted to test with Blue Ocean. As part of the build script

      node {
          stage('Cleanup') {
              sh 'rm -rf ./*'
          }
          stage('Fetch from GitHub') {
              sh 'git clone https://github.com/Lewiscowles1986/julid'
          }
          dir('julid') {
              stage('Test') {
                  sh 'gradle test'
              }
              
              
              stage('Build') {
                  sh 'gradle build'
              }
          }
          stage('Report Gathering') {
              publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'julid/build/reports/tests', reportFiles: 'index.html', reportName: 'JUnit Test Reports'])
              publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'julid/build/reports/jacoco', reportFiles: 'index.html', reportName: 'JaCoCo Coverage Reports'])
          }
          stage('Package') {
              sh 'cd julid && gradle jar'
          }
      }
      

      It still shows in the old UI but not in artifacts or any reports for the Blue Ocean. It's deliberately a really naive example as I am learning and testing new things

        Attachments

          Issue Links

            Activity

            Hide
            kmleinen Kyle Leinen added a comment -

            Anders Pikas, wouldn't you need to set keepAll  to true to get that to happen?

            Show
            kmleinen Kyle Leinen added a comment - Anders Pikas , wouldn't you need to set keepAll  to true to get that to happen?
            Hide
            michaelneale Michael Neale added a comment -

            I am not actually sure how this feature is meant to work, perhaps James Dumay can comment when back from vaction sometime? 

            Show
            michaelneale Michael Neale added a comment - I am not actually sure how this feature is meant to work, perhaps James Dumay can comment when back from vaction sometime? 
            Hide
            apikas Anders Pikas added a comment -

            Kyle Leinen Yes, keepAll:true makes the HTML appear as a link in the artifact list in Blue Ocean. In the old UI the link appears on the left, both in  "PR-919/", and in "PR-919/1/".

            The documentation says "If checked, archive reports for all successful builds, otherwise only the most recent". So I guess the only drawback of having keepAll set to true is the extra space (in my case 43 MB per build for HTML).

            Show
            apikas Anders Pikas added a comment - Kyle Leinen Yes, keepAll:true makes the HTML appear as a link in the artifact list in Blue Ocean. In the old UI the link appears on the left, both in  "PR-919/", and in "PR-919/1/". The documentation says "If checked, archive reports for all successful builds, otherwise only the most recent". So I guess the only drawback of having keepAll set to true is the extra space (in my case 43 MB per build for HTML).
            Hide
            bitwiseman Liam Newman added a comment -

            James Dumay Vivek Pandey 

            Something needs to change here.  Having the user have to use "keepAll:true" to get the item to appear in the artifact list is sufficient to close this bug, I guess, but not great. 

            At minimum there needs to be documentation of this, but that's not great either.  Blue Ocean to tell the user is calling the publishHTML step,  Blue Ocean should give messaging when the publishHTML step is called without this setting that says "keepAll:false is not supported by Blue Ocean".

            Better would be to have links added to the Activity pane for a Pipeline. 

            Show
            bitwiseman Liam Newman added a comment - James Dumay Vivek Pandey   Something needs to change here.  Having the user have to use "keepAll:true" to get the item to appear in the artifact list is sufficient to close this bug, I guess, but not great.  At minimum there needs to be documentation of this, but that's not great either.  Blue Ocean to tell the user is calling the publishHTML step,  Blue Ocean should give messaging when the publishHTML step is called without this setting that says "keepAll:false is not supported by Blue Ocean". Better would be to have links added to the Activity pane for a Pipeline. 
            Hide
            michaelneale Michael Neale added a comment -

            ah hrm - this does seem bad. Not sure of solution though - how does "classic" solve it? Always shows a link to something? 

            Show
            michaelneale Michael Neale added a comment - ah hrm - this does seem bad. Not sure of solution though - how does "classic" solve it? Always shows a link to something? 

              People

              • Assignee:
                jamesdumay James Dumay
                Reporter:
                lewiscowles1986 Lewis Cowles
              • Votes:
                30 Vote for this issue
                Watchers:
                34 Start watching this issue

                Dates

                • Created:
                  Updated: