Bamboo throws Internal server error while trying to import YAML RSS plan
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Bamboo throw Internal server error while trying to import YAML specs which is stored in Bitbucket repository. NullPointerException is seen on Bamboo UI and below is the error stack trace.
1
2
[RssDetectionRunnable] Exception while executing RSS detection for RssDetectionWork[repository=9654321,branch=master]
java.lang.NullPointerException
Environment
Issue is seen on Bamboo 8.1.8 but this might be applicable for any other supported version.
Diagnosis
The problem is seen while trying to setup Bamboo YAML Specs repository in Bamboo. When the repository is scanned for YAML specs Bamboo will throw Internal server error as outlined in summary section.
Looking at <bamboo-home>logs>atlassian-bamboo.log file we can see the following error:
1
2
INFO [17-BAM::SpecsDetection:pool-24-thread-3] [YamlSpecsImportServiceImpl] Bamboo YAML import failed on incorrect YAML
com.atlassian.bamboo.specs.yaml.YamlSpecsValidationException: Plan with name: 'My Test plan' already exists in project 'BAM'. Can't create a new one with same name.
Cause
The problem is that the name which is provided for the plan in the specs file, similar plan already exists on the Bamboo server with the same name, so Bamboo will throw exception as highlighted in the diagnosis section. Bamboo expects a distinct key and a name if we are trying to create a YAML RSS plan.
Solution
We need to provide a distinct name and the key for the plan which we are trying to create via YAML specs, need to modify the below section of the YAML file.
1
2
3
4
5
version: 2
plan:
project-key: TEST
key: DISTINCT_KEY
name: DISTINCT NAME
Was this helpful?