11-28-2023 02:19 PM
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.
Solved! Go to Solution.
12-02-2023 10:31 AM
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
12-04-2023 09:02 PM
Beautiful! We'll take this further with our Bot R&D team.
Thanks for sharing the AHA link.
Regards!
Sandip
11-28-2023 08:21 PM
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
11-29-2023 07:41 AM
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/)
11-29-2023 09:42 PM
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
11-30-2023 06:28 AM
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
12-02-2023 10:31 AM
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
12-04-2023 11:41 AM - edited 12-04-2023 11:42 AM
12-04-2023 09:02 PM
Beautiful! We'll take this further with our Bot R&D team.
Thanks for sharing the AHA link.
Regards!
Sandip
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide