update planspec in order to add pyinfra as subrepo to bamboo, since it cant't be updated on other branches

This commit is contained in:
Julius Unverfehrt 2022-06-22 12:43:58 +02:00
parent 268329a57f
commit 0858a69364

View File

@ -84,6 +84,9 @@ public class PlanSpec {
new VcsCheckoutTask()
.description("Checkout default repository.")
.checkoutItems(new CheckoutItem().defaultRepository()),
new VcsCheckoutTask()
.description("Checkout pyinfra research repository.")
.checkoutItems(new CheckoutItem().repository("RR / pyinfra").path("pyinfra")),
new ScriptTask()
.description("Set config and keys.")
.inlineBody("mkdir -p ~/.ssh\n" +
@ -108,6 +111,9 @@ public class PlanSpec {
new VcsCheckoutTask()
.description("Checkout default repository.")
.checkoutItems(new CheckoutItem().defaultRepository()),
new VcsCheckoutTask()
.description("Checkout pyinfra research repository.")
.checkoutItems(new CheckoutItem().repository("RR / pyinfra").path("pyinfra")),
new ScriptTask()
.description("Set config and keys.")
.inlineBody("mkdir -p ~/.ssh\n" +
@ -146,7 +152,7 @@ public class PlanSpec {
.defaultRepository())
.dockerConfiguration(
new DockerConfiguration()
.image("nexus.iqser.com:5001/infra/release_build:2.7.0")),
.image("nexus.iqser.com:5001/infra/release_build:4.4.1")),
new Job("Licence Job", new BambooKey("LICENCE"))
.enabled(false)
.tasks(
@ -163,6 +169,7 @@ public class PlanSpec {
.volume("/etc/maven/settings.xml", "/usr/share/maven/ref/settings.xml")
.volume("/var/run/docker.sock", "/var/run/docker.sock"))))
.linkedRepositories("RR / " + SERVICE_NAME)
.linkedRepositories("RR / pyinfra")
.triggers(new BitbucketServerTrigger())
.planBranchManagement(new PlanBranchManagement()
.createForVcsBranch()