Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send notifications on build start #16

Open
gummiboll opened this issue Oct 6, 2020 · 2 comments
Open

Send notifications on build start #16

gummiboll opened this issue Oct 6, 2020 · 2 comments

Comments

@gummiboll
Copy link

Hello

This plugin only sends notifications to mqtt when the build has run(?), would it be possible to get it to send notifications when builds are started too?

@gdubya
Copy link
Owner

gdubya commented Oct 6, 2020

Hi @gummiboll, you are correct that the main class for this plugin extends the hudson.tasks.Notifier class, which runs only after the build is completed.

It's been a while since I looked into Jenkins plugin development so I'm not currently sure of the best way to send a notification on build start, but perhaps it can be done by extending hudson.tasks.BuildWrapper.

I'll have a look at some other plugins to see what they do. Or feel free to send a PR that I can merge in!

@gummiboll
Copy link
Author

Great! The slack notification plugin is probably a good place to start since it has multiple options on when to send notifications.

If I had, any at all, java experience I would definitely just make a PR instead of a issue :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants