Re: JobDSL: Problem defining copyArtifacts action inside promotion with configure block

2018-02-12 Thread Dirk Heinrichs
Hi, thanks for quick reply. > the `specific` block is not part of the DSL definition of `copyArtifacts` as > far as I see, but you could use any of the below DSLs: > - > /plugin/job-dsl/api-viewer/index.html#path/javaposse.jobdsl.dsl.helpers.step.StepContext.copyArtifacts-buildSelector-specifi

Re: JobDSL: Problem defining copyArtifacts action inside promotion with configure block

2018-02-12 Thread Victor Martinez
Besides of that, the `specific` block is not part of the DSL definition of `copyArtifacts` as far as I see, but you could use any of the below DSLs: - /plugin/job-dsl/api-viewer/index.html#path/javaposse.jobdsl.dsl.helpers.step.StepContext.copyArtifacts-buildSelector-specificBuildSelector - h

Re: JobDSL: Problem defining copyArtifacts action inside promotion with configure block

2018-02-12 Thread Victor Martinez
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 s

JobDSL: Problem defining copyArtifacts action inside promotion with configure block

2018-02-12 Thread Dirk Heinrichs
Hi, while trying to setup a copyArtifacts action inside a promotion, using the following definition actions { copyArtifacts('${PROMOTED_ JOB_NAME}') { buildSelector { specific { buildNumber('${PROMOTED_NUMBER}') } }