youngmon/atlassian-qna huggingface dataset:
Automatic deployment of feature brancheS (emphasis on plural)?
Asked by J.P. Poveda:

I have a build plan that has "Automatically manage branches" turned on and I match the branches using the regex (develop\|feautre).\* \[we use git flow\]...

That works great! Bamboo automatically creates a build plan for my feature branches (feature-1, feature-2, etc.), as well as running CI against my develop branch.

Here's the problem, on Bamboo 5.2, it seems like I have to manually set a trigger for each of my feature branches. I.e., I have to edit the Deployment Plan's triggers to add one that's looking for a particular feature branch.

Am I doing something wrong? Why can I create a build plan that builds any branch that matches a regex, but I can't build a deployment plan that does the same? I.e., why can't I automatically deploy any branch off a particular build plan that matches (develop\|feature).\*?


Answers:
author: Jason Monsorno
body: I brought this up with the 5.0 release, they marked my ticket as resolved and I replied back but nothing else yet: <https://jira.atlassian.com/browse/BAM-13472>


author: J.P. Poveda
body: I wish there was a way to insert the sound of crickets :)


Tags: bamboo-administration

branch
Bamboo: Changing location of database to different db server but nothing more
Asked by Ken Lee:

We need to move our database to a different DB server, from a SQLServer 2005 to SQLServer 2008. Do we need to completely re-install Bamboo, or can we simply install a copy of the database on the new server and point Bamboo to the new location ?


Answers:
author: ArmenA
body: Hi Ken,

1) I would recommend [Exporting](http://confluence.atlassian.com/display/BAMBOO/Exporting+data+for+backup) your Bamboo instance, installing a new Bamboo instance with separate BAMBOO_INSTALL, BAMBOO_HOME, and new DB and during the [Setup Wizard](http://confluence.atlassian.com/display/BAMBOO/Running+the+Setup+Wizard) (Step 5) point to the exported backup to import that into the new Bamboo (which uses the new DB).

2)Alternatively, you can shut down Bamboo, manually transfer the DB from SQLServer 2005 to SQL Server 2008 and change the DB credentials from the BambooHome/bamboo.cfg.xml file to point to the new location. Start Bamboo, and it should use the new DB.

Armen


author: ArmenA
body: I have edited that page and added the second option. Thanks for pointing out to that page.


author: Ken Lee
body: Thank you Armen.

I was trying to avoid the complexity of 1) but decided to do it anyway because the official migration instructions at <https://confluence.atlassian.com/display/BAMBOO/Moving+your+Bamboo+data+to+a+different+database> do not mention 2).

To save time for others, it would be nice if the official instructions mentioned your good advice.
How to rename Bamboo project?
Asked by Alexander Kryshtalev:

Hi,

I have created a project that has a wrong name. And I have the wrong named project in Bamboo too. I can rename the project in Jira but not in Bambo. Please tell me if there is a way to rename / remove the project?


Answers:
author: Przemek Bruski
body: It's a usability failure on Bamboo side - you can edit the project name via plan details.


author: ssetayeshfar
body: Hello Alexander,

To rename your project in Bamboo, in your Bamboo dashboard, select "Configure Plan" for any plan that is under that project, then select the "Plan Details" tab, change the name of the prjoect and save.

Hope this helps!

Best,

Sepideh


Tags: cloud
FindBugs for Bamboo, version 5.2?
Asked by Richrelevance IT operations:

I'm trying to add findbugs to our build process. Having the build fail is pretty easy, however, there needs to be some way of displaying why it failed.

I've search for Bamboo and Findbugs on Google, and found one [Bamboo Plugin](https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.findbugs), which purports to support 5.0-5.0.1, but, apparently, not 5.2, since I can't find it through UPM. Is there any alternative?


Answers:
author: Felipe Kraemer
body: Hello,

I think you're right - FindBugs seems to be the correct plugin for what you need, but it's only compatible until Bamboo 5.0.1. That's why you cannot find it through UPM.

I believe you will need to wait for a new version of this plugin that is compatible with Bamboo 5.2.


