Discussion:
How to set own status message with github-branch-source-plugin ?
Viacheslav Dubrovskyi
2018-10-22 14:24:40 UTC
Permalink
Hi

I use multibranch pipeline and github-branch-source-plugin. And I would
like set custom status message in github for commits and branches.

On this page described how to do it
https://github.com/jenkinsci/github-branch-source-plugin/blob/master/docs/implementation.adoc

But I can't understand what command should be in scripted pipeline?

Help me please.

Thank you.
--
WBD,
Viacheslav Dubrovskyi
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a76769a2-d045-b609-a11e-915c299fa9ae%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Steven Foster
2018-10-22 14:41:40 UTC
Permalink
You can set the status on a github multibranch pipeline using
the https://github.com/jenkinsci/github-scm-trait-notification-context-plugin
It does not require anything in the scripted pipeline/Jenkinsfile, it is
added on the multibranch pipeline configuration as a behavior (where the
branch / PR etc. filter rules are applied).
Press Add and choose "Custom Github Notification Context" and fill in the
context there.

This will allow you to set one static context message for every pipeline
created by the multibranch job, it doesn't let you dynamically set
different messages in the middle of the pipeline.
Post by Viacheslav Dubrovskyi
Hi
I use multibranch pipeline and github-branch-source-plugin. And I would
like set custom status message in github for commits and branches.
On this page described how to do it
https://github.com/jenkinsci/github-branch-source-plugin/blob/master/docs/implementation.adoc
But I can't understand what command should be in scripted pipeline?
Help me please.
Thank you.
--
WBD,
Viacheslav Dubrovskyi
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/db4ba4ab-1b5d-4b0b-b7ba-fc9e41d4e788%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Viacheslav Dubrovskyi
2018-10-22 15:23:43 UTC
Permalink
Thank you, Steven!
Post by Steven Foster
You can set the status on a github multibranch pipeline using
the https://github.com/jenkinsci/github-scm-trait-notification-context-plugin
It does not require anything in the scripted pipeline/Jenkinsfile, it
is added on the multibranch pipeline configuration as a behavior
(where the branch / PR etc. filter rules are applied).
Press Add and choose "Custom Github Notification Context" and fill in
the context there.
This will allow you to set one static context message for every
pipeline created by the multibranch job, it doesn't let you
dynamically set different messages in the middle of the pipeline.
Hi
I use multibranch pipeline and github-branch-source-plugin. And I would
like set custom status message in github for commits and branches.
On this page described how to do it
https://github.com/jenkinsci/github-branch-source-plugin/blob/master/docs/implementation.adoc
<https://github.com/jenkinsci/github-branch-source-plugin/blob/master/docs/implementation.adoc>
But I can't understand what command should be in scripted pipeline?
Help me please.
Thank you.
--
WBD,
Viacheslav Dubrovskyi
--
You received this message because you are subscribed to the Google
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/db4ba4ab-1b5d-4b0b-b7ba-fc9e41d4e788%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/db4ba4ab-1b5d-4b0b-b7ba-fc9e41d4e788%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
WBD,
Viacheslav Dubrovskyi
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4176e607-6dd0-61cd-9eb6-cf90cef46b5e%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...