After successful build plan: Can't find triggering branch 'branch'
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Triggering in Bamboo allows deployments to a specific environments to be started automatically, when build success triggering method is used with deployment environments
triggers:
- build-success:
branch: branch
When Spec scan occurs, the following error is found in the atlassian-bamboo.log
After successful build plan: Can't find triggering branch 'branch'. Possible values are:
at com.atlassian.bamboo.configuration.external.helpers.TriggerDefinitionExportHelper.validateTriggerProperties(TriggerDefinitionExportHelper.java:185)
at com.atlassian.bamboo.configuration.external.DeploymentImportServiceImpl.validate(DeploymentImportServiceImpl.java:234)
at com.atlassian.bamboo.configuration.external.DeploymentImportServiceImpl.convertYamlToDeployment(DeploymentImportServiceImpl.java:222)
at com.atlassian.bamboo.configuration.external.rss.importers.DeploymentProjectImporterProvider.lambda$getEntityImporter$0(DeploymentProjectImporterProvider.java:30)
at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsWithImporter(AllTypesSpecsImporter.java:130)
at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsOfAllTypes(AllTypesSpecsImporter.java:69)
at com.atlassian.bamboo.configuration.external.rss.YamlSpecsImportServiceImpl.lambda$processSimplifiedYaml$2(YamlSpecsImportServiceImpl.java:112)
at com.atlassian.bamboo.configuration.external.rss.SpecsOptimizeProcessor.processSpecs(SpecsOptimizeProcessor.java:43)
at com.atlassian.bamboo.configuration.external.rss.YamlSpecsImportServiceImpl.processSimplifiedYaml(YamlSpecsImportServiceImpl.java:108)
at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.tryProcessYaml(RepositoryStoredSpecsServiceImpl.java:338)
at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.runBambooSpecs(RepositoryStoredSpecsServiceImpl.java:184)
at com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl.runRssDetection(RssDetectionServiceImpl.java:374)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
at java.base/java.lang.Thread.run(Thread.java:829)
Cause
The plan branch "branch" specified in the -build-success is deleted from remote repository or not present in the plan
Solution
Confirm the branch is created in the plan Using plan branches