author: Jan Swaelens
body: Hi, indeed it usually takes a while to get the version numbers updated in the plugin. You can just download the jar and upload it manually with the plugin manager. It works fine on the 5.2 release, we use it all the time!

comments: author: Richrelevance IT operations
body: When I try to upload it with the upm, it says it is a type 1 plugin, and that such plugins may not be dynamically installed.


author: Jan Swaelens
body: Ah yes, I was confusing with another plugin which needed the same approach. The findbugs plugin is indeed type 1, which means that you need to download it and stick it in the WEB-INF/lib folder of the server -- this needs to be done this way even when the version would be supported.

I did notice this week that there is a bug in the configuration page on the build plan on the 5.2 -- certain configuration options are no longer saved when making changes. I guess they will need to make some changes before it will work the 100%.


Tags: bamboo-administration
(Windows) Bamboo service stops when accessed in browser.
Asked by Josh Black:

The Bamboo service installed just fine on the server and starts with no issues. Upon attempting to access the application, I get a "Web page not available" and the service stops.

Has anyone else encountered this before?

Stash and Jira services are running great.


Answers:
author: Josh Black
body: It appears that the server port in {BAMBOO-INSTALL}\\conf\\server.xml was already in use. I changed the value in the xml file to an open port and everything came up. Thanks to all!


author: Jason Monsorno
body: I did last month upgrading to 5.1.1.

Navigate to your bamboo install then atlassian-bamboo\\WEB-INF\\lib.

Look for repeat atlassian-bamboo-\*.jar like atlassian-bamboo-agent-bootstrap-5.1.jar \& atlassian-bamboo-agent-bootstrap-5.2.jar and remove the older copies.

Only remove the extra ones as not every upgrade has a complete new set.

comments: author: Jason Monsorno
body: For instance atlassian-bamboo-agent-elastic-installer-5.0-rc1.jar is in the 5.2 install.


author: Josh Black
body: Thanks for the quick response. This is a new install but I did check the directory you mentioned and don't see any files with multiple versions as you described.


author: Jason Monsorno
body: Did you run the install as "Run as Administrator"? It doesn't show a failure but I had to Uninstall Service as "Run as Administrator" and Install Service as "Run as Administrator" The Tomcat changes \>= 5.1 require elavated prviledges \& UAC.


author: Josh Black
body: Yes (or at least the Win Server 2003 equivalent, I think). I installed using an admin account. Is this the same as the Vista+ UAC / "Run as Administrator"?


Tags: bamboo-administration
Cannot ssh into Bamboo Elastic Instances
Asked by Florent Ferere (DO NOT USE):

I am having trouble installing software on Bamboo Elastic Instances. When I try to run any "yum install" command on a script during a build job, it reports I do not have permissions. When I try to sudo the commands, the error is that there is no tty. When I try "su -c", the error is similar: "standard in must be a tty".

This is the current content of my script:

```
echo "Installing dependencies..."sudo yum -y install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686
```

The main problem, tough, is that I cannot ssh into any of the instances I create through Bamboo (all of them default Bamboo Amazon Linux instances).

I've followed the instructions and created and destroyed what it feels like a hundred instances already, but no luck.

When I try to connect, I always get access denied:

```
$ ssh -i elasticbamboo.pk ec2-user@ec2-54-226-175-246.compute-1.amazonaws.comThe authenticity of host 'ec2-54-226-175-246.compute-1.amazonaws.com (54.226.175.246)' can't be established.RSA key fingerprint is 2a:81:77:60:6b:fa:66:21:9f:37:14:c6:49:bc:3f:f7.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'ec2-54-226-175-246.compute-1.amazonaws.com,54.226.175.246' (RSA) to the list of known hosts.Permission denied (publickey).
```

Any ideas or suggestions? Is there a way anyone from Atlassian can take a look at our account?

This is with Bamboo OnDemand. We have JIRA and Confluence 6.1.x

Thank you.


Answers:
author: Przemek Bruski
body: use ec2-user@your instance. Otherwise ssh will use your current account name which probably does not exist on that instance.

The full command line for ssh is listed on Bamboo instance page for your convenience (also things like Windows instance passwords, etc.)


author: Stephen Goldberg
body: If you can become root, on my client server not my Bamboo server i have a user named bamboo and in visudo (a linux command)

i put:   
Defaults:%bamboo !requiretty  
Defaults:bamboo !requiretty

to run commands with sudo.

Also how are you creating your .ppk file from amazons .pem?  
I have never had an issue signing on with my .ppk file generated by Putty from amazons .pem file downloaded after the key is generated?  

Good luck


author: Jesper Goos
body: I have the same problem - did you find a solution?


Tags: error

install

jira-software

ssh

sudo

yum
[addon-com.stellarity.bamboo.powershell-task] - license problem
Asked by krisg:

After trialling the plugin we opted to purchase a license.

We have **Bamboo 1 Remote Agent: Commercial License**

We purchased **PowerShell Task for Bamboo 1 Remote Agent: Commercial License**

When we add in the license key we get this error:

License status:Incompatible with product license (different number of remote agents)

We have had to revert to using the trial license, which expires very soon, in order to continue to be able to deploy. We need to resolve this ASAP.

Can anyone advise?


Answers:
author: krisg
body: Issue was resolved by updating the plugin manager plugin to latest version.

Thank you Sergey for assisiting with resolving this issue. Very much appreciated!


author: bwalker-winning
body: I have a similar problem that I need some assistance with.

<https://answers.atlassian.com/questions/11468695>


author: krisg
body: Hello,

The "**Bamboo 1 Remote Agent: Commercial License**" in the original question was copy/pasted from within the License area on Atlassian.

Within the Admin \> Licence area of the Bamboo instance, it also says this:

License Type - Bamboo Standard: Commercial Server  
Number of local agents supported - Unlimited  
Number of remote agents supported - 1

As such, im pretty sure that i have a commercial with 1 remote agent licence.

We are running Bamboo: version 4.3 build 3400

comments: author: Sergey Podobry _Stellarity Software_
body: Hi krisg,

Please, write me at [support@stellaritysoftware.com](mailto:support@stellaritysoftware.com) so we can elaborate on this issue.


author: Przemek Bruski
body: If you're using Bamboo 5.1+, you may want to check if the native support for PowerShell built into Script Task is enough for you.


author: Sergey Podobry _Stellarity Software_
body: Hi krisg,

It seems that your Bamboo license is for more than 1 remote agent, so there is a license mismatch.


Tags: addon-com.stellarity.bamboo.powershell-task
license for remote agents used for deployment
Asked by Chris Wundram:

If you assign a remote agent for deployment, you can no longer use it for any builds. Does that mean it no longer counts against my license limit for remote build agents?


Answers:
author: James Dumay
body: All agents used, for both build and deploy, count towards your license limit.

comments: author: Chris Wundram
body: That I what I was afraid of. It is a little disappointing. There is no way I can justify paying for a $1000 remote agent for a machine that is only going to be deployed to once a week or month.

Is there any chance the licensing model will change for deployment agents?


author: roy_lyons
body: Can I recommend using ssh/scp tasks instead of actual agents?

comments: author: Chris Wundram
body: Yeah. I am using powershell remoting and the powershell task plugin to allow me to run a task remotely on another machine. It works but I had to do some URL trickery to figure out the location of the correct artifact so the remote host could download it.

Basically it works, but being able to just run the remote agent on each machine being deployed to would make this really powerful.


author: klingberg
body: I'm having about 100 remote servers where I'd like to deploy new releases about 5 times a year.

As Chris mentioned it's hard to justify paying the license fee for all of those environments.

I've successfully created a deployment project without any remote agents, only using the ssh-task and now I'm about to implement the ssh-task-setup at scale.

Do you got any experiences from the ssh-task-powershell setup that I should be aware of?

Why would the remote agent setup become more powerful?
Bamboo On Demand deployment doesn't seem to fire up elastic agents
Asked by Bart Smyth:

I have a Build Plan successfully building on an elastic agent, which starts up correctly when a build is triggers.

My deployment project does do its job when an elastic agent is already running, but it doesnt not trigger one to fire up if there isn't one started.

