clean dir before build
This commit is contained in:
parent
a6fff5ad6a
commit
8dda6e5bfd
@ -67,6 +67,7 @@ public class PlanSpec {
|
|||||||
public Job creatGinCloudPlatformImagesJob(String project) {
|
public Job creatGinCloudPlatformImagesJob(String project) {
|
||||||
return new Job("Build Job: " + project, new BambooKey(project.toUpperCase().replaceAll("-", "")))
|
return new Job("Build Job: " + project, new BambooKey(project.toUpperCase().replaceAll("-", "")))
|
||||||
.tasks(
|
.tasks(
|
||||||
|
new CleanWorkingDirectoryTask().description("My clean working directory task"),
|
||||||
// Checkout
|
// Checkout
|
||||||
new VcsCheckoutTask().description("Checkout Default Repository")
|
new VcsCheckoutTask().description("Checkout Default Repository")
|
||||||
.checkoutItems(new CheckoutItem().defaultRepository()),
|
.checkoutItems(new CheckoutItem().defaultRepository()),
|
||||||
@ -96,6 +97,7 @@ public class PlanSpec {
|
|||||||
public Job createRelease() {
|
public Job createRelease() {
|
||||||
return new Job("Create Release", new BambooKey("CRLS"))
|
return new Job("Create Release", new BambooKey("CRLS"))
|
||||||
.tasks(
|
.tasks(
|
||||||
|
new CleanWorkingDirectoryTask().description("My clean working directory task"),
|
||||||
new VcsCheckoutTask().description("Checkout Default Repository")
|
new VcsCheckoutTask().description("Checkout Default Repository")
|
||||||
.checkoutItems(new CheckoutItem().defaultRepository()).cleanCheckout(true),
|
.checkoutItems(new CheckoutItem().defaultRepository()).cleanCheckout(true),
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user