Is it possible somehow (example?) to extract part of the pipeline code
into a separate function?
Example: I'm generating the build parameters dynamically.
The code for it will be same for multiple job types.
I tried to extract that part "parameters{ .... }" into a function but
that doesn't work. I get then something like this:
13:36:49 ERROR: (creator.groovy, line 159) No signature of method: creator.parameters() is applicable for argument types: (creator$_handleBuildParameters_closure1) values: [creator$_handleBuildParameters_closure1@110e75c7]
Any ideas?
Kind regards,
Thomas