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

Better descriptions for jenkins.branch.BranchEventCause

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We want to display the hudson.model.CauseAction "short description" on the UI in Blue Ocean. However, the BranchEventCause has a pretty generic description that isn't meaningful to the user.

      Could we have a better cause description for the branch events?

      "Pull Request opened by i386" etc ?

      Example of current cause action as reported to Blue Ocean

      {
            "_class": "hudson.model.CauseAction",
            "_links": {
              "self": {
                "_class": "io.jenkins.blueocean.rest.hal.Link",
                "href": "/blue/rest/organizations/jenkins/pipelines/blueocean/branches/master/runs/655/cause/"
              }
            },
            "causes": [
              {
                "_class": "jenkins.branch.BranchEventCause",
                "shortDescription": "Branch event"
              }
            ],
            "urlName": "cause"
      }
      

        Attachments

          Issue Links

            Activity

            Hide
            recampbell Ryan Campbell added a comment -

            Last remaining step is to release branch-api 2.0.9 and then this should automatically start working in Blue Ocean automatically.

            Show
            recampbell Ryan Campbell added a comment - Last remaining step is to release branch-api 2.0.9 and then this should automatically start working in Blue Ocean automatically.
            Hide
            jamesdumay James Dumay added a comment -

            Amazing - just saw the PR https://github.com/jenkinsci/github-branch-source-plugin/pull/129 and strings LGTM

            Show
            jamesdumay James Dumay added a comment - Amazing - just saw the PR https://github.com/jenkinsci/github-branch-source-plugin/pull/129 and strings LGTM
            Hide
            recampbell Ryan Campbell added a comment -

            branch-api 2.0.9 has been released with these changes!

            Show
            recampbell Ryan Campbell added a comment - branch-api 2.0.9 has been released with these changes!
            Show
            vivek Vivek Pandey added a comment - BlueOcean PR  https://github.com/jenkinsci/blueocean-plugin/pull/1030 .
            Hide
            jamesdumay James Dumay added a comment -
            Show
            jamesdumay James Dumay added a comment - Ryan Campbell Stephen Connolly thank you!

              People

              • Assignee:
                stephenconnolly Stephen Connolly
                Reporter:
                jamesdumay James Dumay
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: