I am converting a Jenkins job from manual configuration to DSL, which means I'm trying to create a DSL script that creates the job, as it is today.
Currently, the task is specified by a parameter, and one of the parameters is of the Build Selector for Copy Artifact type. I can see in the XML workplace that this is a copyartifact plugin and, in particular, I need to use BuildSelectorParameter.
However, the Jenkins DSL API does not have instructions on using this plugin to set a parameter - it only has help in using it to create a build step that is not what I need.
I also cannot find anything to do with this parameter in the API.
I want to include something in the DSL semester of a script that will create a parameter in the generated job that matches what is in the image.
parameter
If I need to use the configure block, any advice on this subject would be welcome, because for beginners the documentation on this subject is useless.
source share