youngmon/atlassian-qna huggingface dataset:
Bamboo - why are email notifications no longer sent to a specific user?
Asked by David FALLAS:

A Bamboo user, identified correctly in Repository aliases (Overview \| Authors and under the user Profile), no longer receives email notifications for successful or failed builds for which their latest commit triggered the build. Previously, although unsure how long ago it was - perhaps one or two months, email notifications were working correctly.

A number of different notification settings have been tried - for example:

Failed Builds and First Successful/Committers

All Jobs Completed/Committers

The only way to trigger an email notification is if the user is explicitly set as recipient (Failed Builds and First Successful/User

The last upgrade was 11 June 2018 to v6.5 from v6.3.2. This may be related but we cannot be sure.

Bamboo v6.5; git; GitLab Bamboo integration


Answers:
author: Gonchik Tsymzhitov
body: Hi!

We are on the latest version 6.8.0 have not meet that problem

<https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html>

It will be good to know the log errors :)

Cheers,

Gonchik Tsymzhitov


Tags: email

notification
How do I add a requirement to a deployment plan via CLI?
Asked by Radesh Singh:

Hello,

I'm new to bamboo and the bamboo cli, but am part of a larger team working on a project.

We're trying to figure out how to add a requirement to a deployment plan.

I figured out that using:

atlassian.sh bamboo --action addRequirement --plan "CN-BAMMA" --job "JOB1" --requirement "system.builder.mvn3.Maven" --type "exists"

Adds the requirement to the build plan; however, if we want to target the deployment plan, is it possible to do that?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Please, have a look the latest version 6.8.0

<https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html>

And I hope you need to update your Bamboo cli or ask directly from Bob-Swift portal

Cheers,

Gonchik Tsymzhitov
Still unable to deploy to more than one server ?
Asked by cdeloeul:

Hi,

I'm a beginner to Bamboo, so I may missed something. But from what I found, it is not possible to deploy to more than one server per environment, right ?

How my deployment looks like :

* run a couple command via ssh on a linux box
* scp some files into that box
* run some more commands using ssh

the commands, username, sshkey, ... are the same on all of my nine servers, the only think I have to change is the hostname. Do I really have to create 9 "environments" ?

If yes, why is it called "environment" ? should be called "server", it would lead to less confusion, I mean for me, an environment should is like Production, Test, Acceptance, ... and each environment should be able to contain multiple servers.

Giving that, how can I handle deployment to multiple servers without having to maintain 9 different set of tasks (because, yes, the ssh commands I set in my tasks WILL change)

I guess I'm not the only one with such an use case, any advice ?

PS. I've tried with the REST API but unfortunately it is not possible to set a variable on a deploy plan, only on a build plan, see <https://community.atlassian.com/t5/Bamboo-questions/How-to-send-environment-variables-to-bamboo-deployment-REST-API/qaq-p/726013>


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope the latest version 6.8.0 will cover your request

<https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html>

Also, please, have a look  
on marketplace or

<https://github.com/atlassian-api/atlassian-python-api>

Cheers,

Gonchik Tsymzhitov
Semantic versioning with Bamboo
Asked by byoung_novetta:

First off I know that Bamboo doesn't officially support resetting build numbers.

I'm currently using the build number to manage our semantic versions. So we declare that we're working on version 4.2 of our product and Bamboo gives us the build number that we slap on the end, e.g. 4.2.**38**.

The problem is, when we bump to 4.3, we should really start back at 4.3.1. The way it is right now our first build of 4.3 may be something like 4.3.**39**.

What am I missing? This seems to be a very basic thing which makes me wonder if there is a different mechanism I should be using besides assembling the version using Bamboo's build number variable.


Answers:
author: Daniel Santos
body: Hello [@byoung_novetta](/t5/user/viewprofilepage/user-id/1781238),

