It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo Specs not working at all

Dear all,

I followed the documentation examples for bamboo specs.

When I create a linked repository manually or via build/specs, and I press "scan", the text is not updated and says

"This repository was never scanned." after a brief busy.

Furthermore, the site displays:
"No specs logs yet
Bamboo hasn't detected any specs in your repository"

The bamboo logs also don't show anything at all related to specs or repository updates.

Bamboo 6.6.2 build 60606

Bitbucket v5.13.1

What could be wrong here?

3 answers

0 votes

Can you please tell if bamboo-specs folder is in the root of your repository?

Are you able to update plan configuration from local environment with command

mvn -Ppublish-specs

?

More details in this tutorial https://confluence.atlassian.com/bamboo/tutorial-create-a-simple-plan-with-bamboo-java-specs-894743911.html 

I have the same error and the bamboo-specs folder  is in the  root 

Like # people like this

Hello @pradeep kumar,

How does the content of your `bamboo-specs` folder looks like? Can you give more details of which files does it contain?

Victor :)

I have the same problem.

I've configured Bamboo Server with the Bitbucket Cloud Repo and set up the webhook.

When clicked "Test connection", it says "Connection successful".

In the repository "tutorial" I've a folder "bamboo-specs". Inside there is a file "bamboo.yml".

tutorial/bamboo-specs/bamboo.yml

file "bamboo.yml":

---
version: 2
plan:
project-key: ROCKET
name: Launch Ship
key: SHIP

stages
:
- First Build Stage:
jobs:
- Build Ship Server

Build Ship Server
:
tasks:
- script:
- echo 'Hello world!'

I've added to my project "TutorialRepo" (Kye: "ROCKET") in the Bamboo Specs repositories the repository "tutorial" and enabled the "Scan for Bamboo Specs" and scanned by hand.

It never gave any error, and always says:

"This repository was never scanned.

No specs logs yet

Bamboo hasn't detected any specs in your repository."

I'm using Bamboo 6.9.0.

I've double checked and consulted online about this and still nothing...

It should be /bamboo-specs/bamboo.yml not /tutorial/bamboo-specs/bamboo.yml

Capturar.PNG

So my repository is "tutorial". Inside, then, I've "bamboo-specs/bamboo.yml".

@Alexandre Simões I would suggest to contact support team and provide server logs to find the root cause

Like Alexandre Simões likes this

I'm having the same problem (as before), and no matter what I try, it doensn't work. I can publish the java specs manually with maven, but for some reason Bamboo server doesn't seem to pick it up automatically.

The annoying thing is, that it gives no indication visually or in the logs of what's wrong, so it can be fixed.

This is the layout:

repository root

bamboo-specs/

pom.xml

src/main/java

<...>Spec.java

etc

It was all generated from the tutorial with Maven and archtetype.

@Hendrik Beijeman can you please enable DEBUG log level for class com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl. You can do it without Bamboo restart at BAMBOO_URL/admin/configLog4j.action.

Then click Scan button for repository.

Share Bamboo logs starting from line

 AccessLog ...rest/api/latest/repository/REPO_ID/scanNow

Like Alexandre Simões likes this

Hello @Alexandre Simões

Can you double check if your commits with the file `bamboo-specs/bamboo.yml` are in Bitbucket Cloud?

Also @Hendrik Beijeman, is your last commit locally the same commit you have in your Bitbucket? With your specs changes?

Victor

Hello Alexey, Victor,

 

Thank you very much for your quick response!

We've just tested with the log message to DEBUG, as Alexey instructed. Stragely, nothing (specs-related) appears in the atlassian-bamboo.log file.

