Fwd: writing a jenkins plugin using gradle: gradlew server --continuous

2017-02-13 Thread Guy Matz
Hello! I'm writing a jenkins plugin using the gradle JPI plugin and it's mostly great. My one problem is that changes to code do not cause the test jenkins server to restart when gradle is run in continuous mode, i.e.: ./gradlew server

Accessing implicit objects in email-ext plugin

2017-02-13 Thread Guy Matz
Hello! I am writing a plugin that is simply a few classes that I want to be able to access from the pre-send script of the email-ext plugin . . . It's all working pretty well, except that I can't figure out how to access the build, logger, msg & cancel implicit vars from within my own objects . .

How can I install a specific version of a plugin using pluginManager?

2018-03-13 Thread Guy Matz
I can do this sort of thing (improvements are welcome!): plugin = 'github' instance = Jenkins.getInstance() pm = instance.getPluginManager() uc = instance.getUpdateCenter() plugin = uc.getPlugin(plugin_name) plugin.deploy() But would like to be able to specify the version of plugin, e.g.

Fwd: Using StaplerRequest to configure a plugin?

2018-03-07 Thread Guy Matz
Is this an appropriate place to ask this kind of question? -- Forwarded message -- From: Guy Matz <guym...@gmail.com> Date: Tue, Mar 6, 2018 at 5:34 PM Subject: Using StaplerRequest to configure a plugin? To: jenkinsci-us...@googlegroups.com Hi! Does anyone know how to au