youngmon/atlassian-qna huggingface dataset:
How to hotfix older branch when using 1 deployment project?
Asked by Rowan vdh:

Hi,

When working with a single deployment project, what is the recommended approach to deal with hotfixes on older production branches? We are using separate build plans for each production branch, and are struggling with not being able to link multiple build plans to a single deployment project.

E.g.

Production branches -\> Prod-2.1, Prod-2.2, Prod-2.3  
Deployment project (containing all Production and QA environments), linked to Prod-2.3

We want to update Prod-2.2 with a hotfix, and create a release from it.

The only options seem to be:  
1. Use separate build plans for production branches. This would require manually switching the linked build plan whenever you want to create a release from a different branch.  
2. Have all production branches as plan branches. This lets you create releases directly from multiple branches. However plan branches seem to be intended for short-lived branches, and the Build Dashboard hides their status \& actions by default, which is not ideal.

Both of these options have drawbacks, and do not seem to be using the features in their intended manner.

Thanks


Answers:
author: Rowan vdh
body: Spoke to Atlassian Support regarding this. Plan branches seem like the best option for now, despite the drawbacks.

Related open feature requests that would help resolve this situation:

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


author: Alex Soto
body: If you are using totally separate build plans (instead of plan branches) then I think you are out of luck, because that's not the way to do things.

If however you are using Plan Branches, navigate to your deployment project, click deploy, create new release from build result, select the plan branch.

Best of luck,

Alex


Tags: cloud
Possible to create a plan without linking to a repository?
Asked by Johnny Slocum:

I am trying to create a plan without linking to a repository so that I don't accidentally commit changes and get tagged for it.


Answers:
author: sbirgisson
body: Hi @Johnny Slocum

If you choose repository host Other \> None, you can create a plan without a repo. Is this what you are after?

Cheers

