modified some logic

This commit is contained in:
Timo 2021-05-04 14:23:05 +03:00
parent 64ef7acda0
commit d76279b478

View File

@ -107,9 +107,12 @@ public class PlanSpec {
return new Job("Create Release", new BambooKey("CRLS"))
.tasks(
new VcsCheckoutTask().description("Checkout Default Repository").checkoutItems(new CheckoutItem().defaultRepository()),
new ScriptTask().description("Build")
new ScriptTask().description("Update Versions")
.location(ScriptTaskProperties.Location.FILE)
.fileFromPath("bamboo-specs/src/main/resources/scripts/update-version.sh")
.fileFromPath("bamboo-specs/src/main/resources/scripts/update-version.sh"),
new ScriptTask().description("Set Version Properties")
.location(ScriptTaskProperties.Location.FILE)
.fileFromPath("bamboo-specs/src/main/resources/scripts/set-version.properties.sh")
.environmentVariables("BRANCH_NAME=\"${bamboo.planRepository.branchName}\""),
new InjectVariablesTask().path("version.properties"),
new VcsBranchTask().branchName("release/\"${APP_VERSION}\"").repository("RED / ui"))