youngmon/atlassian-qna huggingface dataset:
Code Change details are not available in Bamboo Build Commits tab
Asked by ARM Ltd. (old account):

Hi Team  

We are facing problem with our Bamboo instance regarding the Build Commit details.  

As described in the [](https://confluence.atlassian.com/display/BAMBOO/Viewing+a+build+result)<https://confluence.atlassian.com/display/BAMBOO/Viewing+a+build+result>in the Build results there should be the section which will show the code changes.  

Now we have plan configured with the trigger based on code changes.  
The plan is successfully running when someone is changing the code but the details are not shown in the details.  

The screen has the words "**Code Commits** " but the details are absent.  

Could you please let us know if there are any specific configuration that we are missing?  

Regards,  
Areg


Answers:
author: Gretchen
body: It will only show the commits if there are commits since the last build in the branch/trunk you are building from. (Your problem may very well be something that is not this simple - I know you said code was committed. Verify this occurred in the branch/trunk you are building).

For example if I run a build it will pick up any changes since the last build (can be viewed by the bamboo.repository.previous.revision.number versus the bamboo.repository.revision.number - put in a scripted echo to display the two variables in your log file.)

If I run the build again before any new changes have been committed the list of changes will be empty.

I'm guessing this is not your issue but thought I'd throw it out there. You can also run customized and specify an earlier revision that you know is included in the branch you're building from.  

Also take the previous build's revision number and the current builds revision number (or HEAD etc.) and run a manual log command against your repository to identify the specific commits in your repository. This will provide validation of exactly what should have changed (and displayed) in the second build. I'd start there. Figure out what it should say then you have a position to approach Atlassian with in a support ticket that would help them help you. That would verify that indeed there is a discrepancy between what bamboo is showing and what it should be showing.
What is the best way to add software to an Elastic Agent?
Asked by Daniel Siegmann:

I am new to Bamboo and would like to try building my Play Framework application. However, I am using Bamboo Cloud so I can only have Elastic Agents. I need to install Play into the agent (and ideally add it to the $PATH). I may need to add other software too - Scala, SBT, maybe Redis, etc.

What is the best way to do so? Do I need to create my own AMI with this software, or is there a simpler way?


Answers:
author: Daniel Siegmann
body: I eventually settled on placing the software I need in an EBS volume, which I attached to the out-of-the-box Ubuntu image provided in Bamboo. There is documentation on the Bamboo wiki: [Configuring elastic instances to use the EBS](https://confluence.atlassian.com/display/BAMBOO/Configuring+elastic+instances+to+use+the+EBS).

Once the EBS snapshot was created and linked to the image, I added an executable command capability to the elastic agent, which can be added to a job as a task. Note that it isn't possible to define shared capabilities for elastic agents in Bamboo 5.5 - see [BAM-14837](https://jira.atlassian.com/browse/BAM-14837).

I wouldn't exactly call this simple, but it isn't too difficult to set up (or wouldn't have been, if I hadn't encountered a couple of bugs - Atlassian support helped me through them). It seems to be the recommended option in the documentation, thought it's hard to tell. Custom AMIs are possible but explicitly unsupported, so I decided to avoid them.

I do wish Atlassian provided clearer guidance for new Bamboo Cloud users. The documentation seems geared more toward Bamboo Server.


author: Przemek Bruski
body: The simplest way is to use the instance configuration script (see Image Configuration screen in Elastic Bamboo).


Tags: cloud

elastic-agent
Automate build and code quality control using Bamboo On Demand
Asked by Davood Alishahian:

We are using Atlassian **on demand products** (Jira/Confluence/Gliffy/Greenhoppr) and now looking to add **Bamboo** to the list but I am **not sure** if **Bamboo on demand can be fully functional**.

For example, I would like to use **Jmeter, Selenium, and Sonarqube** (code quality control) but I can't find a plug in or document that **confirms they work in Bamboo On demand**.


Answers:
author: Peter Bittner
body: @Przemyslaw Bruski, is there a **list** somewhere of which **plugins** are **available** with Bamboo OnDemand? -- Is it this one here? <https://marketplace.atlassian.com/plugins/app/bamboo/popular?hosting=cloud>

### Tests and Code Analysis for Python/Django? {#toc-hId-1451799431}

We are developing with Django (in Python), and what we'd run after "building" the application is:

1. Static code analysis reports ([flake8](https://pypi.python.org/pypi/flake8), [Pylint](http://www.pylint.org/))

2. Coverage reports ([coverage](https://pypi.python.org/pypi/coverage), [Coveralls](https://coveralls.io/))

3. Unit tests ([py.test](http://pytest.org/))

4. Acceptance tests / front-end tests ([behave](http://pythonhosted.org/behave/), [selenium](http://www.seleniumhq.org/docs/01_introducing_selenium.jsp) on SauceLabs)

5. Load tests (e.g. using [The Grinder](http://michal.karzynski.pl/blog/2014/01/18/performance-testing-django-applications-with-the-grinder/))

None of them are available in Bamboo OnDemand? What if we install them on the EC2 instance, and run them after each build? -- That will probably work, but the integration of the resulting reports with Bamboo will lack, correct?

Interestingly, comparable tools for Java or PHP are available as unsupported plugins for the self-hosted Bamboo version (e.g. PMD, Checkstyle, FindBugs, JMeter Aggregator). <https://marketplace.atlassian.com/search>

### Available Plugins for Tests and Code Analysis {#toc-hId--1100357530}

I've found those digging in the Marketplace, but I'm not sure whether / how well they integrate with Bamboo OnDemand:

* [Behave Pro (BDD testing)](https://marketplace.atlassian.com/plugins/pro.behave.hosted) -- *report plugins, e.g. [Cucumber Reports](https://marketplace.atlassian.com/plugins/com.hindsighttesting.behave.cucumber-bamboo-plugin)* *, are not available for OnDemand*
* [SauceLabs OnDemand (selenium)](https://marketplace.atlassian.com/plugins/com.saucelabs.bamboo.bamboo-sauceondemand-plugin)

Can you/Atlassian tell us more?

comments: author: Peter Bittner
body: Looks like Django test results can be parsed by Bamboo when they are first converted to JUnit XML reports: <https://answers.atlassian.com/questions/35809/how-to-parse-django-tests-with-bamboo>


author: Przemek Bruski
body: The limitation on OnDemand is that you'll only be able to run the plugins already bundled with Bamboo. You will be able to use Selenium, but not JMeter and not Sonarqube.


Tags: jmeter

selenium

sonarqube
How to add other message into bamboo notification email
Asked by Tian:

When a plan/job in bamboo finish, it will send a notification email about the result. I need to add more information about the test, such as jira issues list or other changeable message. I have look at "[Modifying notification templates](https://confluence.atlassian.com/display/BAMBOO/Modifying+notification+templates)", it could only change the notification format, couldn't load data from other resource such as confluence? Doesn't Bamboo support this, if it does, how could i achieve it?


Answers:
author: Przemek Bruski
body: You'd have to go beyond simple notification customisation. Either write your own customisations or modify the Bamboo Java code that prepares the data for current customisations. If you're up for that, please ask some specific questions about what you need.

comments: author: Przemek Bruski
body: Aaaah, sorry, just noticed that you're on OnDemand. Since we're talking about modifying product code, you can't do anything there, sorry.


Tags: cloud
Working with git
Asked by V:

Why is it that there is no native way for bamboo to create a tag for a git repository or to get the username used to access a git repository, but for svn it's available? I thought bamboo would be awesome to work with in collaboration with stash, but as far as my experience goes, it's way easier to build bamboo plans around svn repositories. Is there an explanation for that, and will that change in the future?


Answers:
author: LarsM
body: Support for tagging and branching via a Bamboo Task is tracked here on JAC [](https://jira.atlassian.com/browse/BAM-9139)<https://jira.atlassian.com/browse/BAM-9139>.

But tagging a git commit is not something special ;-)

You just can use a script task and run

```
git tag my-version-numbergit push origin --tags
```

We are using Bamboo in a Git Environment and have defined a global command in Bamboo to tag and push it.

comments: author: V
body: I've tried that, but it wont work since Bamboo will just push the tag to the local repository cache instead of the real repository. Adding the real repository to the remotes is not an option since we are bound to use username:password authentication and there's no easy way to insert that into the bamboo.repository.git.repositoryUrl.


author: LarsM
body: You have to disable shallow Clones and repository caching of course.


author: V
body: Thanks for the tips, would you be so kind to tell me where I can disable the repository caching? I couldn't find that option in the global repository settings or the repository settings for the build plan...


author: Shannon Carey
body: For repository caching, see also [](https://confluence.atlassian.com/display/BAMKB/Merging+and+pushing+to+remote+repository+fails%20)<https://confluence.atlassian.com/display/BAMKB/Merging+and+pushing+to+remote+repository+fails>and [](https://jira.atlassian.com/browse/BAM-11930)<https://jira.atlassian.com/browse/BAM-11930>


Tags: bamboo-administration
How can I make bamboo use a specific version of a liquibase changeset?
Asked by Jeff MacDonald:

I had a realy hard time coming up with a succint topic for this one.  
Imagine:  
- we do a build on monday  
- on tuesday Greg submits an sql change and updates liquibase manifest. we are fully aware that these changes break mondays build but they're important for next weeks work  
- on wednesday we decide to push mondays build to production. ( using deployment projects)  
On wednesday if we do a fresh checkout of the source so we can run liquibase we'll accidently run a patch that we didn't want to, which breaks the app.  
Here are the 2 routes I'm going in an attempt to address this:  
a: when we make the release build, export the liquibase XML file as an artifact. Then convince liquibase to use that file from that build.  
b: when we do the deployment plan, have it checkout the GIT source from the tagged version that the releaes was build from.  
I'm all ears.


Answers:
author: Orlando_Kelly
body: Hi Jeff, I'm also investigating Liquibase with Bamboo, did you ever come to a resolution for the issue you mentioned?


Tags: deployment

liqibase
Bamboo server hang during startup
Asked by Chris Hammond:

Bamboo had a job that was stuck in the "Queued" state, but did not show up in the list of Builds. So we restarted Bamboo. Upon restart, the catalina log file was stuck on a line that said "Initializing C3P0 pool". After a while, an exception was thrown that said "The database is in use by another process". There were no processes running on the machine owned by me, other than my login and tomcat. Could the default database be corrupted or locked?

I found an article that said to delete the KahaDB and caches directories from the bamboo home directory to solve this problem

I tried renaming them to caches_old and KahaDB_old and restarting the tomcat server

The same thing happened again with the hang on Initializing C3P0 and subsequent crash


Answers:
author: Daniel Wester
body: You created your jira issue in the [jira.atlassian.com](http://jira.atlassian.com). If you want support - create an issue at [support.atlassian.com](http://support.atlassian.com)Secondly if you're using bamboo for non eval purposes- get off the embedded hsql db and move to a proper external db. Thirdly move the bamboo home dir locally. There are only a couple of dirs and files you'll need to mount on NFS (or rsync) the artifacts and the bamboo.cfg.xml are 2 of them, I think there are a couple of others). You don't want git to be checking out into a NFS dir (or to be doing builds in it)


author: Przemek Bruski
body: You're using the embedded HSQLDB database and the previous Bamboo process is still running. Try killing it forcibly.

comments: author: Chris Hammond
body: Also, here is the JIRA issue that I logged with the atached catalina.out from Tomcat. <https://jira.atlassian.com/browse/TST-54941>


author: Chris Hammond
body: As I mentioned, I did kill it forcibly with a "kill -9". I then checked with a "ps -eaf" and it definitely was not running.


author: Przemek Bruski
body: Is Bamboo home on an NFS mount?


author: Chris Hammond
body: I need to head out now, and will reply to any other insights you might have when I get back


author: Chris Hammond
body: It is. I thought that might be a problem as well, but I checked and do not see other instances of bamboo running off of that directory on other machines. The only person that starts and stops bamboo is me, and I definitely did not start it up on another machine. It was working and I simply restarted it.


author: Przemek Bruski
body: NFS v3, probably? Lock support is handled by an external process (not NFS core) and it still thinks that the files are locked. I can't recommend that setup. At the very least, upgrade to NFS v4.

I'd also recommend symlinking the database dir and the JMS dir to local dirs if you absolutely must run on NFS.
When importing from GitHub, what details are not transferred over?
Asked by Louidgie Theoret:

Hello,

I am looking to import our GitHub repo at my company to BitBucket and want to know if we will retain every single piece of information that is found in GitHub like issues, history of commits, comments, etc.


Answers:
author: Syahrul
body: Hi [@Louidgie Theoret](/t5/user/viewprofilepage/user-id/4835629)

G'Day!

The importer will only import your source code and not your comments, metadata (settings), and pull requests to Bitbucket.

It's also not possible to migrate your metadata manually from your current git providers at this moment since it's a different architecture.

Hope this clarifies.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Do we have documentation to use Bitbucket as Helm3 Repo?
Asked by Rahul Sharma:

I am trying to use our Bitbucket repository as Helm repository. Is there any step by step documentation to achieve the same.

Thanks in Advance!


Answers:
author: Norbert C
body: Hi [@Rahul Sharma](/t5/user/viewprofilepage/user-id/4829012)

Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you! Welcome to the Atlassian Community!

I'd like to inform you that unfortunately it's not possible to host Helm3 repositories under Bitbucket Cloud as Helm3 repositories are HTTP servers that houses an index.yaml file and optionally some packaged charts. Bitbucket Cloud hosts Git repositories, so it's not acting as a HTTP server.

Please let us know if you have any further question? We're here to help.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud

helm
Read BITBUCKET_BUILD_NUMBER via Bitbucket API
Asked by RyeGordo:

I'm trying to fetch the latest BITBUCKET_BUILD_NUMBER via [Bitbucket API](https://developer.atlassian.com/cloud/bitbucket/rest/intro/).

This is a default Repository Variable and is not included among the API's request to list [variables for a repository](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-config-variables-get).

It's possible to update the [next builder number](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-config-build-number-put), but there is no available endpoint for reading.

Is it not possible to fetch this value?

If not, can this functionality be added in the future?


Answers:
author: Syahrul
body: Hi [@RyeGordo](/t5/user/viewprofilepage/user-id/4835059)

G'Day!

We do not expose the internal variable in the API endpoint hence you are not getting any output for the internal variables.

Could you give me a use case on why you wish to have this exposed so I can create a Feature request for you?

Cheers,  
Syahrul

comments: author: RyeGordo
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536)

This is for an Android App.

I use the Build Number as an internal version number. It's is used for the app's version code and also displayed as part of the version name on certain builds. My intent is to fetch the latest Build Number from the repository instead of manually updating.

The exercise is mostly a POC and not critical should exposing these variables require a lot of effort; however, given that we're able to update the Build Number, I feel that access to read it would make this more complete.

Thanks,  
Ryan


author: Syahrul
body: Hi [@RyeGordo](/t5/user/viewprofilepage/user-id/4835059)

Noted, thanks for sharing your use case, I have proceeded to raise a feature request and I highly suggest you to **Watch** the feature request so that you'll receive an update whenever we have any at:

* <https://jira.atlassian.com/browse/BCLOUD-21833>

I hope this helps.

Cheers,  
Syahrul


author: RyeGordo
body: Thanks [@Syahrul](/t5/user/viewprofilepage/user-id/744536)

I'll keep watch.

Ryan


Tags: bitbucket-cloud

cloud
Can I create a bot that will trigger some external event if a word is mentioned in a comment?
Asked by Kevin Gilmore:

I want to be able to monitor in Pull Requests if a particular word or phrase is mentioned in the comment section.

So the flow would go like;

1. create PR

2. mention phrase in comment for example "trigger xyz"

3. Request made to external service with body of xyz

Thanks!


Answers:
author: Mikael Sandberg
body: Hi [@Kevin Gilmore](/t5/user/viewprofilepage/user-id/4835144),

Welcome to Atlassian Community!

You could do this by using a webhook that triggers when a comment is created in a PR. Have a look at [Manage webhooks](https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/) for more information.

comments: author: Aron Gombas
body: Oh, wow, I didn't know about this. It looks easier than the approach I suggested.

But, can you check for the keyword "trigger" and parse out "xyz" with this approach? (Maybe Kevin can handle this on the external service's side, if it cannot be done on the Bitbucket side...)


author: Mikael Sandberg
body: The webhook will only trigger based on the event, you would still have to configure your external script to parse the comment for what you are looking for.


author: Kevin Gilmore
body: This is just what I was looking for. Thanks


author: Aron Gombas _Midori_
body: I don't think you can do this in the Bitbucket side, but if your pull requests are normally related to Jira issues, then you can definitely create an automation rule on the Jira side!

For exampe, you can create a rule with the trigger *Issue commented* , then check the comment text for the keyword "trigger" using the *Advance Compare Condition* , finally send the request to the external system using the *Webhook* action. It'd definitely work.


Tags: bitbucket-cloud

cloud
How can I download the bitbucket monthly invoice ?
Asked by Avi Haleva:

How can I download the bitbucket monthly invoice ?


Answers:
author: Karthick S
body: Hello [@Avi Haleva](/t5/user/viewprofilepage/user-id/4834582), Welcome to the Community!  

You can download the invoices from <https://my.atlassian.com/products>. Note that if you're on the free plan you won't have any invoices, as you're getting the service for free.

Let us know if you have any questions.

<br />

Kind regards,

Karthick S


Tags: bitbucket-cloud

cloud
Passphrase issue
Asked by Shyam:

I have already generated the SSH key few months ago, I am not sure which passphrase I have used and I dont remember at all.  
This SSH key generated is common to all repos from BitBucket, I can see SSH key under Manage account from Bitbcuket and below is the path for private key and public key which I have generated long back.  
Now how Can I get that passphrase? is there any way to retrieve it?  
and In case if I retrieve that passphrase same passphrase I should give same passpharse in the VCS edit area (upload key) in teamcity, am I right?  
![Key.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/189548iE3193018C70A978C/image-size/large?v=v2&px=999 "Key.PNG")


Answers:
author: Caroline R
body: Hi, [@Shyam](/t5/user/viewprofilepage/user-id/4756005),

I saw that you created a ticket with our support related to the same question and they have already answered you, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline


author: Shyam
body: Hi Bitbucket Team,

I have changed to premium plan, Can I expect support now promptly and through screensharing?


Tags: bitbucket-cloud

cloud
Bitbucket Authorize
Asked by Ramazan G?ne?:

Hello

I am using bitbucket cloud. Each time the browser is getting opened and trying to get authorization. Why is such thing happening?


Answers:
author: Syahrul
body: Hi [@Ramazan G?ne?](/t5/user/viewprofilepage/user-id/4832973)

Welcome to the community.

If I got this right you were saying that whenever you open Bitbucket you are being prompt with a popup to authorize (add username/password)?

If yes, have you tried this on a different web browser just to verified that it's not a specific browser issue and if it's not reproducible then the issue is most likely with your current browser that may have been blocking cache/scripts or anything crucial to make the webpage load accordingly.

You need to disable that security feature or whitelist bitbucket.org to get it working.

Hope this helps.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud