Hi there, I don't see any configure block in the copyartifacts dsl definition (https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.helpers.step.StepContext.copyArtifacts) . You might need to use the global configure block to be able to use it accordingly.
But you can simplify the DSL if you use the 'generated DSL' itself, <YOUR_JENKINS_URL>/plugin/job-dsl/api-viewer/index.html#method/javaposse.jobdsl.dsl.helpers.step.StepContext.copyArtifacts so something like the below snippet should work freeStyleJob('test-job') { properties{ promotions { promotion { ... actions { copyArtifacts('upstream') { ... buildSelector { buildNumber('${PROMOTED_NUMBER}') } } } } } } } Cheers -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/68ef8972-1d19-464a-bccd-e70ef9fe2ef4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.