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]
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**
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);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.