Pull request #248: clean dir before build

Merge in RED/ui from cschabert/PlanSpecjava-1626774370363 to master

* commit '8dda6e5bfda770dcb823ecc4493ad436e4af0c33':
  clean dir before build
This commit is contained in:
Timo Bejan 2021-07-20 11:46:48 +02:00
commit a02b709517

View File

@ -67,6 +67,7 @@ public class PlanSpec {
public Job creatGinCloudPlatformImagesJob(String project) {
return new Job("Build Job: " + project, new BambooKey(project.toUpperCase().replaceAll("-", "")))
.tasks(
new CleanWorkingDirectoryTask().description("My clean working directory task"),
// Checkout
new VcsCheckoutTask().description("Checkout Default Repository")
.checkoutItems(new CheckoutItem().defaultRepository()),
@ -96,6 +97,7 @@ public class PlanSpec {
public Job createRelease() {
return new Job("Create Release", new BambooKey("CRLS"))
.tasks(
new CleanWorkingDirectoryTask().description("My clean working directory task"),
new VcsCheckoutTask().description("Checkout Default Repository")
.checkoutItems(new CheckoutItem().defaultRepository()).cleanCheckout(true),