GroovyJenkins
GroovyJenkins copied to clipboard
Find way to source scripts for post-build Groovy steps via Git?
Unlike Groovy System script steps done as part of the main build the Post-Build Groovy step used by ProvisionBuilder job doesn't give an obvious option to run via script file instead of copy-pasted script :-(
Thus the FindAndForwardDropletInfo.groovy script hosted here has to be manually copy pasted each time it is changed, or an awkward automation step needs to do it outside standard process.
Maybe there's a way to do it better, like wrapping the script in a jar, putting that on the classpath (an option in the post-build step), and calling it from a tiny script snippet
Addendum: Beware #2 if this is enabled as ProvisionBuilder doesn't currently enable Git and thus doesn't trigger that bug.