I do recommend you to use the auto incremented release version feature as described in this page: [Naming versions for deployment releases - Atlassian Documentation](https://confluence.atlassian.com/bamboo/naming-versions-for-deployment-releasese-361726798.html).

You will also be able to use variables to compose the version, but the last number should be defined in the deployment configuration so it can be automatically incremented and manually reset to 0 when you need to run a new sequence of releases.

comments: author: byoung_novetta
body: Thanks- I took your recommendation and set up a deployment project that uses Maven's version and deploy goals that I was previously using in my build plan. It works.

The issue here is that builds aren't known by an official version until released.

With my previous approach, every build got a distinct, incremented version and if my QA dept. says "version 1.4.123 is cleared for release" we all have a common vocabulary and artifact-1.4.123 gets promoted on to Artifactory.

With the updated approach, I suppose artifacts have to take on a name like artifact-1.4-SNAPSHOT until they are released and my QA dept. would have to somehow know that artifact-1.4-SNAPSHOT.jar = Bamboo build #78, which ultimately may result in artifact-1.4.123 if promoted.

It is easier if the artifact is named artifact-1.4.123 from the get-go, which represents Bamboo build #123, which will still be artifact-1.4.123 if we elect to promote it as a release.

Am I thinking about this in the wrong way, perhaps?


author: Daniel Santos
body: Hi Brian,

You should be able to find a reference between each release and the build used to create it through the Bamboo UI (**Deploy \>\> All deployment projects \>\>** (YOUR_DEPLOYMENT) **\>\>** **Releases** ). Is that enough for your team to discover the right build?  

If you want you can also carry the build number in your revision string as an extra reference. Each company has its own way of managing this type of thing. It depends on your process.

You could be using the deployment project to deploy your artifacts to a QA environment and having a different environment for the final release. As I said it might change the way your team will treat the results.
I am not able to checkout from bitbucket Its taking too much of time to checkout from scm and automa
Asked by Dhiraj_Kumar_Mishra:

Bamboo builds are taking too much of time for checkout from scm and at last it is hanging up and stops the builds.


Answers:
author: Daniel Santos
body: Hi [@Dhiraj_Kumar_Mishra](/t5/user/viewprofilepage/user-id/1677728),

The following investigation/troubleshooting steps can be useful:

Divide and conquer

1. Where is the problem?  

   ?? What is the behavior in the agent machine to checkout the same repository from terminal? (no Bamboo involvement)  

   ?? If the checkout is slow in the terminal, what happens if we do the same thing in the Bitbucket server machine? (no network delay)
2. The problem is in Bamboo, but where?  

   ?? Try to clean the caches **Cog icon \>\> Overview \>\> Repository settings** select the affected cache and delete it  

   ?? Check if you have git installed and the right capability configured in Bamboo ([Defining a new version control capability - Atlassian Documentation](https://confluence.atlassian.com/bamboo/defining-a-new-version-control-capability-289277156.html)). Bamboo has an embedded git client (JGit), but the native server installation of Git has lots of improvements in performance if compared with JGit.  

   ?? Check the log files:  
   From server side:  
   Unix like: **\<Bamboo_Install\>/logs/catalina.out** Windows : **\<Bamboo_Install\>/logs/bamboo-stdout.\<DATE\>.log** From the agent side:  
   **\<Bamboo_Agent_Home\>/atlassian-bamboo-agent.log**
Creating a new plan in bamboo cleans all the fields and returns "please enter ...."
Asked by Development GGN:

Hi,

I tried to create a new plan in bamboo, i setup the application \& links, but when creating the plan everything goes fine untill I press the "configure plan" button.

It than clears all the fields and returns errors saying I need to fill them in, which I did :(

Any idea what might be the problem?

![bamboo error.PNG](/t5/image/serverpage/image-id/29023i7361A1D15CCA587F/image-size/large?v=v2&px=999 "bamboo error.PNG")


Answers:
author: Daniel Santos
body: Hello [@Development GGN](/t5/user/viewprofilepage/user-id/1764316),  

The main build blocks that could play a part on this issue are:

* the Bamboo server
* the network devices/software intermediating the connection
* the Browser

In order to cover them and identify what is causing this problem we suggest you check:

1. Check the Tomcat server logs. They should tell you if Bamboo is experiencing problems to handle the Browser request. It could be a database issue, proxy, or any other strange problem.  
   These Tomcat logs can be found at:  
   **\<Bamboo_Install\>/logs/catalina.out** (on Unix like)  
   **\<Bamboo_Install\>/logs/bamboo-stdout.\<DATE\>.log**(on Windows)
2. Try to avoid any proxy or firewall that could be interfering in the Server-Browser communication. This could be performed by trying to load Bamboo using a direct access (**\<Server_IP:PORT\>**) from your Bamboo server network.
3. Try a different Browser or check if this issue is caused by an add-on or another extension.
4. The statuses/logs of your browser requests. You will need to enable the development mode of your Browser and check both console and network tabs. They should give you some clues about what is happening.  
   (!) You might want to use this page as a reference to check the HAR details: [Generating HAR files and analyzing web requests - Atlassian Documentation](https://confluence.atlassian.com/kb/generating-har-files-and-analyzing-web-requests-720420612.html).

This should give you a good start. Please share with us your findings.

comments: author: Development GGN
body: Hi,  

1. I cannot seem to understand the server logs, I cannot find any ERROR rows stating what went wrong, only stuff about a server stopping that has alreadt stopped.

2. Firewall and proxy cannot be the issue because this is all within the same LAN network \& I connect to multiple applications on that server.

3. I have tried edge, firefox and chrome, all the latest builds.

4. havent been able to test deeply yet, but on the basis of it I dont see any issues on the network or logging


author: AnnWorley
body: Hi - So that we can take a closer look at your logs and other materials I opened a support ticket using the email address you opened this question with. Please check that email box for a reply from our support portal shortly. When the issue is resolved we can circle back to let the Community know the resolution.
Configure Bamboo for VB.NET Framework 4.7.2 Application
Asked by Jo?o Barreto:

Hello Community,

This is my first question and my first time using Atlassion products.

I'm trying to implement Bamboo, configuring it to run tests and compile a project sample.

I got the project sample ready and i got bamboo installed correctly, now i just gotta understand how the platform works...

My application sample, as the title say's for it self, is an VB.NET Application using Framework 4.7.2

Just need some lights from someone!

Greats.

JB Rockefeller


Answers:
author: Ramil Navares
body: Not sure what you need here but you should have the following installed on where the Bamboo is running:

- .NET Framework 4.7.2

- MSBuild v15 and should be added as one of the capability on your agent
Run customised build at a specific revision
Asked by Pok Lau:

The feature Customised run that accepts Revision parameter as 'Use a specific revision of the default repository in this build', is it fair to assume the value to be any revision on the branch configured in the repository?

I've tried pass in the actual SHA1 ID, tag, as well as another branch name, and never have any luck even i've ticked off the Shallow clone flag which the log always displays this:

fatal: reference is not a tree: \<revision\>  
Checkout to revision \<revision\> has failed.

I fact, what I am after is the flexibility to run a build at any branch or tag in the git repository without it to be pre-defined in the build config. Is there any way to archive this?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope on the latest version 6.8.0 you can find more interesting will cover it

<https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html>

or marketplace

Cheers,

Gonchik Tsymzhitov


Tags: custom-field

git
CI for React Native projects
Asked by Deepam Palaniswami:

I am looking for CI to my react native projects.

* Is Bamboo is suffice to get it done?
* or any other CI is suggested to be used in case of React Native.

I am new to React Native , though I have used Bamboo for native build without any issue. Any reference to link or info will be appreciated


Answers:
author: Anoop Bajpai
body: [@Deepam Palaniswami](/t5/user/viewprofilepage/user-id/1777054) , Have you got any success in setting up Bamboo for react native builds. I am also exploring the same. Please share any link which is more useful.


author: Gonchik Tsymzhitov
body: For the history this article was to my very useful

<https://confluence.atlassian.com/bamboo/getting-started-with-node-js-and-bamboo-687213472.html>

Cheers,

Gonchik Tsymzhitov


Tags: react.js
How do I access the plan ID number via SDK
Asked by Samuel Chow:

How do I access the plan ID number via SDK? I want to use it to access build logs and the path to the build logs uses plan ID instead of the plan key.


Answers:
author: Samuel Chow
body: Found it.  

Looks like com.atlassian.bamboo.plan.cacheImmutableChainImpl contains a method "getStorageTag" - <https://docs.atlassian.com/atlassian-bamboo/6.6.1/com/atlassian/bamboo/plan/cache/ImmutableChainImpl.html>  

output will be plan-XXXXXXX. I was able to use it to find directory where build logs are stored:

C:\\Users\\JohnDoe\\work\\bamboo\\bamboo-home\\xml-data\\builds\\plan-2916353-JOB1\\download-data\\build_logs\\plan-2916353-JOB1-3.log
How can I view build logs from a plugin in a Context Provider?
Asked by Samuel Chow:

I want to be able to view build logs and parse out specific items to display a custom web panel in the build summary page. I have a context provider to expose ViewChainResult, ChainResultsSummaryImpl and ImmutableChainImpl. I can't seem to find a way in these classes in the SDK.

I've tried to build the URL link to the build log location but that requires a login so its not a elegant way to do it.  

Can someone explain to me how one accesses the build logs to be used in a plug in?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I did it, through scripted task and using tee :)

Cheers,

Gonchik Tsymzhitov
I Want to create report dashboard similiar to jira in bamboo
Asked by CrazyAs5assin:

I want a dashboard which will say the no of builds triggered ,no of test cases passed and no failed. is it possible to do the same in bamboo.

or is it possible to do the same with JIRA where our automation results are being uploaded in jira . Can i pull a dashboard to say for this build this many cases failed passed etc


Answers:
author: Gonchik Tsymzhitov
body: Hi!

1. Let's use reporing section in Bamboo

<https://confluence.atlassian.com/bamboo/reporting-289276962.html>

2. Other thing you can integrate Bamboo and Jira, then you can find gadgets in Jira.

<https://confluence.atlassian.com/jira064/adding-the-bamboo-plans-gadget-720417065.html>

3. Another way is atlasboard.

<https://bitbucket.org/atlassian/atlasboard>

Cheers,

Gonchik Tsymzhitov
Is that possible to create a bamboo plan to delete cache of the repository group from nexus
Asked by Anis Ben Romdhane:

Is that possible to delete Expiring cache of the repository group from nexus and launching the job "Rebuild maven metadata files" by creating a bamboo plan.


Answers:
author: Daniel Santos
body: Hi [@Anis Ben Romdhane](/t5/user/viewprofilepage/user-id/1186535),

I don't have knowledge on the Nexus environment but if you think this can be achieved though a sequence of commands or calling an external nexus client or even using REST API, then you should be able to config a Bamboo script task for that.
Bamboo Global Expiry
Asked by Chantelle Webley:

The Atlassian/BambooHome/artifacts directory on our Bamboo server has grown very large.

I have done some research and can see that you can use the global expiry functionality to automatically clear it down.

However I am unsure exactly how it works , we mostly use remote agents however it seems all the build artifacts are being written to the server.

I have seen a few posts about this but I cant find any that specifically answer my questions below:

1.Will configuring the global expiry settings remove old files from the server or will it remove them from wherever the remote agent is hosted?

2.Is there a reason that this data is being written to the server when these a remote agents?

3.What is the consequence of deleting the files in this directory?

Bamboo version 5.15.5


Answers:
author: Gabriel Ribeiro
body: Hi Chantelle,

Yes, the expiry functionality is the safest way to keep disk usage under control.

I'll try to answer your questions:
> 1. Will configuring the global expiry settings remove old files from the server or will it remove them from wherever the remote agent is hosted?

It will remove the files from the Bamboo server only, more specifically from the **bamboo-home/** xml**-data/builds** and **bamboo-home/artifacts** folders.

Please see: [Locating important directories and files](https://confluence.atlassian.com/bamboo/locating-important-directories-and-files-289277247.html)

2. Is there a reason that this data is being written to the server when these a remote agents?

Because the files need to be available even if the agents are not online, on more recent bamboo versions, you can [change where the artifacts](https://confluence.atlassian.com/bamboo/artifact-handlers-938641848.html) will be stored but, Bamboo will keep transferring build logs and results to the server.
> 3. What is the consequence of deleting the files in this directory?

The only consequence will be that old builds (logs, build results and artifacts) will not be available in Bamboo anymore, that's the reason why is recommended to have a very clear company-wide policy defining how long the results will be kept.

Let me know if this answered your questions.

cheers.

comments: author: Chantelle Webley
body: Thats great thank you!


Tags: expiration

remote-agent

space
AWS CodeDeploy task
Asked by Lucas Milin:

Hi there,

Since a couple of days, all our AWS CodeDeploy tasks can't access to S3 Buckets and CodeDeploy Application but only from the form. However, all deployments work as usual but I can't create new plan with AWS CodeDeploy task anymore.

Do you have any ideas how to fix this issue?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope connectivity issue was fixed.

Also, let's check the latest version 6.8.0 :)

<https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html>

Cheers,

Gonchik Tsymzhitov


Tags: aws-code
Cant install Bamboo
Asked by bigdata_dev:

Hello.

I used custom installation for bamboo. At the end i had an error as image.

So what's wrong that i did? Help me please![issue.JPG](/t5/image/serverpage/image-id/28865iF44858691F4902DE/image-size/large?v=v2&px=999 "issue.JPG").


Answers:
author: Anonymous Coward
body: Simon says:

"

As the error says Bamboo cannot resolve the hostname release.gtech.com.tr.

Check your DNS settings and verify that you can resolve the hostname from a console, outside Bamboo.

"

Simon out
Bamboo install unable to move bamboo.cfg.xml
Asked by Simon Mumby:

I am trying to complete a Bamboo install on my Azure server. I run the install from command prompt and it appears to get stuck here...

2018-08-07 12:18:58,669 WARN \[http-nio-8085-exec-3\] \[AbstractDom4jXmlConfigurationPersister\] Unable to move C:\\Users\\digital\\Bamboo\\bamboo-home\\bamboo.cfg.xml647536156372234414tmp to C:\\Users\\digital\\Bamboo\\bamboo-home\\bamboo.cfg.xml. Falling back to non-atomic overwrite.

Please can you assist.

Kind regards,

Simon


Answers:
author: Gabriel Ribeiro
body: Hi Simon,

Could you please access the [supported platforms](https://confluence.atlassian.com/bamboo/supported-platforms-289276764.html) page and double check if your environment is meeting all the requirements mentioned there?

Also, are you sure the user to start the server have full rights to read and write on both bamboo-home and installation directory?

thanks.


Tags: configuration

install
Can we Integrate Bamboo with Oracle OATS ?
Asked by Pranaya Kumar:

Can we Integrate Bamboo with Oracle OATS ?

Can anyone help me in this regard ?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

you can write own integrate or reuse this library and improve it for OATS side as well

<https://github.com/atlassian-api/atlassian-python-api>

Cheers,

Gonchik Tsymzhitov
How to disable a branch from backend in bamboo
Asked by Nihar Babu Devathi:

Hi Everyone,

I am bamboo for for my CI. I want to disable particular branches after certain number of builds. I don't see an option that does automatically like how branch deletion happens. I didn't find the API as well to do so. All i found is this link "<https://confluence.atlassian.com/bamkb/how-to-disable-multiple-plans-or-plan-branches-in-batch-945107133.html>" which didn't make any sense. Can I know the table which has this particular info so that i can directly modify the database table from backend.


Answers:
author: Gabriel Ribeiro
body: Hi Nihar,

I would suggest you to use **curl** to call the same rest API endpoint suggested by the documentation you mentioned:

```
curl -k -u <user>:<password> -H "Content-type: application/json" -X DELETE http://<bamboo_address>/rest/api/latest/plan/<PROJ-KEY>/enable?
```

??Don't forget to replace the \<user\>, \<password\>,\<PROJ-KEY\> and \<bamboo_address\> placeholders with the corresponding value.

For more details on how to use Bamboo rest APIs, please take a look at the below documentation:

* [Using the Bamboo REST APIs](https://developer.atlassian.com/server/bamboo/using-the-bamboo-rest-apis/)

thanks.

comments: author: Nihar Babu Devathi
body: Thanks Gabriel for the Answer. It works. :)