cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2513
Views
2
Helpful
7
Replies

How to use Jenkins Webex Bot in multibranch pipeline project?

Piotr S
Level 1
Level 1

Hi,

I'm trying to use Jenkins Webex Bot in a multi branch pipeline project in Jenkins. After adding the bot, the configuration page shows how to set it up with the Notification Plugin in Jenkins. Unfortunately it's not possible to do it for this kind of a job (it works as expected for a regular pipeline job). 

Does anyone know how to configure this plugin in Jenkinsfile or is it even possible? I haven't been able to find a lot of info about that. 

2 Accepted Solutions

Hi @Piotr S,
Thanks for replying back!
Yes, that makes sense. Before commenting on this further, I wanted to understand your thoughts first.
For taking this further from our Bot Developers, this should come as a feature request and you can actually raise a feature request from our AHA Portal - https://ciscocollabcustomer.ideas.aha.io/

We can take it further to our Bot Product team and take further call on that.
Else, definitely you can check with Jenkins community as well if they can try to make some notification enabled for multibranch pipeline.

Regards!
Sandip

View solution in original post

Beautiful! We'll take this further with our Bot R&D team.
Thanks for sharing the AHA link.

Regards!
Sandip

View solution in original post

7 Replies 7

sandiban
Cisco Employee
Cisco Employee

Hi @Piotr S,

Thanks for your patience so far!
To answer your question, I don't think as of now the Jenkins bot has the capability to work with the Jenkins pipeline.
Currently, the Jenkins bot supports to sync with an account with Admin access and one can enable the notifications for situation like when a Job is scheduled or, it's complete as it's demonstrated in the AppHub App description for this Bot.
But Jenkins pipeline itself is a plug-in suite for continuous delivery of pipelines which has completely a different context. This Bot should not be the one to assist on such pipeline project.
Hope this helps! Please let us know for any further queries.

Regards!
Sandip

Thank you for the quick reply @sandiban!

I understand your point, however, the problem I'm trying to solve is independent from a bot itself. As I said, the bot configuration page shows how it can be configured with a pipeline job in Jenkins, but this is not possible with a multi-branch pipeline job the same way (there's no Job Notification section for the latter).  If this is not a solved problem by the bot maintainers, I guess I need to try to reach out to the Notification plugin maintainers, to learn if NotifyEndpoints() call can be used in the Jenkinsfile instead (ref: https://www.jenkins.io/doc/pipeline/steps/notification/)

Yes @Piotr S, that's what - for multibranch pipeline, I don't think the Bot is currently designed for.
But not sure about the second statement about checking with the team, do you want to follow-up with the Bot's notification plugin maintainers for this Jenkins Bot or, plugin maintainers from the Jenkins side?
Based on your confirmation, we can assist further.

Regards!
Sandip 

My assumption is if the Notification plugin *can be* configured in Jenkinsfile, it shouldn't matter for the bot how it's getting it's service hook data. I might be wrong, but I'll wait for any reply to my post in Jenkins community: https://community.jenkins.io/t/how-to-use-notification-plugin-in-multi-branch-pipeline-job/11029

 

I will keep you posted!

That said, if there's something that can be done to support to bot to work with the multibranch pipeline job on your end, it would be a nice new feature  

Hi @Piotr S,
Thanks for replying back!
Yes, that makes sense. Before commenting on this further, I wanted to understand your thoughts first.
For taking this further from our Bot Developers, this should come as a feature request and you can actually raise a feature request from our AHA Portal - https://ciscocollabcustomer.ideas.aha.io/

We can take it further to our Bot Product team and take further call on that.
Else, definitely you can check with Jenkins community as well if they can try to make some notification enabled for multibranch pipeline.

Regards!
Sandip

Beautiful! We'll take this further with our Bot R&D team.
Thanks for sharing the AHA link.

Regards!
Sandip