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

SauceLabs results not displayed on Blue Ocean

      Similar to JENKINS-40616.

      See the Jenkinsfile in
      https://github.com/bitwiseman/JS-Nightwatch.js/tree/issue/declarative/sauceConnectPublish

      The saucelabs results are recorded and viewable in stage view but not in Blue Ocean.

          [JENKINS-42242] SauceLabs results not displayed on Blue Ocean

          Gavin Mogan added a comment -

          I'll need to track down how to do it, but I think i can find time to do it soon

          Gavin Mogan added a comment - I'll need to track down how to do it, but I think i can find time to do it soon

          Gavin Mogan added a comment -

          Gavin Mogan added a comment - for future me, https://github.com/cloudbees/blueocean-sample-pipeline-result-ext-plugin might be a good starting place

          Cliff Meyers added a comment -

          halkeye just to confirm I understand the goal here: you want to include the nightwatch test results in the "Tests" tab in Blue Ocean?

          Cliff Meyers added a comment - halkeye just to confirm I understand the goal here: you want to include the nightwatch test results in the "Tests" tab in Blue Ocean?

          Gavin Mogan added a comment -

          cliffmeyers No not really. Sauce labs has our own dashboard for the selenium tests we help run. The plugin parses the output of tests and displays them as build and project actions in the normal jenkins.

          Liam is asking for that same results to be shown in blueocean.

          Right now I'm trying to debate between @ExposedBean and do a new plugin release, or just create a new rest api call that exposes the tiny bits of information I need (mostly its the hmac token which is slightly time sensitive).

          Hopefully that makes a bit of sense.

          Gavin Mogan added a comment - cliffmeyers No not really. Sauce labs has our own dashboard for the selenium tests we help run. The plugin parses the output of tests and displays them as build and project actions in the normal jenkins. Liam is asking for that same results to be shown in blueocean. Right now I'm trying to debate between @ExposedBean and do a new plugin release, or just create a new rest api call that exposes the tiny bits of information I need (mostly its the hmac token which is slightly time sensitive). Hopefully that makes a bit of sense.

          Cliff Meyers added a comment -

          I don't know enough about the Sauce Labs stuff to know if this is feasible, but if it publishes JUnit -style test results then you may be able to do this with the junit archiver.

          We have an acceptance test suite that runs via Selenium + nightwatch and I was able to bundle those to display in the test results view using this code in the Jenkinsfile:
          https://github.com/jenkinsci/blueocean-acceptance-test/blob/master/Jenkinsfile#L148

          Cliff Meyers added a comment - I don't know enough about the Sauce Labs stuff to know if this is feasible, but if it publishes JUnit -style test results then you may be able to do this with the junit archiver. We have an acceptance test suite that runs via Selenium + nightwatch and I was able to bundle those to display in the test results view using this code in the Jenkinsfile: https://github.com/jenkinsci/blueocean-acceptance-test/blob/master/Jenkinsfile#L148

          Gavin Mogan added a comment -

          If the new devs for the project ever look at this, https://github.com/saucelabs/jenkins-sauce-ondemand-plugin-blueocean is the mostly working version I started at the start of the year

          Gavin Mogan added a comment - If the new devs for the project ever look at this, https://github.com/saucelabs/jenkins-sauce-ondemand-plugin-blueocean  is the mostly working version I started at the start of the year

            yfangsl Yeh Fang
            bitwiseman Liam Newman
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: