Plugin: how do I trigger a preoperation plugin before saving any jobs?

11 views
Skip to first unread message

Victor Martinez

unread,
Apr 2, 2015, 1:12:14 PM4/2/15
to jenkins...@googlegroups.com
Hi guys,

I wonder if you know if I can code some kind of plugin which will run every time someone saves/apply a particular job configuration, a kind of pre/post operation hooks.

Appreciate your help

Thanks

Eric Pyle

unread,
Apr 2, 2015, 2:01:26 PM4/2/15
to jenkins...@googlegroups.com
You could probably look at the code for the JobConfigHistory plugin,
because it records the config.xml each time you save or apply a job
configuration.

Eric

Victor Martinez

unread,
Apr 2, 2015, 2:07:04 PM4/2/15
to jenkins...@googlegroups.com
That's a good spot. Thanks

Victor Martinez

unread,
Apr 2, 2015, 2:57:31 PM4/2/15
to jenkins...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages