[JIRA] (JENKINS-60803) Support custom status context messages

2 views
Skip to first unread message

matt.a.nelson@gmail.com (JIRA)

unread,
Jan 16, 2020, 7:39:04 PM1/16/20
to jenkinsc...@googlegroups.com
Matt Nelson created an issue
 
Jenkins / New Feature JENKINS-60803
Support custom status context messages
Issue Type: New Feature New Feature
Assignee: Steven Foster
Components: github-scm-trait-notification-context-plugin
Created: 2020-01-17 00:38
Priority: Minor Minor
Reporter: Matt Nelson

The plugin[1] uses the default message[2]. I would like the option to dynamically set a custom message based on discovered during the build.

Example of the default message

This commit looks good

Example custom messages. There are two customizations I would like to be able to add. The option to append the duration of the build. And an option to populate a build context variable that could be read by this plugin when creating the notification context. I am adding some short circuit logic to a pipeline to skip the build when the changeset doesn't match the when rule and would like to indicate that in the message.

This commit looks good (44s)
Build did not match when criteria  (1s)

[1] https://github.com/jenkinsci/github-scm-trait-notification-context-plugin/blob/1.1/src/main/java/org/jenkinsci/plugins/githubScmTraitNotificationContext/NotificationContextTrait.java#L106
[2] https://github.com/jenkinsci/github-branch-source-plugin/blob/github-branch-source-2.5.8/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubNotificationContext.java#L183-L207

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

gmaxera@gmail.com (JIRA)

unread,
Apr 24, 2020, 12:43:04 PM4/24/20
to jenkinsc...@googlegroups.com
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages