youngmon/atlassian-qna huggingface dataset:
Build ASP.NET and deploy to IIS
Asked by Fr0zt:

Hello.

I am building an ASP.NET web site using command line, with Visual Studio msbuild, like this:

```
/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true;PackageLocation=${bamboo.build.working.directory}
```

It works ok (it creates a deploy.cmd and a zip file in my build working directory).

In my deploy task, I also used command line and define my task like this:

```
msdeploy -verb:sync -source:package="ASPSample.zip" -dest:auto -setParam:kind=ProviderPath,scope=contentPath,value="Default Web Site"
```

In here something is going on because my Deploy keeps going for a while... I think it's some issue about the working directory, because if I use this commands in the command line (by hand) everything is working fine.

So, my question is this: what's the better solution for fixing this? (Making the deploy fetching the same directory where my build is).

Thanks.


Answers:
author: Omar Herrera
body: Hi [@Fr0zt](/t5/user/viewprofilepage/user-id/1188314) if you are using deploy task on a Deployment proyect the firt step is download the artifact second one the path for "ASPSample.zip" must be absolut path you must combine the working directory + ASPSample.zip.

Cheers.

comments: author: Fr0zt
body: Yes thanks.

I don't know why but I just remaked the build and the deploy and it works ok now.

Thanks


Tags: bamboo-development

deployment

iis
Bamboo 6.6 compatible with older Atlassian
Asked by Julia Nunes Pedrosa:

We are whiling to update our Bamboo instance from 5.13 to 6.6 and would like to know a way to check the compatibility between the new version and the versions we have of other Atlassian softwares as shown below:

* Jira 7.2.3
* Bitbucket 4.10.0
* Confluence 5.10.7

I though of opening an Issue with the Support Team, but I don't know if this is the case.


Answers:
author: Krystian Brazulewicz
body: [@Julia Nunes Pedrosa](/t5/user/viewprofilepage/user-id/1244295) here at Atlassian we're testing compatibility across our product offering. Your safe bet is that if given product version is still supported then it should be compatible with other supported product versions. Upgrading on an annual or more frequent basis will ensure that products are compatible and most recent integrations provide maximum value for your organisation.

comments: author: Julia Nunes Pedrosa
body: Hey [@Krystian Brazulewicz](/t5/user/viewprofilepage/user-id/853277)

Thanks for your quick response. =)


author: James Brown
body: Hi Krystian,

Do you have any other resources that detail additional compatibility information between all Atlassian Applications?

We would like to know what integration capabilities we will loose by different applications being on older versions.

For instance, we are upgrading Bamboo to 6.10.3 while Jira will be 7.9.2, Confluence 6.9.0, Bitbucket 5.10.0, Crowd 3.4.3.