Is there a configuration option which should enable this feature? I would have assumed it was on by default.


Answers:
author: Bart Smyth
body: This is a known issue in Bamboo OnDemand. See <https://jira.atlassian.com/browse/BAM-13588>


Tags: cloud
Why are my plan variables not replaced ?
Asked by Khoa Nguyen MInh:

I have defined a variable ${bamboo_db_ipAddress} in a plan. In one of the tasks, a command, I use the variable in the Arguments field like this : build.xml -Ddb.ipAddress=${bamboo_db_ipAddress}

However, the variable is not substituted with the value I pass when launching a parameterized run.

Am I doing something obviously wrong ?


Answers:
author: ssetayeshfar
body: Hello Khoa,

For more information about defining and using variables in Bamboo, please check the following page:

<https://confluence.atlassian.com/display/BAMBOO/Bamboo+variables>

Best regards,

Sepideh


author: rambabu patina
body: I'm not sure if this was just a copy/paste error, you need to put 'bamboo' infront of the varaible name.

Like.. ${*bamboo*.bamboo_db_ipAddress}

Hope helps you

comments: author: rambabu patina
body: If problem resolved and satisified please accept my answer.
Permission denied when accessing EC2 instance
Asked by Florent Ferere (DO NOT USE):

I am having a similar problem, but no passphrase is being asked for:

```
$ ssh -i elasticbamboo.pk ec2-user@ec2-54-234-XXX-XXX.compute-1.amazonaws.comThe authenticity of host 'ec2-54-234-78-100.compute-1.amazonaws.com (54.234.XXX.XXX)' can't be established.RSA key fingerprint is a3:37:bf:ac:fc:e3:28:8e:34:75:53:f5:e2:5a:de:f7.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'ec2-54-234-XXX-XXX.compute-1.amazonaws.com,54.234.XXX.XXX' (RSA) to the list of known hosts.Permission denied (publickey).
```


Answers:
author: Przemek Bruski
body: You can't delete the keypair from Bamboo. You have to access AWS console.


author: Florent Ferere (DO NOT USE)
body: I was refering to Bamboo Admin -\> Elastic Bamboo -\> Configuration -\> AWS Credentials Management

I uploaded both X509 files but that didn't change anything.

I've also tried to ssh with ec2-user, root and bamboo users, but I always get the same error:

```
$ ssh -i elasticbamboo.pk ec2-user@ec2-50-16-84-24.compute-1.amazonaws.comPermission denied (publickey).
```


author: Florent Ferere (DO NOT USE)
body: How do I delete the key pair? I have deleted the instance and created a new one over and over. I have also changed the configuration to use custom private key and certificate, but still that does not work.


author: Przemek Bruski
body: Looks like a key mismatch, maybe someone else regenerated that key on your acount. The resolution is the same - just delete the key pair (or find someone who regenerated it).


Tags: aws

ssh
How to publish ASP.NET MVC 3 app using Bamboo ?
Asked by Dikshit Gokhale:

I am using Bamboo to completely automate the process. I checkout the latest code from the SVN repository, build and run unit test cases. Its working fine. But if someone could guide how to publish the app to a specified location. If I add task and select the Task Type as 'Deployment', I don't see any visual studio option to publish.


Answers:
author: Dikshit Gokhale
body: Thanks a lot:)


author: Gretchen
body: There may not be a plugin for that yet. You should be able to script the deployment as you would from the command line using script, or command. You can add dependencies (such as msdeploy which I think is the name of the exe) and then use them in the deployment job. I haven't used msdeploy to deploy via IIS as the .NET project I worked on did not deploy that way, we robocopied everything from the deployment location to the server location.

One thing you might check is using a build task types (or all task types) to find the msbuild command that will deploy. You can use any task type in your deployment project, the "categories" are just there to narrow the list so it's easier to find the task type you're looking for. Just because you're doing a deployment plan doesn't mean you can't use builder tasks.

<http://technet.microsoft.com/en-us/library/dd569106%28v=ws.10%29.aspx> this page should set you up for success. You'll have to figure out exactly how to call it and there may be some other things that will make this complicated. If it was easy we'd all be doing it. :)

