Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

An error occurred while publishing plan DEMO2-DEMO2

Mojaki Berand
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 17, 2025 edited

Hello all,

I am battling to understand what might be causing what looks like a race condition below when I publish my build plan. A project and repository gets created successfully, however I get an exception back that project is not found. Anyone ever had a similar issue?

 

 

 

2025-03-17 13:45:03,192 INFO [BambooServer] Publishing repository demo2 Repository 2025-03-17 13:45:03,744 INFO [BambooServer] Successfully published repository demo2 Repository 2025-03-17 13:45:03,744 INFO [BambooServer] Publishing plan DEMO2-DEMO2 2025-03-17 13:45:04,116 INFO [BambooServer] An error occurred while publishing plan DEMO2-DEMO2: Project DEMO2 not found. 2025-03-17 13:45:04,117 DEBUG [BambooServer] {"message":"Project DEMO2 not found.","status-code":400,"sub-code":-1} 2025-03-17T13:45:04.122+02:00 ERROR 22324 --- [demo] [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: com.atlassian.bamboo.specs.api.exceptions.BambooSpecsPublishingException: An error occurred while publishing plan DEMO2-DEMO2: Project DEMO2 not found.] with root cause com.atlassian.bamboo.specs.exceptions.BambooSpecsRestRequestException: Project DEMO2 not found. at com.atlassian.bamboo.specs.util.RestHelper.lambda$sendRequest$2(RestHelper.java:72) ~[bamboo-specs-10.0.3.jar:na] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223) ~[httpclient-4.5.14.jar:4.5.14] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165) ~[httpclient-4.5.14.jar:4.5.14] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140) ~[httpclient-4.5.14.jar:4.5.14] at com.atlassian.bamboo.specs.util.RestHelper.sendRequest(RestHelper.java:75) ~[bamboo-specs-10.0.3.jar:na] at com.atlassian.bamboo.specs.util.RestHelper.post(RestHelper.java:183) ~[bamboo-specs-10.0.3.jar:na] at com.atlassian.bamboo.specs.util.SendQueue$1.run(SendQueue.java:23) ~[bamboo-specs-10.0.3.jar:na]

1 answer

1 vote
Shashank Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 18, 2025

Hello Mojaki,

Welcome to Atlassian community.

1. What version of Bamboo are you using ?

2. If you create a project outside of Bamboo Specs from the GUI and use the key in your specs code, do you get the same error ?

Regards,

Shashank Kumar

**please don't forget to Accept the answer if your query was answered**

Mojaki Berand
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 19, 2025

Hello Kumar,

Bamboo version 10.0.3

<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs</artifactId>
<version>10.0.3</version>
</dependency>

If I create on the GUI I don't get any errors. Problem only occurs when I try publish the BuildPlanSpec from the code, the publish method from the BambooServer library is the one that's giving me back that exception on the last line below

final Plan buildPlan = buildPlanSpec.toPlan();
bambooServer.publish(buildPlanSpec.repository());
final String publishResult = (String) bambooServer.publish(buildPlan);

 

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events