configure { project ->
project / 'properties' / 'hudson.plugins.copyartifact.CopyArtifactPermissionProperty' / 'projectNameList' {
'string' "*-foo"
}
}
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/5bc0a9fb-8434-42e5-80ef-ea756484fec3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This by itself should work:configure { project -> project / 'properties' / 'hudson.plugins.copyartifact.CopyArtifactPermissionProperty' / 'projectNameList' { 'string' "*-foo" } }
On Wed, Jan 20, 2016 at 6:39 PM Misty Stanley-Jones <mist...@gmail.com> wrote:
I'm not convinced I did this the right way, but I got it working by doing this:configure {project ->// Allow jobs ending in -suitehelp to copy my artifactsproject / 'properties' << 'hudson.plugins.copyartifact.CopyArtifactPermissionProperty' {'projectNameList'}project / 'properties' / 'hudson.plugins.copyartifact.CopyArtifactPermissionProperty' / 'projectNameList' {'string' "*-foo"}
}On Wednesday, January 20, 2016 at 9:08:40 AM UTC-8, Misty Stanley-Jones wrote:
I'm trying to configure my job to allow jobs with names that match a given pattern (say *-foo) to copy its artifacts. The relevant job XML is:
<hudson.plugins.copyartifact.CopyArtifactPermissionPropertyplugin="copyar...@1.30">
<projectNameList><string>*-foo</string></projectNameList></hudson.plugins.copyartifact.CopyArtifactPermissionProperty>
I don't think I can address this directly via a job DSL property, so I need to use a configure block. I can't seem to get its syntax right. Here is the closest I have gotten, and the XML it generates:configure {project ->project / 'properties' << 'hudson.plugins.copyartifact.CopyArtifactPermissionProperty' {projectNameList "*-foo"}}<properties><hudson.plugins.copyartifact.CopyArtifactPermissionProperty><projectNameList>*-foo</projectNameList></hudson.plugins.copyartifact.CopyArtifactPermissionProperty></properties>As you can see, it is missing the <string> element inside <projectNameList>. I have tried a few different things to get there, but nothing has worked so far. Help is appreciated, as I am sure it is a really simple syntax thing.
--You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.To post to this group, send email to job-dsl...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/5bc0a9fb-8434-42e5-80ef-ea756484fec3%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.
--You received this message because you are subscribed to a topic in the Google Groups "job-dsl-plugin" group.To unsubscribe from this topic, visit https://groups.google.com/d/topic/job-dsl-plugin/bZmFRv49FF4/unsubscribe.To unsubscribe from this group and all its topics, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/CAKZH%3DdbedD_KqN8jqGb%3DJQt1y370K44G5A7n1WC7wyym_Gh6%2Bw%40mail.gmail.com.