How to retrieve Jenkins build parameters using the Groovy API? -
i have parameterized job uses perforce plugin , retrieve build parameters/properties p4.change property that's set perforce plugin.
how retrieve these properties jenkins groovy api?
regarding parameters:
see answer first. list of builds project (obtained per answer):
project.builds when find particular build, need actions of type parametersaction build.getactions(hudson.model.parametersaction). query returned object specific parameters.
regarding p4.change: suspect stored action. in jenkins groovy console actions build contains p4.change , examine them - give idea in code.
Comments
Post a Comment