Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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: Enabling scan for bamboo specs disables pushtrigger and the yaml file is ignored.

We have upgraded to Bamboo 6.3 and I wanted to use the YAML bamboo-specs feature. I've followed the instructions and here:

https://confluence.atlassian.com/bamboo0603/tutorial-bamboo-specs-yaml-stored-in-bitbucket-server-946020346.html

and here:

https://confluence.atlassian.com/bamboo0603/bamboo-yaml-specs-939492100.html

but I still have problems.

1) The biggest concern is that when I enable the "Scan for Bamboo Specs" in the "Linked Repositories" section, then the created job isn't triggered anymore at all. I have two Bamboos (6.2 and 6.3) connected to BitBucket (5.7) and I have the same job on the 6.2 one as well, but without "Scan for Bamboo Specs" enabled, and that one is triggered fine every time.

2) I have a file in the repo; bamboo-specs/bamboo.yml (I've tried calling it .yaml, and I've also tried placing the file in the repo-root as well). The file contains the dragon-slayer example. But it doesn't do anything. Even when I add a repository polling trigger, and after a push it detects the change, but the yaml file is ignored...

What could my problems be?

2 answers

1 accepted

0 votes
Answer accepted
Omar Herrera Community Leader Mar 01, 2018

Hi @Albert Rigo,

I followed the two links that are you reviewed.


1. In this point try re-make the linked applications from bamboo 6.3 to bitbucket, I think that is a bug I'm no sure, but after I did the application links all been woking unitl now.

2. I'm sharing with you a bamboo.yml that I used in my test escenary and I expect it is useful for you.

Additional you must push the changes to branch marked as default on the linked repository.

 

---
project:
key: BAM
plan:
key: AMB
name: Bamboo image in docker
stages:
- jobs:
- scripts:
- export registryAddress=${bamboo.registryAddress}
- export TagName=${bamboo.buildNumber}
- export AppName=$(echo "${registryAddress}/${bamboo.planKey}" | tr '[:upper:]' '[:lower:]')
- docker-compose -p ${bamboo.planKey} build


requirements:
- system.docker.executable

Thanks for the reply @Omar Herrera

1) I removed and re-added the application link between bamboo 6.3 and bitbucket, but it didn't help me.

The thing is still that if I disable the "scan for bamboo specs", the build gets triggered on commit, but as soon as I enable it, no the job is no longer triggered.

2) Thanks, but I haven't come so far that it actually reads my yaml file :(

Omar Herrera Community Leader Mar 03, 2018

Hi, I understand. Try this for troubleshotting.

1. Re-enable bamboo specs.

2. Setup acces to this repo to all proyects and deployments.

3. Open bamboo logs.

4. Push a commit to default branch.

5. Check the logs, I think there is a error on processing the yml that you can't see.

Additional you can check the email setup because this is the way that you receive the results of bamboo specs.

Thanks again for helping.

But I don't think it's a yml processing problem.

When I enable the "scan for bamboo specs" after I've removed the bamboo.yml, and even on a completely new repo without bamboo.yml anywhere, it still doesn't trigger a build (which is an empty build, it should just detect that there is a change).

Trying to get access to the logs now (I'm not a server admin).

After reading the errorlog, I found:

java.lang.RuntimeException: JGit implementation does not support this operation, please use native Git

The server is a Windows machine and I installed git for windows on it now. And now it works!

Thanks for the help @Omar Herrera, you pointed me to the log files :)

Omar Herrera Community Leader Mar 06, 2018

Nice @Albert Rigo a pleasure to help you.

@Albert Rigo Did you ever figure this out? I can't find any Atlassian documentation that discusses the naming conventions for spec files and how the scan process locates them.

Hi @RobertV

I have since stopped using Bamboo (haven't touched it since maybe a year back), but as I remember it, your file needs to be the following in the repo:

bamboo-specs/bamboo.yml

But I don't really know how the scan process works.

Sorry for not knowing more.

/A

I got the same problem when using YML file. In the log file I could see the following error.

"Bamboo Specs have already been executed for a newer revision"

Suggest an answer

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

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

190 views 4 6
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