GroovyJenkins icon indicating copy to clipboard operation
GroovyJenkins copied to clipboard

Find way to source scripts for post-build Groovy steps via Git?

Open Cervator opened this issue 10 years ago • 1 comments

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

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9643723-find-way-to-source-scripts-for-post-build-groovy-steps-via-git?utm_campaign=plugin&utm_content=tracker%2F2774565&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2774565&utm_medium=issues&utm_source=github).

Cervator avatar Mar 17 '15 03:03 Cervator

Addendum: Beware #2 if this is enabled as ProvisionBuilder doesn't currently enable Git and thus doesn't trigger that bug.

Cervator avatar Mar 17 '15 03:03 Cervator