September 17, 2021, 1:51pm
I would like to receive email (or IRC ping) every time
test_plugin_foreman_discovery_develop [Jenkins] fails. How can I achieve that?
Also I would like to increase how often plugins are tested if there were no commits, by default I think this is weekly, I would appreciate if this was nightly or at least three times a week.
September 20, 2021, 9:32am
Our Jenkins jobs are maintained in
git and uses jenkins-job-builder.
For your particular case the tests are defined here:
That uses a template that’s used for all plugins.
This file has been truncated.
# name: plugin name, e.g. foreman_bootdisk
# repo: git repo name as it may differ, e.g. foreman_bootdisk
# branch: git repo branch to test, e.g. master
# foreman_branch: foreman git repo branch to run on, e.g. develop
cron: 'H/15 * * * *'
- timed: 'H H * * 6'
What you want to add is a
September 20, 2021, 1:19pm
Thanks, I could not find any email example. In the docs, I read that an “email plugin is required”. Do we have such plugin installed?
I would love to have an email, I know, very oldschool but it works for me…
September 20, 2021, 2:33pm
Yes, we’ve used that in the past.
September 21, 2021, 1:30pm
Thanks, I noticed we have IRC bot and I have configured my highlights to be informed. That should do it.
September 24, 2021, 5:55am
So today I missed another test failure and I really need an email, IRC is not enough. My understanding is I can only subscribe to ALL plugin jobs. I can live with that, but instead hardcoding my email there, I would like to propose creating an email alias or mailing list named
ci@theforeman_org so people could freely be added or removed.
@mcorr do you happen to know who has permissions to our google account with our mailing lists? we still ue security mailing lists, adding new user is a quick operation, we could create a list there.
September 28, 2021, 11:09am
Infra & CI - TheForeman and Jenkins reports there. I’d prefer that over sending email to a mailing list. Would that be OK for you?
September 29, 2021, 8:42am
That is actually a great idea. I see there is a groovy code to do that, shall I reuse that helper or can I simply make a regular email notification to that address?