I am creating a bamboo plan that will create an artifact. I want any logged in user to be able to manually start the plan, but I only want specific named users to be allowed to download the artifacts. How can I do this?
I am using config as code written in Java for bamboo v9.2.4.
Current Plan creation:
return new Plan(
ProjectFactory.Get(),
"test",
new BambooKey("TEST"))
.pluginConfigurations(new ConcurrentBuilds())
.stages(new Stage("Default Stage")
.jobs(new Job("Default Job",
new BambooKey("JOB1"))
.artifacts(new Artifact()
.name("artifact.txt")
.copyPatterns("artifact.txt")
.required(true))
.tasks(new ScriptTask()
.description("create file")
.inlineBody("echo hello >> artifact.txt"))))
.planBranchManagement(new PlanBranchManagement()
.delete(new BranchCleanup())
.notificationForCommitters());