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. On Monday, October 22, 2018 at 3:24:52 PM UTC+1, Slava Dubrovskiy wrote: > > 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 [email protected]. 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.
