-
Bug
-
Resolution: Fixed
-
Low
-
7.0.2
-
None
-
1
-
Severity 2 - Major
-
Issue Summary
Bamboo fails to create Specs code when "Build warnings parser" task is present.
Steps to Reproduce
- Create a plan with at least one repository in it configured.
- Create a task of type "Build warnings parser".
- Explicitly set the repository in the task configuration.
- Click on "View Plan as Java Specs".
Expected Results
Specs code is generated and shown
Actual Results
Bamboo fails to generate code. In the logs we see:
2020-04-09 11:37:27,229 ERROR [http-nio-8085-exec-6] [ViewPlanSpecs] java.lang.NullPointerException at com.atlassian.bamboo.task.export.AbstractRepositoryAwareTaskExporter.getNonDefaultRepositoryRef(AbstractRepositoryAwareTaskExporter.java:71) at com.atlassian.bamboo.warnings.export.WarningsTaskExporter.toSpecsEntity(WarningsTaskExporter.java:120) at com.atlassian.bamboo.task.export.TaskDefinitionExporter.toSpecsEntity(TaskDefinitionExporter.java:59) at com.atlassian.bamboo.configuration.external.helpers.TaskDefinitionExportHelper.toSpecsEntity(TaskDefinitionExportHelper.java:63) at com.atlassian.bamboo.configuration.external.PlanConfigExportServiceImpl.lambda$null$15(PlanConfigExportServiceImpl.java:307) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) at com.atlassian.bamboo.configuration.external.PlanConfigExportServiceImpl.lambda$generateJobs$24(PlanConfigExportServiceImpl.java:308) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1556) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) at com.atlassian.bamboo.configuration.external.PlanConfigExportServiceImpl.generateJobs(PlanConfigExportServiceImpl.java:351) at com.atlassian.bamboo.configuration.external.PlanConfigExportServiceImpl.lambda$generateStages$13(PlanConfigExportServiceImpl.java:287) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Collections$2.tryAdvance(Collections.java:4719) at java.util.Collections$2.forEachRemaining(Collections.java:4727) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) at com.atlassian.bamboo.configuration.external.PlanConfigExportServiceImpl.generateStages(PlanConfigExportServiceImpl.java:291) at com.atlassian.bamboo.configuration.external.PlanConfigExportServiceImpl.generateTopLevelPlanProperties(PlanConfigExportServiceImpl.java:250) at com.atlassian.bamboo.configuration.external.PlanConfigExportServiceImpl.exportPlanToSpecs(PlanConfigExportServiceImpl.java:142) at com.atlassian.bamboo.ww2.actions.build.admin.config.ViewPlanSpecs.code(ViewPlanSpecs.java:51) at com.atlassian.bamboo.ww2.actions.build.admin.config.ViewPlanSpecs.input(ViewPlanSpecs.java:29) (...)
Workaround
By choosing "Default repository" instead of explicitly choosing a repository, Specs code will be generated successfully.
- mentioned in
-
Page Loading...