I did not restart (I also don't have the permission to).

The result is the same - "allow repository to be scanned" is "on". Status is "repository is never scanned", then when forcing with the scan button - a notification pops up that its scannign the repo. And after that, same status - repository is never scanned.

 

We jus ttried it with the yaml file(s) as well. Same result, except that the "scan duration" is almost immediately while with java specs it takes a few seconds.

We're running Atlassian Bamboo version 6.8.0 build 60803 - 30 Jan 19 in a hosted, corporate environment, no cloud.

Please advise!

Kind regards,

Hendrik

One more action. Enable DEBUG log level for class com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl and click Scan button again. Then check logs

Expected log messages

2019-04-26 10:59:57,599 DEBUG [http-nio-6990-exec-1] [RssDetectionServiceImpl] Enqueuing Bamboo Specs detection for repository: 5111809
2019-04-26 10:59:57,600 DEBUG [http-nio-6990-exec-1] [AccessLogFilter] END: 204 admin POST http://localhost:6990/bamboo/rest/api/latest/repository/5111809/scanNow 312620kb-2087kb 2ms
...
2019-04-26 10:59:57,749 DEBUG [15-BAM::SpecsDetection:pool-22-thread-1] [RssDetectionServiceImpl] Skipping Specs detection. Specs revision not detected in repository 'no specs' on branch 'master'.

Hello Alexey,

 

I don;t see my previous answer, I added some screenshots.

In any case, I added that logline, and it made no difference.

 

It almost seems as if the entire feature, or support thereof, is missing from the local installation. Is there an option during install to disable this? Can I check somehow for its presence?

Kind regards,

Hendrik

It's possible to turn this feature off at Security settings

Yes, I saw, but its already on.

Let me confirm

You enabled DEBUG logging for com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl

but don't see log when click Scan button

[RssDetectionServiceImpl] Enqueuing Bamboo Specs detection for repository: 5111809

Correct.  I presume I should see some activity in the logs, when I push to the repo or manually press scan. Yet there is no event/trigger whatsoever.

 

Here is the complete list:

Emergency INFO
JavaScript DEBUG
com.amazonaws WARN
com.amazonaws.services.s3 INFO
com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl DEBUG
com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl DEBUG
com.atlassian.bamboo.persister.xstream.IgnoreMissingFieldXStream INFO
com.atlassian.bamboo.plugins.hg.sshproxy WARN
com.atlassian.bamboo.plugins.ssh WARN
com.atlassian.bamboo.ssh WARN
com.atlassian.bamboo.user.BambooUserManagerImpl WARN
com.atlassian.botocss WARN
com.atlassian.crowd INFO
com.atlassian.marketplace.client.MarketplaceClient WARN
com.atlassian.plugin WARN
com.atlassian.plugin.osgi WARN
com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager WARN
com.atlassian.plugin.servlet.PluginResourceDownload WARN
com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter WARN
com.atlassian.plugin.webresource.DefaultResourceDependencyResolver ERROR
com.atlassian.streams WARN
com.atlassian.tunnel WARN
com.atlassian.usermanagement.userprovisioning INFO
com.atlassian.util.profiling DEBUG
com.opensymphony.xwork2.util.LocalizedTextUtil ERROR
com.opensymphony.xwork2.util.OgnlValueStack ERROR
com.spotify.docker.client WARN
cz.vutbr.web WARN
org.acegisecurity WARN
org.apache INFO
org.apache.activemq.transport.failover.FailoverTransport WARN
org.apache.sshd WARN
org.apache.struts2.config.BeanSelectionProvide WARN
org.apache.velocity WARN
org.eclipse.jetty INFO
org.hibernate INFO
org.hibernate.SQL INFO
org.hibernate.impl.SessionImpl ERROR
org.hibernate.metamodel.internal.MetadataContext ERROR
org.hibernate.orm.deprecation ERROR
org.springframework WARN
org.springframework.beans.factory.support.DependencyInjectionAspectSupport WARN
org.twdata.pkgscanner.ExportPackageListBuilder ERROR
webwork WARN
root INFO

Then I would give you the same advise and create support ticket to let our support engineers to investigate your configuration and logs

0 votes
Omar Herrera Community Leader Dec 31, 2018

Hi @Hendrik Beijeman let me know if you are triying out yml specs or java specs?

I have 6 months working with yml specs ,please check this similiar issue on this thread

Cheers

Omar H.

Hello, sorry for the late reply.

I'm using bamboo specs

Hendrik; the question was yml or java - those are both flavours of Bamboo specs - which one are you using?

have same issue with Java spec. Is there some mandatory structure or file which needs to be in the repo? I uses the java spec tutorial as baseline.

I have the same issue. Is there already a solution?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

696 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you