Hi Oleg,
Naming
Regarding the name, I've named it "global-events-plugin", because:
- global - because it listens to events right across the Jenkins context
- events - because I want to run groovy code in response to events
It's not limited to "RunListener" events, it also contains "Start" and "Stop" events for the plugin. I'd eventually like to extend it to incorporate even more events (along the lines of the "
extreme-notification-plugin").
I suppose it makes sense to incorporate groovy into the name, as it only currently supports running a groovy script. I see groovy as a defacto standard for Jenkins though... is it worth including in the plugin name?
I'd be happy to substitute events for listener, if you think it makes more sense.
How about "global-listener-plugin" or "groovy-events-plugin" or "groovy-listener-plugin"? (I don't really mind).
Script Security
Am I aware of the security implications of the plugin? Yes. This plugin can only be configured through the "Jenkins > Manage Jenkins > Configure System" page, which (as you mentioned) in a production system should only be accessible by an Administrator. As an administrator, I would want the Groovy script to have full access to the Jenkins architecture - e.g. to kick off jobs, to change security settings or run shell commands on the server.
I've had a quick look at the "Script Security Plugin", and it also requires an administrator access to the "Jenkins > Manage Jenkins > In-process Script Approval" page (similar to above). It looks like this plugin is tailored towards Groovy Scripts being configured in the build steps of Jenkins jobs by developers/users, so I'm not sure it's necessarily applicable to the "global-events-plugin" (there were no screenshots or mention of where to configure the plugin).
I see you're a recent committer to the plugin, so perhaps you've got a better idea. How about we put this "integration" in the backlog of work.
If you're happy with the name change suggestions (I am), and sidelining the "integration with Script-Security-Plugin" work until later (and there aren't any more blockers) - can we setup plugin hosting?
Kind regards,
Nick Grealy