youngmon/atlassian-qna huggingface dataset:
elastic bamboo vpc
Asked by Andy Reay:

*This question is in reference to Atlassian Documentation: [Configuring Elastic Bamboo](https://confluence.atlassian.com/pages/viewpage.action?pageId=289277120)*

How do I control which subnets my Elastic Bamboo instance is started in?


Answers:
author: Steffen Opel _Utoolity_
body: The VPC subnet selection is not part of the generic [Elastic Bamboo configuration](https://confluence.atlassian.com/bamboo/configuring-elastic-bamboo-289277120.html) as one might indeed expect, rather an aspect of the [elastic image configurations](https://confluence.atlassian.com/bamboo/managing-your-elastic-image-configurations-289277147.html):
>
> |----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> | **Virtual Private Cloud Subnet** | The Subnet of the Virtual Private Cloud where your Elastic Bamboo agent will start up. Choose multiple subnets from the list to enable Bamboo to automatically switch between Availability Zones when starting agents. This reduces the chance of a build failing because of a lack of available resources in a particular zone. For more about VPC, see the [Amazon VPC FAQ](http://aws.amazon.com/vpc/faqs/). |


Tags: elastic
devenv.exe path
Asked by paulwade:

*This question is in reference to Atlassian Documentation: [Visual Studio](https://confluence.atlassian.com/pages/viewpage.action?pageId=289277041)*

I am trying to setup bamboo to build asp.net MVC 5(vnext) the easiest way to do this right now seems to be using visual studio directly.

I am having some trouble getting the path right in bamboo. I've tried (this is just an example from the pc im on right now)

C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\devenv.exe

I also tried some other combinations within that like leaving off everything after 14.0\\ I remember setting bamboo up for maven there were some assumed paths on bamboo's end that took a while to figure out. Can someone point me in the right direction for visual studio executables?

Here is the error I get which seems to clearly have the wrong path im just not sure why

|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| 12-Nov-2015 19:02:21 | C:\\Users\\paulwade\\bamboo-home\\xml-data\\build-dir\\WT-CB-JOB1\>call "C:\\\\VC\\vcvarsall.bat" x86                                                 |
| 12-Nov-2015 19:02:21 |                                                                                                                                                       |
| 12-Nov-2015 19:02:21 | C:\\Users\\paulwade\\bamboo-home\\xml-data\\build-dir\\WT-CB-JOB1\>call "C:\\\\Common7\\IDE\\[devenv.com](http://devenv.com)" "welltracks.sln" /build |


Answers:
author: Mike Friedrich
body: it needs to be the IDE directory where devenv.exe is in, e.g.:  
Capability type: Executable  
Type: Visual Studio  
Exectuable Label: Visual Studio 2013  
Path: C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE


Tags: visual-studio
is maven 3 based dependancies supposed to trigger child builds?
Asked by javaling:

*This question is in reference to Atlassian Documentation: [Setting up plan build dependencies](https://confluence.atlassian.com/pages/viewpage.action?pageId=289276887)*

Ask your question here...


Answers:
author: Alexander Fung
body: Trying to figure this out to. It appears that it doesn't trigger child builds at least with the latest version.


Tags: bamboo-administration
Access build artifact during build
Asked by apollophone apollophone:

Hello, guys.

I am trying to send the build artifact via email as the last step of the build. I am able to send a link to an artifact, but it is not very convenient. What I would like to do is to include actual file as attachment to the mail. What I have tried:

artifactFolder=/opt/bamboo/artifacts/${bamboo.planKey}/${bamboo.shortJobKey}/build-00${bamboo.buildNumber} /apk

artifactPath=$artifactFolder/app-release.apk

But what I got is:

/opt/bamboo/artifacts/FNM-FNMA/JOB1/build-137/apk/app-release.apk: No such file or directory

<br />

I am sure I have the correct path, as I can seen this file AFTER build is completed. Can you please tell me how I can access the artifact DURING build? Thank you.


Answers:
author: rverschoor
body: At the end of the build, the artifact is published to the server, and stored in the /artifacts directory.  
So the artifact is not yet there when the build is going through all tasks.

However, you decide which files make up the artifact, and those files are available in your tasks.  
So instead of trying to attach the not yet published artifact, try to attach the original file/s that will be collected to become the artifact.


Tags: bamboo-administration
Move bamboo projects from one instance to another
Asked by Alex Gabrielian:

Hi @James Giles IV,

I spoke to you at the Atlassian Summit last week regarding moving Bamboo projects/plans from one instance to another. You showed me that this could be done by simply exporting the projects using the UI into a .zip and importing it in the 2nd instance. However, this compresses ALL projects in the instance and with 18K+ plans in our instance, this would take some time. I was wondering if there is a way to do this project by project instead of everything at once.

I appreciate your response.


Answers:
author: rsperafico
body: Hello Alex,

Thank you for your inquire.

Unfortunately, the functionality you're requesting is not currently implemented in Bamboo. However, the same requested was already being raised and can be tracked here:

* <https://jira.atlassian.com/browse/BAM-1223>

As mentioned in the ticket, the request above is a strong candidate on the top of our backlog.

My apologies that we do not have a solution for you at this time besides running:

1. the Export feature in Bamboo UI or
2. database dump and backing up *\<bamboo-home\>* directory

Please, refer to the following documentation for further information:

* [Installing and Upgrading Bamboo](https://confluence.atlassian.com/bamboo/installing-and-upgrading-bamboo-289276552.html)
* [How to Upgrade/Migrate Bamboo](https://confluence.atlassian.com/pages/viewpage.action?pageId=720833273)

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


Tags: bamboo-administration
Powershell upgrade
Asked by fredB:

Hi all,

How does Bamboo finds powershell to run the scripts?

I have Bamboo running on Windows 2008 R2, which comes with powershell version 2. I can run powershell scripts with the script task without any problem.

I have to update raygun.io so I need powershell version 3, which I installed with <https://www.microsoft.com/en-us/download/details.aspx?id=34595>

The install seems successful, the machine runs now with powershell version 3, however Bamboo is just unable to run any powershell script from the script task. The exception that I see in the logs is

```
Caused by: java.io.IOException: Cannot run program "powershell" (in directory "D:\Atlassian\bamboo-home\xml-data\build-dir\FSB-TR-JOB1"): CreateProcess error=2, The system cannot find the file specified
```

powershell is in the system path, so I'd think it shouldn't be hard to actually run those powershell scripts.

Does anyone know the configuration such that Bamboo can execute powershell scripts again?

thanks

Fred


Answers:
author: fredB
body: So the answer is that the windows update updates the system path after the bamboo server starts after reboot, But once the bamboo service is restarted, bamboo picks up the new path and finds the new powershell


Tags: bamboo-administration
Bamboo deployment: manual tasks/stages (like build process)
Asked by Artsiom Shymanouski:

When I set up the building process I can create manual steps/stages. Can I do the same when I set up the deployment process?  
I want to create three stages of deployment: enable maintenance page, deployment, disable maintenance page.  
Is it possible?


Answers:
author: David Mills
body: We have created a fairly comprehensive set of groovy scripts to manage our environments, builds and deploys. One of the classes groups that can be called from any deploy sequence is a "Wait For" class hierarchy. The condition being waited for can be almost anything - e.g. we have implementations of the Abstract class that wait for:

* an SQL query to return a certain value
* a file to exist in the file system
* a file to cease to exist in the file system
* a file of a certain name pattern to be created with a creation date greater than another named file (based on the Unix "find . -newer some-file -name \\\*some-pattern\\\*")
* etc.

These are very useful. They allow:

* co-ordination of deploys from different Bamboo Projects (Bamboo triggers only work from builds or other deploys in the same project)
* people to perform manual steps and then touch a nominated file to cause the triggering of the wait for condition for that file to exist
* etc.

We are able to specify:

* the gap between re-checks for the condition to be met
* the timeout to return a timeout error rather than continue waiting - a 0 timeout setting means no timeout will occur


author: Cristiano Mariano
body: We really need this feature! The lack of manual tasks in Deployment Plans seems to be a showstopper for us.


author: Artsiom Shymanouski
body: Thanks for the answer. But I need run this task manual:  
1) manual run Bamboo stage: enable maintenance page;  
2) then I check maintenance page on all servers;  
3) manual run Bamboo stage: run deploy;  
4) then I check successful deployment on all servers;  
5) manual run Bamboo stage : disable maintenance page.

I can do it in build menu, but i must do it in deployment.

My build menu:

image2015-11-13 9:42:14.png  
[](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-deployment-manual-tasks-stages-like-build-process/qaq-p/145640?attachment-id=9606){#link_1167f5297edf9e}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/4660/1/image2015-11-13%209%3A42%3A14.png){#display_1167f5297edf9e_0}


author: Jobin Kuruvilla [Adaptavist]
body: There are no stages for deployment projects. But you can do this in tasks, right? Tasks are executed sequentially. It won't do grouping but atleast you have a logical ordering.


Tags: cloud
setting up for bitbucket
Asked by Nick Lim:

*This question is in reference to Atlassian Documentation: [Checking out code](https://confluence.atlassian.com/pages/viewpage.action?pageId=737184013)*

Hi

I've been trying to set up a simple plan to checkout the source from git. I've tried using both github and Bitbucket cloud. I can load the correct repository when I create the task but when I run the task it doesnt seem to check out the asp.net solution. I check the server and no code was found

I get the following error.

```
command	10-Nov-2015 16:44:37	Request to stop 'ETG-STAG-JOB1-28' received from adminsimple	10-Nov-2015 16:44:37	Generating build results summary...simple	10-Nov-2015 16:44:37	Saving build results to disk...simple	10-Nov-2015 16:44:37	Logging substituted variables...simple	10-Nov-2015 16:44:37	Indexing build results...simple	10-Nov-2015 16:44:37	Finished building ETG-STAG-JOB1-28.simple	10-Nov-2015 16:47:07	Build Expedia Travel Guides - Stage - Default Job #28 (ETG-STAG-JOB1-28) started building on agent Elastic Agent on i-4285a3fbsimple	10-Nov-2015 16:47:07	Elastic agent on instance i-4285a3fbsimple	10-Nov-2015 16:47:07	Build working directory is C:\build\ETG-STAG-JOB1simple	10-Nov-2015 16:47:07	Executing build Expedia Travel Guides - Stage - Default Job #28 (ETG-STAG-JOB1-28)simple	10-Nov-2015 16:47:07	Starting task 'Git checkout' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'simple	10-Nov-2015 16:47:07	Updating source code to revision: 717e6bdc386d8173a002bd63f7a8502bdd9fd68asimple	10-Nov-2015 16:47:08	Updating source code to revision: 717e6bdc386d8173a002bd63f7a8502bdd9fd68asimple	10-Nov-2015 16:47:08	Updating source code to revision: 717e6bdc386d8173a002bd63f7a8502bdd9fd68asimple	10-Nov-2015 16:47:08	Task was canceled - 'Git checkout(2)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.error	10-Nov-2015 16:47:08	Failed to prepare the build 'Expedia Travel Guides - Stage - Default Job #28 (ETG-STAG-JOB1-28)'
```


Answers:
author: gunnargdevoteam
body: I had this same issue today and finally managed to resolve it.

I am using Bamboo cloud, Bitbucket cloud and build agent on EC2 to do the build.

In my case the cause was that the path to git.exe on the EC2 build agent was not the same path as defined in the "Capabilities" in Bamboo. The build agent had git.exe placed on C:\\opt\\git-2.6.1\\cmd, but the "Capabilities" in Bamboo stated c:\\cygwin\\bin.

To figure this out, I logged on to the build agent in EC2 and searched for git.exe. There I found the correct path. You can set the path in Bamboo in Elastic configuration-\>Instance configurations-\>Capabilities (for the agent you are using). There, you will find the path of Git at the bottom and can Edit it.


author: Nick Lim
body: Thank you so much! that solved it!


Tags: cloud

documentation
Feature not updated on successful master
Asked by Hans Leautaud:

Hi,

We're using the branch updater functionality in Bamboo. However, according to the documentation, the master branch (when successful) should be merged into all feature branches.

This is not the case. Our feature branch is failing, but that shouldn't matter in my opinion.

The license we're using: SEN-2207378

Branch that should be updated:

<https://bestseller.jira.com/builds/browse/DMW-DM44>

Hope to hear from you soon.

Regards

Hans


Answers:
author: Hans Leautaud
body: Hi Jaime,

Yes I did follow those instructions.

As said in the question, I do not want to merge my feature branch into the master branch. My question is:

Is the merging into the feature branch done when the master is green or when the master AND the feature branch is green?

The reason I'm asking is because I think it's the latter one whereas the documentation states that it's the first.

Hans


author: Jaime S
body: Hi, Hans.

Did you follow the instructions here?

<https://confluence.atlassian.com/bamboo/using-plan-branches-289276872.html#Usingplanbranches-Automaticbranchmerging>

Also, that documentations says:

* Optionally, changes from the feature branch can be automatically merged back to the "master" (e.g. trunk, default or mainline branch) when the build succeeds.

It seems that it must succeed. Does it merge them if they succeed?

Kind regards,  
Jaime Kirch da Silveira  
Atlassian Cloud Support


Tags: cloud
Could this be a valid systemd service unit file?
Asked by Rainer Stumbaum:

This was tested on Debian Jessie and it works

Source <http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/systemd-house-of-horror/tomcat.html>

```
root@bamboo01.dc1:~# cat /etc/systemd/system/bamboo.service[Unit]Description=Atlassian Bamboo ServiceAfter=syslog.target network.target[Service]User=atlassianEnvironment=JAVA_OPTS=-Xmx6GExecStart=/opt/atlassian/bamboo/bin/catalina.sh runRestart=on-failure[Install]WantedBy=multi-user.targetroot@bamboo01.dc1:~#
```


Answers:
author: Wade Fitzpatrick
body: I use this one:

```
# cat /etc/systemd/system/bamboo.service[Unit]Description=Bamboo Application ServerAfter=postgresql.serviceRequires=postgresql.service# $BAMBOO_HOME - set in /opt/atlassian/bamboo/current/atlassian-bamboo/WEB-INF/classes/bamboo-init.propertiesAssertPathExists=/opt/bamboo/application-data[Service]Type=forkingUser=bambooRestart=always# http://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctlSuccessExitStatus=143ExecStart=/opt/atlassian/bamboo/current/bin/startup.shExecStop=/opt/atlassian/bamboo/current/bin/shutdown.sh[Install]WantedBy=multi-user.target
```
Reverse SCP task doesn't accept private ssh key
Asked by simplicity networks GmbH:

Hi,  
I'm using the Reverse SCP task on Bamboo 5.9.4 build 5919, but it doesn't accept my private ssh key when I choose "Key without passphrase" as Authentication Type. The key file is formatted like this:

```
-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAhoMo54vy......-----END RSA PRIVATE KEY-----
```

I would get the error message "There is something wrong with your private key: null"  
In Firebug I can see that the key is being transmitted to Bamboo:

```
Content-Disposition: form-data; name="private_key"; filename="id_rsa"Content-Type: application/octet-stream-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAhoMo54vyeHLwv++......-----END RSA PRIVATE KEY-----
```

What might be the problem?  
Thanks,  
Ingmar


Answers:
author: rsperafico
body: Hello Ingmar,

Thank you for your inquire.

Could you please provide more information on Reverse SCP task (developer, download url)?

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support
Whitelisting of Bamboo Cloud IP Address
Asked by Marcus Robinson:

We want to use Bamboo Cloud to build and then install code to the Aliyun cloud. To do this, we need to whitelist the Bamboo cloud IP address with Aliyun.

Is this possible? Can we be guaranteed that our Bamboo cloud server will always run with the same IP address?


Answers:
author: Przemek Bruski
body: What you could do is assign an Elastic IP to your agent and then whitelist that.

<https://confluence.atlassian.com/display/BAMKB/Automatically+associating+Elastic+IP+addresses+to+Elastic+Agents>


author: Marcus Robinson
body: Perfect, thanks @Przemyslaw Bruski


Tags: cloud
Hi All, Need help to integrate jira with Sophos software & perimeter81
Asked by Kartik K:

Hi All,

Need help to integrate jira Service management (Ops Genie) with Sophos software \& perimeter81!


Answers:
author: Joseph Chung Yin
body: [@Kartik K](/t5/user/viewprofilepage/user-id/5208310) -

Hi Kartik:

Since those are third party apps/platform, take a look at the following OpsGenie's reference links -

<https://www.atlassian.com/software/opsgenie/integrations>

<https://support.atlassian.com/opsgenie/docs/set-up-an-integrated-tool/>

I also found two reference links from Sophos on-line on Integration with Jira -

<https://doc.sophos.com/pcg/optix/help/en-us/Configuration/Integrations/Jira/index.html>

<https://www.sophos.com/en-us/marketplace/atlassian-jira>

I am not familiar with those third party apps/platform, so your other choice will be contacting those two vendors directly for possible technical integration offering with Atlassian's JSM/OpsGenie products.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


Tags: cloud

jira-service-management

jira-service-management-cloud
How to replace our robots.txt file with meta tags
Asked by Ryan Rosenthal:

I was recently hit with a vulnerability remediation request from our security team for Jira Service Management. They are asking to use meta tags vs the robots.txt file that is in place today. Does anyone tired this? Does anyone have any good articles that explain this?


Answers:
author: Joseph Chung Yin
body: [@Ryan Rosenthal](/t5/user/viewprofilepage/user-id/2397821) -

Can you provide more details on your ask? What robots.txt are you referring to?

Once we have your updates, we can further assist of your ask.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

comments: author: Ryan Rosenthal
body: I only know of the one robots.txt file that comes with a JSM data center install, located in the Jira file structure.


author: Joseph Chung Yin
body: [@Ryan Rosenthal](/t5/user/viewprofilepage/user-id/2397821) -

Have you review the documentation on robots.txt? Here is a link - <https://confluence.atlassian.com/adminjiraserver/using-robots-txt-to-hide-from-search-engines-938847717.html>

Lastly, which Atlassian's vulnerability remediation request are you referring to?

Best, Joseph


Tags: jira-service-management

jira-service-management-server

server
How can I check notification mail
Asked by Aykan Inal:

Hello  
i am assigning a ticket

but the person I assigned was told that the information did not go to the mail

How can I check


Answers:
author: Joseph Chung Yin
body: [@Aykan Inal](/t5/user/viewprofilepage/user-id/4590463) -

Hi Aykan:

A few thing you need to verify:

1) Is the user account's email address is valid in your JSM site?

2) Are other users also not getting the email notification when issue is assigned to him/her?

3) Validate the project's notification scheme is configured properly where "Assignee" is being called out for the default "Issue Assigned" event?

4) Check with your network admins (i.e. Exchange team) to ensure that emails coming from your JSM env are not being blocked. If it is not, then ask your user in question to check his/her email client apps are not filtering emails to some other areas in the app.

If all things checked out fine, then you should contact Atlassian Support (<https://support.atlassian.com>) for further assistance since they can access the site backend logs for possible issues.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


author: Igor Medeiros - Modus Create
body: Hello [@Aykan Inal](/t5/user/viewprofilepage/user-id/4590463) ,

If you are looking for alternatives, our app [Notification Assistant for Jira](https://marketplace.atlassian.com/apps/1211069/notification-assistant-for-jira-email?hosting=cloud&tab=overview) offers fully customizable notifications, templates, and much more.


Tags: cloud

jira-service-management

jira-service-management-cloud