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

The links in the slack notifications don't resolve

    XMLWordPrintable

Details

    Description

      I am using CucumberReportPublisher to publish the Cucumber reports.
      I can browse the report in Jenkins, links, captured screenshots and trend graphs all work fine.

      I then added cucumber-slack-notifier and although it does send the result summary to Slack the links in the Slack message don't resolve as they don't include the job name:

      Here's the job:

      node {
      
         // CucumberReportPublisher step here
      
         cucumberSlackSend channel: '#test', failOnError: true, json: '.cucumber/features.json'
      }
      
      

      Here's the url to one of the features in the published Cucumber report in Jenkins:

      https://jenkins/job/ProjectA/job/DEVOPS-309_capture-cucumber-reports/2/cucumber-html-reports/report-feature_features-add_new_client-feature.html

      Link to the same feature in the Slack message:

      https://jenkins/job/DEVOPS-309_capture-cucumber-reports/2/cucumber-html-reports/features/add_new_client-feature.html

      Link to the build in the Slack message:

      https://jenkins/job/DEVOPS-309_capture-cucumber-reports/2/cucumber-html-reports/

      The actual working link:

      https://jenkins/job/Casebook/job/DEVOPS-309_capture-cucumber-reports/2/cucumber-html-reports

      Attachments

        Activity

          zhelyan Zhelyan Panchev created issue -
          zhelyan Zhelyan Panchev made changes -
          Field Original Value New Value
          Description I am using {{CucumberReportPublisher}} to publish the Cucumber reports.
          I can browse the report in Jenkins, links, captured screenshots and trend graphs all work fine.

          I then added {{cucumber-slack-notifier}} and although it does send the result summary to Slack the links in the Slack message don't resolve as they don't include the job name:

          Here's the job:

          {code:java}

          node {

             // CucumberReportPublisher step here

             cucumberSlackSend channel: '#test', failOnError: true, json: '.cucumber/features.json'
          }

          {code}

          Here's the url to one of the features in the published Cucumber report in Jenkins:

          {{https://jenkins/job/ProjectA/job/DEVOPS-309_capture-cucumber-reports/2/cucumber-html-reports/report-feature_features-add_new_client-feature.html}}

          Link to the same feature in the Slack message:

          {{https://jenkins/job/DEVOPS-309_capture-cucumber-reports/2/cucumber-html-reports/features/add_new_client-feature.html}}

          Link to the build in the Slack message:

          {{https://jenkins/job/DEVOPS-309_capture-cucumber-reports/2/cucumber-html-reports/}}

          The actual working link:

          {{https://jenkins/job/Casebook/job/DEVOPS-309_capture-cucumber-reports/2/}}
          I am using {{CucumberReportPublisher}} to publish the Cucumber reports.
          I can browse the report in Jenkins, links, captured screenshots and trend graphs all work fine.

          I then added {{cucumber-slack-notifier}} and although it does send the result summary to Slack the links in the Slack message don't resolve as they don't include the job name:

          Here's the job:

          {code:java}

          node {

             // CucumberReportPublisher step here

             cucumberSlackSend channel: '#test', failOnError: true, json: '.cucumber/features.json'
          }

          {code}

          Here's the url to one of the features in the published Cucumber report in Jenkins:

          {{https://jenkins/job/ProjectA/job/DEVOPS-309_capture-cucumber-reports/2/cucumber-html-reports/report-feature_features-add_new_client-feature.html}}

          Link to the same feature in the Slack message:

          {{https://jenkins/job/DEVOPS-309_capture-cucumber-reports/2/cucumber-html-reports/features/add_new_client-feature.html}}

          Link to the build in the Slack message:

          {{https://jenkins/job/DEVOPS-309_capture-cucumber-reports/2/cucumber-html-reports/}}

          The actual working link:

          {{https://jenkins/job/Casebook/job/DEVOPS-309_capture-cucumber-reports/2/cucumber-html-reports}}

          People

            garethjevans Gareth Evans
            zhelyan Zhelyan Panchev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: