Re: Adding PreBuildCleanup to job

2013-03-06 Thread Eric Pyle
I found my problem. As expected, it was a simple one. The constructor for PreBuildCleanup requires two arguments; the list of patterns and a boolean determining whether or not to apply the patterns to directories. Somehow I must have been looking at an old version of the javadoc for hudson.plug

Adding PreBuildCleanup to job

2013-03-04 Thread Eric Pyle
I've been working on a Groovy script to add PreBuildCleanup to certain jobs. I followed the example of the Groovy script to add timestamper to all jobs [1]. The problem is, I can't come up with the right constructor for the PreBuildCleanup. I know it must be simple, but I'm just learning to pok