I have this:
step ([$class: 'CopyArtifact',
projectName: "${jobname}",
filter: "dist/${platform}/${targets}",
selector: [[ $class: 'SpecificBuildSelector'], buildNumber: 33],
target: '.']);
But get the error:
script1427656475248993370172.groovy: 7: Unexpected node type: EXPR found
when expecting type: LABELED_ARG at line: 7 column: 16. File:
script1427656475248993370172.groovy @ line 7, column 16.
selector: [[ $class: 'SpecificBuildSelector'], buildNumber: 33]]);
It does not like 'selector'. I got the 'selector' from the job config
using a freestyle project:
<hudson.plugins.copyartifact.CopyArtifact plugin="[email protected]">
<project>build</project>
<filter>dist/*</filter>
<target></target>
<excludes></excludes>
<selector class="hudson.plugins.copyartifact.SpecificBuildSelector">
<buildNumber>12</buildNumber>
</selector>
<doNotFingerprintArtifacts>false</doNotFingerprintArtifacts>
</hudson.plugins.copyartifact.CopyArtifact>
Advice?
Also, it would be great to know how these parameters map from a job to a
workflow command. Looking through the plugin source doesn't seem to
really help, and I though the job xml was a sure bet, but that isn't
working out so well with this.
Thanks,
tim
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/a45e1353-eaac-4b24-bc82-275ddcb676c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.