Hi,
does anyone know whether it's possible and how to run a "system groovy
script"
and make the first matrix sub-build set a parameter for all other
sub-builds to read?
I was trying something like below, but I wonder if there is a better way,
that works more reliably
thanks.
String changelist =
build.rootBuild.buildVariableResolver.resolve('changelist')
if (changelist == null) {
changelist = rexec('p4 changes -m 1 -s submitted', null, true, p4env)
changelist = changelist.replaceAll(/^Change (\d+) on .*$/,'$1')
if (build.rootBuild.buildVariableResolver.resolve('changelist') == null) {
println "setting parent changelist to $changelist!"
build.rootBuild.addAction(new ParametersAction(new
StringParameterValue('changelist', changelist)));
} else changelist =
build.rootBuild.buildVariableResolver.resolve('changelist')
}
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/c43b2fe4-4781-452f-bbe7-1d9602bec0ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.