It is also possible that you'll have to move the components to deploy onto the destination server and ssh in to execute the msdeploy command on that server. That does seem counter intuitive to me but I've never worked in an environment where intuitiveness drove design.

If you can't get ssh to work there are other ways to script it using cscript or wscript.

I'd be surprised if you didn't have to slay some authentication or trust dragons along the way as well.

Good Luck,

GJ

comments: author: Dikshit Gokhale
body: Thanks a lot:)
After installing Bamboo bamboo-home folder isn't created?
Asked by Dikshit Gokhale:

Hi,

After the success installation of Bamboo on my machine, I went to the start menu -\> bamboo -\> Install service and start service. It starts properly. When I go to locahost:8085, it cannot find it.

I later realised bamboo-home folder isn't created at all. It should have been created

```
C:/Documents and Settings/&lt;current-user&gt;/Bamboo-home
```

here. But it isn't there. I un-installed and re-installed Bamboo. But the problem persists?

What could be the issue?


Answers:
author: ssetayeshfar
body: Hi Dikshit,

Did you install Bamboo with the installer or the zip packages? If you ran the installer there is a step that asks you to point to your Bamboo home directory. If you installed it using a zipped package, you should create your bamboo home folder, in a separate location than your bamboo installation directory and edit your bamboo-init.properties file to point to it.

Please search for "bamboo-init.properties" file and check the path you have in this file for your bamboo home directory.

If the problem persists, please open a support ticket at <https://support.atlassian.com>

Hope this helps!

Best,

Sepideh


author: Bharadwaj Jannu
body: you see the Java environment variables set correctly and then try to install.

see <https://confluence.atlassian.com/display/BAMBOO/Bamboo+installation+guide+for+Windows>

[https://answers.atlassian.com/questions/122525/installing-bamboo-for-the-first-time-cannot-get-service-to-start](/questions/122525/installing-bamboo-for-the-first-time-cannot-get-service-to-start)

if still does not find, you raise a ticket to <https://support.atlassian.com/>

comments: author: Dikshit Gokhale
body: No that isn't the issue. I followed the steps installed and ran on my machine. But I had to run iit in other colleague's machines. Its not working there. Conguration and software installed both the machines are same.
In Bamboo is it necesary to check out code for every job ??
Asked by Shamsudeen Shaikh:

I am a newbee in Bamboo

I have a C++ application running on a linux box which I want to build and once I am done I want to run the unit test, probably in a different stage ... is it possible...

Also we do make install to install our application... how can I do that using bamboo...

Any help is highly appreciated...

Thanks


Answers:
author: Shamsudeen Shaikh
body: Thanks a lot Chris...

Even I thot the same but just wanted to make sure....

Regards,

Shamsudeen


author: Christoffer Bromberg _K15t_
body: Hi,

if you run your unit tests in a different job or stage, you will need to either share artifacts built before or checkout again and built those artifacts again.

The easiest way to get this done would be to just use a new task within your build job. (Remember: a stage is a collection of (potentially parallel) jobs. A job is a collection of tasks executed in sequence and on the same build agent (and thus operating on the same file system directories) - see here <https://confluence.atlassian.com/display/BAMBOO/Understanding+the+Bamboo+CI+Server>.

To do "make install" you could use a script task (run locally) or a combination of SCP and SSH tasks.

Cheers, Chris
Experiencing an error while setting a C#.NET application on Bamboo server?
Asked by Bhargav Kurra:

I'm experiencing an error while trying to set up an C#.NET application on bamboo .

I'm providing git url as [git@git.xyx.com:projectname](mailto:git@git.xyx.com:projectname)

In the build task i had my cs proj file under

projectname/projectname/folder1/Folder1/xyx.csproj

I had provided xyx.csproj in projectfile row and mentioned some options /p:configuration=release.

When i tried to run the build i'm getting the following error.

MSBUILD : error MSB1009: Project file does not exist.


Answers:
author: Gretchen
body: You may need to put ./ on the front (or .\\ I never can remember).


Tags: bamboo-administration