Maybe, groovy scripts system would be a good direction (plug groovy script). Simply add a new script as an assembly step. You can get access to the object AbstractBuild, running the following code:
import hudson.model.* import hudson.util.* import hudson.scm.* def thr = Thread.currentThread() def build = thr?.executable
I'm trying to solve a similar problem at the moment, but my use case has changed a bit. I'm trying to copy changes from the Upstream project in the same way as it does BlameSubversion plugin. Unfortunately, I cannot use the SCM plugin mentioned above because it does not work with post-commit-hook, so I need to write my own solution.
Take a look at the copyChangeLogFromTriggerJob and copyRevisionFromTriggerJob methods to find out how BlameSubversion does it.
I can copy changes and changes, but I'm still struggling with ChangeLogParser. I would be glad for any help.
source share