Discovered the answer to my own question by searching the source for the
Perforce SCM plug-in. The plug-in accepts the following parameters:
// Pull from optional named parameters
boolean wipeBeforeBuild = overrideWithBooleanParameter(
"P4CLEANWORKSPACE", build, this.wipeBeforeBuild);
boolean quickCleanBeforeBuild = overrideWithBooleanParameter(
"P4QUICKCLEANWORKSPACE", build, this.quickCleanBeforeBuild);
boolean wipeRepoBeforeBuild = overrideWithBooleanParameter(
"P4CLEANREPOINWORKSPACE", build, this.wipeRepoBeforeBuild);
boolean forceSync = overrideWithBooleanParameter(
"P4FORCESYNC", build, this.forceSync);
boolean disableChangeLogOnly = overrideWithBooleanParameter(
"P4DISABLECHANGELOG", build, this.disableChangeLogOnly);
boolean disableSyncOnly = overrideWithBooleanParameter(
"P4DISABLESYNCONLY", build, this.disableSyncOnly);
disableSyncOnly = overrideWithBooleanParameter(
"P4DISABLESYNC", build, this.disableSyncOnly);
In my case, I just need to expose P4CLEANWORKSPACE.
Nick
On Thursday, August 15, 2013 10:09:33 AM UTC-4, Nick Desjardins wrote:
>
> I'm using the Perforce plug-in to pull our code before building. I would
> like to enable users to launch a full clean build without having to edit
> the job configuration, yet keep the default as an incremental build.
>
> Is it possible to parameterize the "Clean Workspace Before Each Build -
> Full Wipe" setting in the Perforce SCM configuration, either through the
> build configuration or some hacking using another plug-in? Anyone have any
> tips?
>
> Thanks,
>
> Nick
>
--
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].
For more options, visit https://groups.google.com/groups/opt_out.