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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
That's a good spot. Thanks
Victor Martinez
unread,
Apr 2, 2015, 2:57:31 PM4/2/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message