-
Story
-
Resolution: Fixed
-
Minor
-
None
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" }
- blocks
-
JENKINS-40979 Developer would like to see why the Pipeline has been triggered
-
- Resolved
-
- is blocked by
-
JENKINS-43975 Upgrade to branch-api 2.0.9
-
- Resolved
-
- relates to
-
JENKINS-40979 Developer would like to see why the Pipeline has been triggered
-
- Resolved
-
-
JENKINS-42864 Implement descriptions for BranchEventCause
-
- Closed
-
Code changed in jenkins
User: Stephen Connolly
Path:
pom.xml
src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestGHEventSubscriber.java
src/main/java/org/jenkinsci/plugins/github_branch_source/PushGHEventSubscriber.java
http://jenkins-ci.org/commit/github-branch-source-plugin/7baeac0f9159c35d69391cb44d9e322680bcbdce
Log:
Merge pull request #129 from stephenc/jenkins-41736
JENKINS-41736Leverage the new event description API to expose event descriptionsCompare: https://github.com/jenkinsci/github-branch-source-plugin/compare/f4403aecf858...7baeac0f9159