sonar now runs after build stage

This commit is contained in:
Matthias Bisping 2022-03-18 15:14:21 +01:00
parent 9b4112514c
commit 42829d9b13

View File

@ -72,8 +72,8 @@ public class PlanSpec {
project(), project(),
SERVICE_NAME, new BambooKey(SERVICE_KEY)) SERVICE_NAME, new BambooKey(SERVICE_KEY))
.description("Docker build for pyinfra") .description("Docker build for pyinfra")
// .variables() .stages(
.stages(new Stage("Build Stage") new Stage("Build Stage")
.jobs( .jobs(
new Job("Build Job", new BambooKey("BUILD")) new Job("Build Job", new BambooKey("BUILD"))
.tasks( .tasks(
@ -98,7 +98,9 @@ public class PlanSpec {
.dockerConfiguration( .dockerConfiguration(
new DockerConfiguration() new DockerConfiguration()
.image("nexus.iqser.com:5001/infra/release_build:4.2.0") .image("nexus.iqser.com:5001/infra/release_build:4.2.0")
.volume("/var/run/docker.sock", "/var/run/docker.sock")), .volume("/var/run/docker.sock", "/var/run/docker.sock"))),
new Stage("Sonar Stage")
.jobs(
new Job("Sonar Job", new BambooKey("SONAR")) new Job("Sonar Job", new BambooKey("SONAR"))
.tasks( .tasks(
new CleanWorkingDirectoryTask() new CleanWorkingDirectoryTask()
@ -174,6 +176,4 @@ public class PlanSpec {
.whenInactiveInRepositoryAfterDays(14)) .whenInactiveInRepositoryAfterDays(14))
.notificationForCommitters()); .notificationForCommitters());
} }
} }