Why won't Bamboo scan for specs?
Asked by Dov Frankel:

I've followed all the instructions from the Atlassian wiki for creating a Bamboo Specs repo (using Java specs). I can test and publish locally, but when I set up the repo as a Specs Repo, I only ever see "This repository was never scanned". When I click the Scan button, a message comes up saying that scanning started, but then nothing happens, and I don't see any conclusive errors in the logs. I tried using Docker, and not using Docker. I do have Docker installed on the machine instance (we're running in AWS), but don't see any images listed when I run the "docker images" command over SSH.

I'm not sure what further steps I should take to troubleshoot this. I've already tried all the suggestions in the first item of <https://confluence.atlassian.com/bamboo/bamboo-specs-troubleshooting-938844477.html>


Answers:
author: Alexey Chystoprudov
body: Do you have bamboo-specs folder in a root of your repository?

comments: author: Dov Frankel
body: Here's a screenshot of what the project looks like:

![2019-04-23_10-50-30.png](https://community.atlassian.com/t5/image/serverpage/image-id/52356i8011EB189B2E567B/image-size/large?v=v2&px=999 "2019-04-23_10-50-30.png")

Should "src" be named "bamboo-specs"? I created the project with the Maven Archetype the way the tutorial had me do.

This is my pom.xml's contents (sorry, pasting stripped indentation):

```
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs-parent</artifactId>
<version>6.7.1</version>
<relativePath/>
</parent>

<groupId>com.orion.EndurPlugins</groupId>
<artifactId>integration</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs-api</artifactId>
</dependency>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs</artifactId>
</dependency>

<!-- Test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<!-- run 'mvn test' to perform offline validation of the plan -->
<!-- run 'mvn -Ppublish-specs' to upload the plan to your Bamboo server -->
</project>
```


author: Alexey Chystoprudov
body: All content of your repo root should be at bamboo-specs folder

```
/-bamboo-specs
  |-src
  |  \java 
  |-pom.xml
```


author: Dov Frankel
body: Oh... ok. I'll give that a shot. Is that documented and I just missed it? If so, can you please point me there to make sure I didn't miss anything else?


author: Alexey Chystoprudov
body: <https://confluence.atlassian.com/bamboo/tutorial-bamboo-java-specs-stored-in-bitbucket-server-938641946.html>
> **Note** : You must create Bamboo Specs in the `bamboo-specs` directory, under the repository root.


author: Einar Coutin
body: It is important to notice that the java file should be at the root folder with the rest of the content inside bamboo-specs. Don't create bamboo-specs with the java specs in it and then have separate folders.

[@Alexey Chystoprudov](/t5/user/viewprofilepage/user-id/781646) For 6.8 the error logs and success logs are empty.


author: RobertV
body: [@Dov Frankel](/t5/user/viewprofilepage/user-id/1160392) Did you ever figure this out? I'm having the same issue and I can't find any Atlassian documentation that discusses the naming conventions for spec files and how the scan process locates them.

comments: author: Dov Frankel
body: Yes, if you look at the accepted answer thread, you'll see the whole project needs to be inside a \`bamboo-specs\` directory. That's the piece I was missing.


author: RobertV
body: Thanks. I'm not sure how I missed that.


Tags: spec