author: Julia Nunes Pedrosa
body: I just discovered that this compatibility is the responsibility of Application Link, which contains a compatibility [matrix](https://confluence.atlassian.com/display/APPLINKS061/Application+links+version+matrix#Applicationlinksversionmatrix-exception) for this conference.


Tags: atlassian-support

upgrade
Packaging YAML Specs with Source Code
Asked by Pranav Vachaspati:

Is there a way to package YAML build specs with source code stored in BitBucket as opposed to the Bamboo database?


Answers:
author: Gabriel Ribeiro
body: Hi Pranav,

I'm not sure if I understood what exactly you're trying to do but, as you know, the YAML file only carries the settings that Bamboo will use to generate your build plans. If you are currently using repository stored YAML specs, all changes to the YAML file will be automatically reflected in your plans so technically, you are already storing the configuration in your repository. Please take a look at the following tutorial, it might be helpful:

* [Tutorial: Bamboo Specs YAML stored in Bitbucket Server](https://confluence.atlassian.com/bamboo/tutorial-bamboo-specs-yaml-stored-in-bitbucket-server-941616819.html)

Let us know if you have any other concern regarding this approach.

thanks.


Tags: bitbucket
Bamboo - Bitbucket issue
Asked by Manasa Tumu:

I'm trying to enable the webhook for every commit that happens on a bitbucket repository. When i try to add the webhook url on bitbucket, it says invalid url. Can someone help?

<https://confluence.atlassian.com/bamboo0605/using-bamboo/triggering-builds/triggering-a-bamboo-build-from-bitbucket-cloud-using-webhooks>

[https://build.company.name/browse/TEST-BT/rest/triggers/1.0/remote/changeDetection?planKey=TEST-BT\&skipBranches=false](https://build.company.name/browse/TEST-BT/rest/triggers/1.0/remote/changeDetection?planKey=TEST-BT&skipBranches=false)

It gives me an invalid url.


Answers:
author: Alexey Chystoprudov
body: Correct URL for trigger is

[https://build.company.name/rest/triggers/1.0/remote/changeDetection?planKey=TEST-BT\&skipBranches=false](https://build.company.name/browse/TEST-BT/rest/triggers/1.0/remote/changeDetection?planKey=TEST-BT&skipBranches=false)

comments: author: Manasa Tumu
body: I have tried above but still getting the Invalid URL issue.


author: Alexey Chystoprudov
body: Does it work from command line, e.g. curl?

```
curl -X POST -H "Content-Type: application/json" "https://build.company.name/rest/triggers/1.0/remote/changeDetection?planKey=TEST-BT&skipBranches=false"
```


author: Manasa Tumu
body: It gives me a

Build request for plan originated from ip which is not an allowed address issue.


author: Alexey Chystoprudov
body: t's exactly response from trigger. Check you provided correct IP white list at trigger configuration


author: Manasa Tumu
body: I have added the whitelist provided in my bamboo trigger.

<https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html>

Bitbucket webhook configuration says url i have provided is invalid. Could you help in resolving the url issue?


author: Manasa Tumu
body: We had the restrictions on infrastructure for private url, when i used the public it worked as expected.

Thanks for the help!


author: Yogesh Mude
body: Hi [@Manasa Tumu](/t5/user/viewprofilepage/user-id/1262149)

Welcome to the community!

Please have a look at the below article, hope it helps.

<https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html>

comments: author: Manasa Tumu
body: [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678) Thank you for the response. I have followed the two documents but still have issue with the url which i had provided on bitbucket-\>webhooks-\> Add new webhook -\> Url for a bamboo plan.

<https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html>

<https://confluence.atlassian.com/bamboo0605/using-bamboo/triggering-builds/triggering-a-bamboo-build-from-bitbucket-cloud-using-webhooks>

URL: [https://build.company.name/browse/TEST-BT/rest/triggers/1.0/remote/changeDetection?planKey=TEST-BT\&skipBranches=false](https://build.company.name/browse/TEST-BT/rest/triggers/1.0/remote/changeDetection?planKey=TEST-BT&skipBranches=false)


Tags: bitbucket

bitbucket-cloud

cloud
How to automatically generate a release downloads page between Confluence and Bamboo
Asked by Mathew Benson:

I am using server products. New as of the past few months. I have Jira, Bitbucket, and Bamboo fairly well integrated. I'm able to initiate a release from Jira. This kicks off a Bamboo job that runs one last test suite, generates coverage metrics reports, generates documentation, and collects the documentation and the built products as artifacts. Finally, it tags the commit and pushes the tag back to Bitbucket. A nice well oiled machine. To get to the built products requires many mouse clicks and a good knowledge of Bamboo and our build projects and plans. I would now like to add a Confluence page that gives users a quick and directed way to get to the release artifact download itself. Also a link to the Jira project release project for those that want detailed information. What are some options here? Does anybody have recommendations?


Answers:
author: Robert W
body: Hey Mathew,

You should be able to create Confluence Pages using the Confluence REST API.

You can see a discussion of something very similar here:

<https://community.atlassian.com/t5/Confluence-questions/Create-Page-Confluence-REST-API/qaq-p/459443>

I also suggest you check out the "Create Content" call in our documentation:

<https://docs.atlassian.com/atlassian-confluence/REST/6.6.0/?_ga=2.187205359.690639475.1532355071-1705418969.1518219027#content-createContent>

I hope this helps!

Cheers, Robert Watson Dev Tools Support \| Atlassian


Tags: confluence

confluence-server

server
Dynamically repository from Stash
Asked by Rafa blanco:

Hello,

Is there a way to Bamboo take a repository dynamically?

My repos are created dynamically from a thrd party and i want to build and deploy its automatilly, but i dont know if is posible, the unic static part is the project from Stah.

Thx.


Answers:
author: Jeyanthan I
body: Hi Rafa,

You will have to define a linked repository manually in the UI and there is no option to discover and auto-add a repository to Bamboo automatically.  

As of now, it is only possible to [create a plan branch](https://confluence.atlassian.com/bamboo/using-plan-branches-289276872.html) soon after a new branch is discovered in your repository. But, I understand this is not what your requirement is.


Tags: bitbucket
Creating a final stage in Bamboo that is always run
Asked by Krishna T:

I want to Run bamboo job on stages 1st stage for Build and 2nd stage for testing but it should not build job again?

Can you please suggest what are the parameters we need to add.

Thanks


Answers:
author: Jeremy Owen
body: Hey Krishna,

Final stages functionality is in beta and can be enabled following the instructions in Marcin's comments below:

* [BAM-9771: Final Stage for plans](https://jira.atlassian.com/browse/BAM-9771?focusedCommentId=979501&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-979501)

A final stage is a stage that will always run during a build, regardless of if any jobs / stages fail but I wasn't sure from your description if that was exactly what you were after.

It sounded like you wanted to run your second *testing* stage without running the first build stage again. If your *build* stage succeeds but your tests fail and you just want to rerun your tests, you can always make use of the Rerun failed / incomplete jobs functionality:

* [Rerunning a failed stage](https://confluence.atlassian.com/bamboo/rerunning-a-failed-stage-289276867.html)

Hope this helps. :)
Clover coverage metrics very slow
Asked by Mathew Benson:

I just migrated from Jenkins to Bamboo 6.6. My build and unit tests took about 20 minutes to complete on the previous Jenkins server. It parsed the cobertura formatted xml file generated by gcovr, in under 30 seconds. I added Bamboo tasks to:

1. Run gcov on each file
2. Generate a string containing every gcov file in the build.
3. Run gcov_to_clover.py with the generated string as input.

This works, but is painfully slow, taking hours to run the gcov_to_clover.py script with all those files. This is a little frustrating since the previous solution I was using parsed the coverage files in seconds. For those that are using Bamboo for C/C++ projects, is this our only option?


Answers:
author: Mathew Benson
body: I'm not a strong python developer, so I'm not sure to optimize this. But the bottleneck lies in line 405:

file_node.appendChild(line_node);

If I comment this line out, it obviously doesn't write all the correct data to the xml file, but execution time goes from hours to about 20 seconds.

comments: author: Jeyanthan I
body: Hi Mathew,

Did you try running the same in the respective Bamboo agent's command prompt (outside Bamboo)?

If you experience same slowness, it is likely that the issue is not on the Bamboo side.


author: Mathew Benson
body: Yes. It is not on the bamboo side. I didn't expect that it was. The appendChild function scales poorly as the container grows. With a code base with hundreds of thousands of SLOC, that function gets called hundreds of thousands of times. I abandoned trying to make that python script work and found another script created by somebody else. This new script performs an XSLT transform from the cobertura XML output of gcovr to the clover XML format. That script takes about 5 seconds to complete. So I can collect coverage metrics in about 30 seconds again.

I knew the problem was in the python script. It's just that was the only recommended way to show c/c++ metrics that I could find here on the Atlassian boards. Clover seems to work great on java projects using the maven and ant build systems. I was frustrated thinking I might be the only one using Bamboo on c/c++ projects using cmake/ctest.

I did eventually get it to work, though I'm not really sure how clover integration benefits the project. It only shows a single summary metric. I ended up having to use gcovr to generate the detailed html reports anyway. Independent of clover. Bamboo has nice integration into the ctest test results, letting me easily submit jira tickets on new issues. There doesn't seem to be a way to apply a pass/fail coverage threshold, or submit tickets when the minimum coverage is not met.


author: Jeyanthan I
body: Sure. You may check for existing feature requests and create one if need be here: <https://jira.atlassian.com/projects/CLOV/issues/>


Tags: clover
What is UUID in bamboo
Asked by skgirish87:

What is UUID in bamboo?


Answers:
author: Jeremy Owen
body: Hey Gireesh,

UUID = Universally unique identifier. It's a generic term for unique identifiers but In the context of Bamboo, it's typically used to refer to the unique identifier that is allocated to a Bamboo Remote Agent upon start-up.

An agent's UUID is stored in *\<bamboo-agent-home\>/bamboo-agent.cfg.xml* and is used for authentication purposes when the agent connects to the Bamboo Server.
Python script unable to open browser and test after integrating as bamboo task in build plan.
Asked by prabhat:

I have a python script that invokes browser and test few features and create a log. When I run this python script on windows server, it is working properly and invoking browser and

I can see the feature testing one by one in browser. But when I added this python script as a task in bamboo build plan, it is not invoking browser.


Answers:
author: Foong
body: Is Bamboo started through the file "start-bamboo.bat" or Windows Service?

If Windows Service, is it configured to run as "Local System account" or a user account? For more info, refer to [Running Bamboo as a Windows service as the local user](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html)

Set the Windows Service to run as a local user account and then login to the machine with that user account to see the invoked browser.
What is the upgrade path from Bamboo 6.0 to the latest (6.6)
Asked by Lena:

Hello, I plan to upgrade from Bamboo 6.0 to 6.6

Is direct upgrade OK or any intermediate versions required first?

Thanks


Answers:
author: Yogesh Mude
body: HI [@Lena](/t5/user/viewprofilepage/user-id/1467951)

Welcome to the community!

Not required, you can directly upgrade from v6.0 to v6.6.

Please go through intermediate [release notes](https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html) and [upgrade notes](https://confluence.atlassian.com/bamboo/bamboo-upgrade-guide-720411366.html) before the upgrade.

comments: author: Lena
body: Thanks Yogesh


author: Jeyanthan I
body: If you're using Crowd for user management, you may have to upgrade to 6.5 first and then to 6.6 due to this bug [BAM-19965](https://jira.atlassian.com/browse/BAM-19965) that was reported recently.

comments: author: Lena
body: Thanks Jeyanthan.

I use JIRA for user mnagement.

Can I upgrade directy 6.0 to 6.6?


author: Alexey Chystoprudov
body: It's also Crowd, you should wait for 6.6.1 release which should be published this week. There're few fixes related to upgrades: <https://jira.atlassian.com/issues/?jql=project%20%3D%20BAM%20AND%20fixVersion%20in%20(6.6.1)%20ORDER%20BY%20priority%20DESC%2C%20updated%20DESC>
Setup Bamboo in Azure
Asked by Patrick Jefferies:

Is it possible to set up Bamboo to run in Azure? I want to have our build pipeline there along with our other infrastructure but I can find any documentation anywhere about how to configure Bamboo there, either on a VM or otherwise.

Any advice?


Answers:
author: Jeyanthan I
body: Hi Patrick,

If the platform [meets the requirement](https://confluence.atlassian.com/bamboo/supported-platforms-289276764.html), running Bamboo shouldn't be an issue. Setting up a Bamboo instance just needs JDK and a supported database. You may just follow the usual [installation documentation](https://confluence.atlassian.com/bamboo/installing-bamboo-on-linux-289276792.html) to install in Azure VM.

If you are looking to deploy your plans to Azure, there is a feature request for that here: [\[BAM-13047\] Deploy to Windows Azure](https://jira.atlassian.com/browse/BAM-13047). Please add your vote and comments there to increase its popularity so it is more likely to be implemented sooner.

However, looking at [the Azure documentation](https://docs.microsoft.com/en-us/powershell/azure/overview?view=azurermps-6.2.0), I see everything can be done using [Azure PowerShell](https://docs.microsoft.com/en-us/powershell/azure/install-azurerm-ps?view=azurermps-6.2.0). This means that it is possible to automate everything using a [Script task](https://confluence.atlassian.com/bamboo/script-289277046.html).

Hope that helps.

Cheers,  
Jey

comments: author: Jason yan
body: it doesn't sound like a containerized marketplace service I can use script to spin up.
Bamboo?Linux????????????
Asked by Kazuhiro Kato:

????????????

Bamboo?Linux?AWS?Ubuntu???????????????

???????????????????????????

?????????????????????????

?AWS?????8085???????????

<http://54.248.210.88:8085/>

?????

JDK?????????JAVA_HOME?????

# echo $JAVA_HOME

# java -version

????????

java?????????1.8.0_171????

Bamboo?????????6.6.0????

Bamboo??????????????

/usr/local/bamboo/atlassian-bamboo-6.6.0

Bamboo???????????

/var/atlassian/application-data/bamboo

?????

<https://confluence.atlassian.com/bamboo/installing-bamboo-on-linux-289276792.html>

??????????????????????


Answers:
author: Nobuyuki Mukai
body: ??????????????? ??????????????????????????????????

?????????????????????????????????????????????????????????????????????????????????

???????????????

--

?????????? ????

comments: author: Nobuyuki Mukai
body: ????????????????????????????54.248.210.88?Linux???????????IP?????????????????????????????????????????????????????????????

--

?????????? ????


Tags: language-ja
Where can I find UI plugin documentation?
Asked by sta-szek:

Hi,

I am developing bamboo plugin and I want to create a little bit advanced task UI -- I want to create form, that will have two inputs (textfields) and plus button. When user click the button, next two fields should be added and so on... (Something similar to view, when you can add artifact one by one in "Artifact download" task in deployment)

Question is, where can I find bamboo docs or third party docs about tags like this:

```
[@ww.textfield
```

I saw <https://community.atlassian.com/t5/Answers-Developer-Questions/Where-can-I-find-Bamboo-Freemarker-macro-functions-definition/qaq-p/473258> but the answer does not satisfies me.

When I search in google I can find only those links:

<https://github.com/charleso/bamboo-git-plugin/blob/master/src/main/resources/com/atlassian/bamboo/plugins/git/gitRepositoryEdit.ftl>

<https://github.com/zeroturnaround/bamboo-liverebel-plugin/blob/master/src/main/resources/editDeployTask.ftl>

Any help (and a little background to those frameworks) will be appreciated!

Thanks


Answers:
author: AnnWorley
body: Hi Piotr,

There are a lot of plugin developers and dev docs on this forum: [Atlassian Developer Community](https://developer.atlassian.com/) I hope you can find more help there.

Thanks,

Ann


Tags: bamboo-app

bamboo-development
how to download specific build package from Nexus using Bamboo
Asked by Abhishek Pareek:

We are trying to create a CI-CD pipeline for build and deploy. Right now I have created a build pipeline to build the code and maven plugin to upload to Nexus.

Please help me how can I download any specific package in a bamboo job, right now I am able to download only Latest build.


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Please, have a look

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

<https://help.sonatype.com/repomanager3/rest-and-integration-api>

Cheers,

Gonchik Tsymzhitov
Using Entrust for Authenication to log in Bamboo server
Asked by Jay Chang:

Hi,

My company requires that users access from internet to our Bamboo server must be authenticated via Entrust server. Our system admin indicated that Entrust user info can be passed as header to Bamboo. I have no idea how this works even if it is possible. Did anyone implemented this integration? Or if you have idea how to implement this, please share with me. Much appreciated.

JC


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope the latest version 6.8.0 will cover your request (include embedded Crowd)

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

Cheers,

Gonchik Tsymzhitov


Tags: authentication

integration

server
Performance when running executable shell scripts
Asked by Kyle Brandstetter:

I've been using bamboo to automate tests and builds for awhile, but I recently added a performance test for some heavy c++ code to perform a variety of math based operations. I'm just executing this from a shell script and I've noticed that when I run the shell script by hand on the same host and file system I consistently get about 10% shorter run times than from bamboo. I was thinking this might be due to the capturing of the console output so I piped everything into the log in a background task and just had the bamboo job waiting on the task to finish but that didn't seem to have any effect.

I made sure my agent is spawning the script at the same nice level as a user would, but I'm out of other things to check.

Is there anything I can do to get similar performance as running the script standalone?


Answers:
author: Foong
body: Is the agent running on Windows or Linux?

Is it elastic or remote agent?

comments: author: Kyle Brandstetter
body: Linux, I see similiar behavior on remote agents or the host itself even when other jobs are not running.


author: Foong
body: Since it is a heavy task, try increasing the heap memory in the remote agent **\<bamboo-agent-home\>/conf/wrapper.conf**:

```
wrapper.java.maxmemory=1024

```

The remote agent have to be restarted after the modification.

To make sure that the shell script is executed by the same interpreter, add the following line at the top of the script:

```
#!/bin/sh

```

After adding the shebang, test the running time between console and Bamboo remote agent again.