I think i found it, to many brackets!
selector: [ $class: 'SpecificBuildSelector', buildNumber: 33],
On Sunday, March 29, 2015 at 12:18:36 PM UTC-7, Timothy Wojtaszek wrote:
>
> 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/645a757a-9649-487a-830d-7d4206337906%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.