-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Medium
-
None
-
Affects Version/s: 8.2.4
-
Component/s: Bamboo Specs
-
None
-
3
-
Severity 3 - Minor
-
6
Issue Summary
This is reproducible on Data Center: yes
Steps to Reproduce
- Create a plan in Bamboo having 2 different linked repositories.
- Create one source code checkout task and add checkout for both the repositories in the same task.
- Delete one repository from the repositories tab for this plan.
- Click on Actions > View plan as Java Specs or Actions > View plan as YAML
Expected Results
The plan's metadata should get displayed.
Actual Results
Below error is throw on the Bamboo UI
java.lang.IllegalStateException: Repository with ID 999999999 does not exist at com.google.common.base.Preconditions.checkState(Preconditions.java:576) at com.atlassian.bamboo.task.export.AbstractRepositoryAwareTaskExporter.getNonDefaultRepositoryRef(AbstractRepositoryAwareTaskExporter.java:74) at com.atlassian.bamboo.task.export.AbstractRepositoryAwareTaskExporter.getNonDefaultRepositoryRef(AbstractRepositoryAwareTaskExporter.java:58) at com.atlassian.bamboo.plugins.vcs.task.export.VcsCheckoutTaskExporter.lambda$toSpecsEntity$0(VcsCheckoutTaskExporter.java:105)
Workaround
Goto Source code checkout task and look for duplicate repositories checkouts which are present and remove one of them, see below attachment as one of the example.
![]()
Note : The deleted repository is replaced with the default repository in the example above