Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,462,689
Community Members
 
Community Events
176
Community Groups

changing branch setting from create: for-pull-request to create: for-new-branch caused error

com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException: Plan branch / workflow: Default plan repository doesn't support 'PULL_REQUEST' workflow. Don't use this setting or choose another repository as default
20-Jan-2023 16:05:02	java.lang.IllegalArgumentException: com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException: Plan branch / workflow: Default plan repository doesn't support 'PULL_REQUEST' workflow. Don't use this setting or choose another repository as default
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.lambda$validateAndCreateRepositoryObjects$21(PlanConfigImportServiceImpl.java:1271)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:129)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.validateAndCreateRepositoryObjects(PlanConfigImportServiceImpl.java:1245)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.lambda$modifyTopLevelPlanFunction$2(PlanConfigImportServiceImpl.java:552)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.core.ScopedExclusionServiceImpl.tryWithLock(ScopedExclusionServiceImpl.java:74)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.modifyExistingTopLevelPlan(PlanConfigImportServiceImpl.java:454)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.lambda$importPlan$0(PlanConfigImportServiceImpl.java:419)
20-Jan-2023 16:05:02		at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.execute(BambooTransactionHibernateTemplate.java:28)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.importPlan(PlanConfigImportServiceImpl.java:398)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.rss.DefaultSpecsConsumer.importPlanProperties(DefaultSpecsConsumer.java:141)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.rss.importers.PlanImporterProvider.lambda$getEntityProvider$1(PlanImporterProvider.java:38)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsWithImporter(AllTypesSpecsImporter.java:130)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsOfAllTypes(AllTypesSpecsImporter.java:69)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.rss.YamlSpecsImportServiceImpl.lambda$processSimplifiedYaml$2(YamlSpecsImportServiceImpl.java:112)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.rss.SpecsOptimizeProcessor.processSpecs(SpecsOptimizeProcessor.java:43)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.rss.YamlSpecsImportServiceImpl.processSimplifiedYaml(YamlSpecsImportServiceImpl.java:108)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.tryProcessYaml(RepositoryStoredSpecsServiceImpl.java:338)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.runBambooSpecs(RepositoryStoredSpecsServiceImpl.java:184)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl.runRssDetection(RssDetectionServiceImpl.java:374)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.detection.RssDetectionRunnable.run(RssDetectionRunnable.java:42)
20-Jan-2023 16:05:02		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
20-Jan-2023 16:05:02		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
20-Jan-2023 16:05:02		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
20-Jan-2023 16:05:02		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
20-Jan-2023 16:05:02		at java.lang.Thread.run(Thread.java:745)
20-Jan-2023 16:05:02	Caused by: com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException: Plan branch / workflow: Default plan repository doesn't support 'PULL_REQUEST' workflow. Don't use this setting or choose another repository as default
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.PlanConfigImportValidationService.validateRepositorySupportsPlanBranchWorkflow(PlanConfigImportValidationService.java:161)
20-Jan-2023 16:05:02		at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.lambda$validateAndCreateRepositoryObjects$21(PlanConfigImportServiceImpl.java:1266)
20-Jan-2023 16:05:02		... 29 more

 

1 answer

1 vote

It looks like you try to use PULL_REQUEST option for repository that doesn't support pull request detections like Git or Subversion. Pull request detection is supported for Bitbucket Server and Bitbucket Cloud repository types

After deletion of all those plans and again merging with for-new-branch,, it worked fine. those repo are bitbucket server repo and now it is working,, these flakiness in yaml repo makes it very hard to debug issues and test things.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events