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

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

coder January 20, 2023
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
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2023

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

coder January 24, 2023

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
AUG Leaders

Atlassian Community Events