Add repository parameter to createPlan

Description

This provides an optimized way to add a default repository to a plan as it is created. It is especially helpful when using --options addDefaultJob as it is done before the default stage and job are added and therefore automatically includes a repository checkout in the default job. Replacement variables (repository and repositoryId) are added just the same as if the addRepository action were used.

When the repository parameter is used on createPlan, Bamboo will automatically add a polling trigger to the plan as well. While this is a common use case, it is also common to not want a polling trigger. You can either specify --options removeTrigger or you can add to your script: -a removeTrigger --plan @plan@ --id 1

Environment

None

Status

Assignee

Bob Swift [Bob Swift Atlassian Apps]

Reporter

Bob Swift [Bob Swift Atlassian Apps]

Labels

None

Support Entitlement

None

Fix versions

Priority

Major
Configure