Configure+plan+-+Create+a+new+plan+-+Bamboo+2015-07-20+16-16-29.png  
[](https://community.atlassian.com/t5/Bamboo-questions/Possible-to-create-a-plan-without-linking-to-a-repository/qaq-p/320097?attachment-id=7864){#link_11686d96733e26}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/10032/1/Configure+plan+-+Create+a+new+plan+-+Bamboo+2015-07-20+16-16-29.png){#display_11686d96733e26_0}

comments: author: Johnny Slocum
body: Hello Sigge. I appreciate your correct answer. I had figured it out literally just before you posted your answer, lol.
Bamboo and Stash application link requires Trusted Application, builds work, updates to stash don't
Asked by ElyseG:

I'm setting up Bamboo and Stash on a single Windows server with IIS proxying so that the urls look like http://\<servername\>/stash and http://\<servername\>/bamboo

User authentication is from AD via Crowd.

When I try to create the Application link from Bamboo, it fails to create the reciprocal link and the pop-up just says ACT.

When I try to create the Application link from Stash, it works (and successfully creates the reciprocal link), but Bamboo can't see the repositories until Trusted Application is turned on.

Builds complete but report a '"401 Unauthorized" received while attempting to store build status against Stash instance' error

I suspect the 401 is related to the ACT failure to create reciprocal links if the link creation starts from Bamboo. The page on troubleshooting links is not very helpful because it does not provide hints for getting from symptoms to which layers are likely to be a problem.


Answers:
author: Alexey Chystoprudov
body: Hello Elyse, please create request at support.atlassian.com, our Support team will help you


author: ElyseG
body: Upgraded Stash and Bamboo to latest versions (Crowd had no later available). Behavior continues.Bamboo linked repositories only access Stash when Trusted application links are configured. Bamboo attempt to notify Stash of builds fails with 401 with Trusted application with any (or none) of OAuth and Base.


author: ElyseG
body: Eventually got the links to connect even with link creation from Bamboo. However, the 401 still happens. Nothing shows up in the stash logs at all. Bamboo just records the fact that it received 401s from Stash.401 - 21 "-" "Atlassian-VS-Connector"172.16.10.160 \[31/Jul/2015:12:09:09 -0700\] "GET /bamboo/api/rest/login.action?os_authType=basic HTTP/1.1" 401 1073 27 "-" "Atlassian-VS-Connector"


Tags: bitbucket-server
Bamboo running soap ui scripts. Getting a permission denied error for testrunner.sh
Asked by Michael Yang:

I am running some soap ui scripts but when I build it says:

line 1: /opt/soapui/5.0.0/bin/testrunner.sh: Permission denied

Anyone ever get anything similar? All suggestions welcome.


Answers:
author: Vinay Prasad
body: Are you using command line or Maven plug in?
Failed to start elastic instances: Error when starting a new instance
Asked by Thomas Hughes:

I have been trying to start a new instance of a Ubuntu stock image, but I always receive the error message.

"Failed to start elastic instances: Error when starting a new instance"

In my Amazon console I have setup an 'Atlassion' user which currently has full Administrator access. I generated the access key for this account and thats what im using in Bamboo.

I can see that two security groups have been created by Bamboo(elasticbamboo,ControlledByBamboo) in the Amazon EC2 console so Bamboo is certainly connecting to my account correctly. I tried deleting these security groups, and upon trying to start a new instance from bamboo they are recreated.

So I dont know whats going on at this point, I would appreciate some assistance.


Answers:
author: Thomas Hughes
body: For everyone else's reference, I was told the following by Atlassian support and it worked for me.

"Thank you for contacting Atlassian Support and nice to meet you.

I believe that you are running to this bug regarding Bamboo.

<https://jira.atlassian.com/browse/BAM-16109>  
Do watch the ticket to get latest changes made to the bug ticket. As a workaround; I advice manually creating the keypair with name "elasticbamboo" in the AWS console for the region that your elastic instances are configured to start up in. Also please keep the private key file as Bamboo won't have it on the server side."


author: Rick Waugh
body: Creating the keypair as stated in the ticket worked.


author: Rick Waugh
body: Got exactly the same problem going on.


author: Alexey Chystoprudov
body: Please create request at support.atlassian.com


Tags: cloud
(Bamboo Cloud) Can I use msbuild 2013 in a build job?
Asked by mike.yriondo:

Hello we are using Bamboo Cloud.

I don't see the msbuild 2013 option in the msbuild dropdown selection in our msbuild task. We need to build a project with Visual Studio 2013, and soon 2015.

Currently we are using VS 2012 and msbuild 4.0 without issues.


Answers:
author: Ondrej Medek
body: I am afraid we have to create own EC2 image ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad") I think the Bamboo Windows image should contain the newest .NET and MSBuild always, the older versions are optional, since these tools maintain backward compatibility. Also, the nuget.exe would be handy, too (despite it is simple to download).

Comparing rich support of the Java tools in the Windows image, the .NET support seems very poor.
Where are all the old comments?
Asked by Christopher Fitzner:


Answers:
author: Christopher Fitzner
body: [http://webcache.googleusercontent.com/search?q=cache:9p7lSejHUxoJ:https://confluence.atlassian.com/display/BAMBOO/Specifying%2Ba%2Bbackup%2Bschedule+\&cd=1\&hl=en\&ct=clnk\&gl=us](http://webcache.googleusercontent.com/search?q=cache:9p7lSejHUxoJ:https://confluence.atlassian.com/display/BAMBOO/Specifying%2Ba%2Bbackup%2Bschedule+&cd=1&hl=en&ct=clnk&gl=us)


author: Christopher Fitzner
body: All of the pages used to have comments below the content. Now there is a link at the bottom of each page that says: "See questions about this article" which links to another page in which all the previous comments about this article are not there.You can see the difference when viewing this page:<https://confluence.atlassian.com/display/BAMBOO/Specifying+a+backup+schedule>and viewing the same page in the google page cache.


author: Pedro Cora
body: Could you detail a little more? Only the title does not help much.
S3 artifact storage; what happens to pre-switch artifacts?
Asked by Kim Toms:

We're planning on moving our artifacts storage to S3, as Atlasssian has required. Will our old artifacts also be moved there, and if not, will we be able to deploy those older build artifacts?


Answers:
author: Alexey Chystoprudov
body: Hello Kim,

Your artifacts will be stored at the same place they are now, on Bamboo instance local disk. They will be removed by expiry process according to your settings. You will be able to deploy them at any time you need them.


Tags: amazon

aws
Is it possible in Bamboo to read the test status from the execution log of build job, when running a script task ?
Asked by Nikhil Nimbhal:

I am executing a test pack through command line using script task, I need to update/ show its status in bamboo as, for e.g. :

* 2 of 10 failed

Presently my test pack does not create any report which can be parsed using any default parser tasks such as JUnit Parser, TESTNG Parser etc.

Is there a way by which a build job can pick the status from execution log/ std out , as I update the execution log with the execution status after end of each test case?


Answers:
author: Steffen Opel _Utoolity_
body: Iulius Hutuleac has thankfully generalized the approach Alexey suggested in his [answer](https://answers.atlassian.com/questions/21630327/answers/21632162) (+1) and implemented a [Generic Test Results Parser for Bamboo](https://marketplace.atlassian.com/plugins/com.valens.bamboo-logparser-plugin/overview) based on the Bamboo [Test Collection and Reporting](https://developer.atlassian.com/bamboodev/bamboo-tasks-api/test-collection-and-reporting) SPI - the free add-on offers *Simple file parsing and test case handling for generic test result formats*:
> Just select the files, create a regular expression matching lines that should be treated as failed test cases and lines that should be treated as passed test cases.


author: Alexey Chystoprudov
body: Hello Nikhil,

Bamboo doesn't have built-in support for your scenario. On of the way to implement it is to store result of you script command to some file and then create Bamboo plugin which can parse this file and generate test report as JUnit Parser plugin does.
Bamboo SCP Task apostroph in directory name
Asked by Jakob Knorr:

I'm trying to Checkout a Project from Stash-Repository and then deploy it via SCP Task to another Server. Everything is working until the SCP Task connects to the Server and starts deploying: Instead of creating the Directory *testdeploy* it is creating the directory *'testdeploy'*(the apostroph shouldn't be there). I really tried alot, but i can't figure out, why the SCP Task is adding the apostroph. Can anybody help me with this?

edit:

Here is a Screenshot of my configuration. If i deploy this task a directory on the remote server is created with the name *'deployTest'*with all artifacts in it. But I don't want the apostrophes in the directory name.

*scp-task.PNG*  
[](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-SCP-Task-apostroph-in-directory-name/qaq-p/309734?attachment-id=2487){#link_11686e34936c9e}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/9678/1/scp-task.PNG){#display_11686e34936c9e_0}


Answers:
author: Hugh Stevenson
body: Hi Rafael

I have the exact same issue - is there any resolution to this?

I'm not sure how to get the version of bamboo we are running as we have the cloud service: <https://unicenta.atlassian.net/>

Thanks in advance

Hugh


author: rsperafico
body: Hello Jakob,

Thank you for your reply.

In order to investigate this issue further, could you please inform Bamboo version you are currently running?

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support

comments: author: Hugh Stevenson
body: Hi Rafael I have the exact same issue - is there any resolution to this?I'm not sure how to get the version of bamboo we are running as we have the cloud service: <https://unicenta.atlassian.net/> Thanks in advanceHugh


author: Alexey Chystoprudov
body: Hello Jakob,

Can you provide screenshot of SCP task config?

comments: author: Jakob Knorr
body: I added the screenshot to the question


Tags: bamboo-administration
Add at least one more task to the task list error in deployment project
Asked by Dev:

My deployment project has been setup by following 2 tasks.

1. Cleanup Working Directory
2. Artifact Download

but when I saved \& return, I am getting message in How you want to deploy section.

Here I want to copy the artifacts to some folder in server.


Answers:
author: rsperafico
body: Hello,

Thank you for your question.

In Step 2, the artifact is being downloaded from the build plan associated with the Deployment you want to run. However, Bamboo expects something to be done with those artifact (just/that will be) download. Since you want to copy them to a location in a particular server, you could be using a SCP task, for instance.

Please, refer to [Using the SCP task in Bamboo](https://confluence.atlassian.com/display/BAMBOO/Using+the+SCP+task+in+Bamboo) documentation for further information.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


author: i989347@mvrht.net
body: If you dont want to complicate your life and want to copy artifacts to UNC path with Artifact Download you can add a random task and save your deployment. It will be marked as valid, then go back and remove that random task. Your deployment will remain valid despite having just 2 tasks.
bamboo docker image question
Asked by Takashi Matsuzawa:

I played with bamboo/docker a few days, and I wonder whether the below should work?

1. A bamboo plan is configured and it uses image my-remote.com:5000/my-repository:latest
2. [my-remote.com](http://my-remote.com):5000/my-repository:latest is updated from my PC.
3. Run the 1) plan.

The problem I see, is that at 3, updated image is not being used. Instead, image from the previous build (before remote registry update) seems to be used.

I wonder it this is an expected behavior or some problem in our bamboo/docker's configuration. And, if the behavior is an expected one, which is the workaround to force bamboo plan to use updated image from remote repositry?


Answers:
author: Takashi Matsuzawa
body: Thanks, yes, but bamboo's 'Docker configuration' setting page only provides the choice of one of the following 3.

Command:  
"Build a Docker immage"  
"Run a Docker container"  
"Push a Docker image to a Docker registry"

I wonder if I need to do "pull" outside of this 'Docker configuration'

comments: author: Xabier Davila
body: That's one of the reasons why I don't like the docker task. I'd rather do everything in a script that I have full control off and that I can put in version control, rather than fill boxes in a web form.


author: Xabier Davila
body: You should be able to run the up-to-date image is, as a first step in 1), you do

```
docker pull my-remote:5000/my-repository:latest
```

If you just do a docker run, docker will check in your cached images, and it will not check your registry for a more up to date image.


Tags: cloud
Trigger a build from successful deployment?
Asked by Michael Leonard:

I have Bamboo builds that run integration tests against a deployed web site. How can I trigger the builds from a successful deployment of the web site?


Answers:
author: Dana Cleveland
body: Bamboo doesn't have anything out of the box..

I have ended up building a plugin that created 2 new Tasks..

1. Ping Task (enter a URL), and it would ping the site every 30 seconds up to a 15 minutes looking for a REGEX.. if it found it, then it succeeds and completes that, task, if after the timeout period it hasn't found it, then it fails the task which fails the deployment as failed.. Our developers basically add a version file to there apps, so they can query( from a URL) that file and know when the updated version of the app has made to the environment and is active.
2. Trigger Build Plan - Gives a list of Build Plans that you can select from and trigger. Behind the scenes it uses the REST API to trigger the build, and also passes a result= parameter to show where the Deployment Job succeeded, or failed.


Tags: bamboo-administration
Bamboo 5.2.2 compatibility
Asked by SallyD:

I was planning to upgrade multiple Atlassian products the other day but realized that I need to upgrade Postgres first. That, of course, spun me off into the great compatibility hunt. For various reasons, Bamboo has not been upgraded as regularly as our other products and, because of development schedules, cannot be upgraded now.

Does anyone know if this old version of Bamboo works on Postges 9? I'm hoping that I can continue with my upgrade plan and just push Bamboo to the bottom of the pile (again). I expect the official stance from Atlassian will be somewhere between 'LOL' and 'Are you out of your mind?' :smile: but I'm hoping someone out there might have been forced into this experiment already.


Answers:
author: Przemek Bruski
body: We didn't have to do any changes to support Postgres 9. It should work, but will not be supported.


author: SallyD
body: Thanks for the response, Jamie. I appreciate you taking the time. I will likely do the test instance but I'm hoping to hear from someone who already did it. Even a test instance is going to require time from the developers to test the builds. Not sure I can get that right now or I'd go straight to the upgrade.

Sally

comments: author: Jaime S
body: No problem, Sally.I've never tested Bamboo Server in that version, so I can't help you with that. I'm sure someone will have an answer for you, though.


author: SallyD
body: fingers crossed


author: Jaime S
body: Hi, Sally.

The Atlassian products has a 'supported platform' where you'll be able to see if it's compatible with database, JAVA versions, etc.

For example, for Bamboo 4.4, you can access that document [here.](https://confluence.atlassian.com/display/BAMBOO044/Supported+platforms) It doesn't mentioned Postgres 9, but it says 8.4+, so 9 is included.

I advise you to install a test instance and database and check how it goes.

I hope it was helpful.

Kind regards,  
Jaime Kirch da Silveira  
Atlassian Cloud Support


Tags: bamboo-administration
Procedure to make connection between jira cloud and data center using application links
Asked by Subhash Mungara:

While making connection using application link 6 bits asking about consumer key service provider key . How to solve this


Answers:
author: Sayed Bares [ServiceRocket]
body: [@Subhash Mungara](/t5/user/viewprofilepage/user-id/5385177) welcome to Atlassian community!

You can follow the steps mentioned in <https://support.atlassian.com/jira-cloud-administration/docs/use-applinks-to-link-to-atlassian-products/> to link your Jira Cloud to on-prem.

comments: author: subhash mungara
body: Hi , thanks for the response but i've already followed the document that you mentioned but it did not mentioned the required procedure . Following web link which i followed to create token and its giving consumerkey error that i ve attached in the above(consumerkeyError.png)and also Im attaching imgs which shows the required fields that is asking while making connection , pls go through them and help me

<https://developer.atlassian.com/server/jira/platform/oauth/>![consumerkeyError.png](https://community.atlassian.com/t5/image/serverpage/image-id/296562iEE7D6FB86DEAF6C4/image-size/large?v=v2&px=999 "consumerkeyError.png")![MicrosoftTeams-image (1).png](https://community.atlassian.com/t5/image/serverpage/image-id/296563i260D1F53D6FE97FB/image-size/large?v=v2&px=999 "MicrosoftTeams-image (1).png")![MicrosoftTeams-image (2).png](https://community.atlassian.com/t5/image/serverpage/image-id/296560iC2F8CAFE9A1DD460/image-size/large?v=v2&px=999 "MicrosoftTeams-image (2).png")![MicrosoftTeams-image (3).png](https://community.atlassian.com/t5/image/serverpage/image-id/296559i2DC4D8CEEBD883B5/image-size/large?v=v2&px=999 "MicrosoftTeams-image (3).png")![MicrosoftTeams-image.png](https://community.atlassian.com/t5/image/serverpage/image-id/296564i17737A41074D8989/image-size/large?v=v2&px=999 "MicrosoftTeams-image.png")


Tags: cloud

jira-service-management

jira-service-management-cloud
Why is my Bamboo build server not deleting old builds?
Asked by shaulbehr:

Hi,

I've set up a continuous integration build project. In the "Miscellaneous" tab I have checked "Clean working directory after each build". But this apparently does not do what I thought it was supposed to, because on the file system I can see hundreds of old CI builds (under C:\\Atlassian\\Bamboo-home\\xml-data\\build-dir).

I can go in there and manually blow away all these old builds, but this is not a long term plan. How do I set up the build project so that all it does is verify that the solution builds and all unit tests pass, and then it can delete the working directory?


Answers:
author: Radek Antoniuk
body: I think that you are confusing build directory with archiving artifacts results. Build directory is the same for each build and this is called working directory. The checkbox cleans exactly that.

Now, you are talking about the past builds and their artifacts. See this link for help on setting plan data expiration.

<https://confluence.atlassian.com/display/BAMBOO/Configuring+build+results+expiry+for+a+plan>

comments: author: shaulbehr
body: All these checkboxes are set, but it does not delete all the CI builds.


author: rsperafico
body: Hello Shaul,

Thank you for your question.

Please, raise a Support Request under "*Bamboo administration \>\> Overview \>\> System \>\> Atlassian Support Tools \>\> Support Request*" tab so we can better assist you.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support
Retrieve the name of request type
Asked by flim:

I am trying to retrieve the name of request type with smart value?

<https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/>

I have a request type labeled 'Hardware failure'. I've set up an automation that uses the {{issue.issueType.name}} smart value to compare the type name. However, the automation audit log indicates that the action failed because it did not meet the condition. Did I use the wrong smart value?


Answers:
author: Sayed Bares [ServiceRocket]
body: [@flim](/t5/user/viewprofilepage/user-id/5360322) to get the request type name you will need to use **{{issue.Request Type.requestType.name}}** instead, but to have a better understanding from your automation setup can you share a screenshot and your specific use case? do you want to compare issue **labels** with the **issue type** or **request type**?

comments: author: flim
body: It works! Thank you.


Tags: cloud

jira-service-management

jira-service-management-cloud