youngmon/atlassian-qna huggingface dataset:
what is bamboo in jira
Asked by anhdao.nguyen:


Answers:
author: Nic Brough -Adaptavist-
body: Bamboo is a build / CI / CD server that was written by Atlassian and integrates closely with JIRA etc


author: Jobin Kuruvilla [Adaptavist]
body: Bamboo is a separate product, used for CI/CD, and doesn't come with JIRA. You can integrate them though. See <https://www.atlassian.com/software/bamboo> for more details.


Tags: bamboo-administration
Button that refreshes the same page
Asked by Ramana Gyambavantha:

I have a requirement to add a "Test Connection" button to my task. When the button is clicked, based on the action response, the page should show a section which says whether the connection is successful or not. I could add the button and my action is triggered, however, different page is re-loaded. Is there a attribute to specify type="reload"?


Answers:
author: Alexey Chystoprudov
body: Look at some samples with JS resources, for example <https://bitbucket.org/atlassian/bamboo-build-times-plugin>

You need to define web-resource element in atlassian-plugin.xml, it will be added to bundled and minified JS code then you can use it on your page


author: Ramana Gyambavantha
body: Can you also point me to samples, where the task UI config class and the ftl files can be kept in sync. I mean when the button is clicked, the UI should display a section with the status message.


author: Ramana Gyambavantha
body: Thanks Alexey,

Now struck with weird problem. If I inline the JS code, the function gets called, however including it via src='... doesn't work. Any help is appreciated.

Works...

```
&lt;html&gt; &lt;script&gt;	function myFunction() {		alert("Hello");	} &lt;/script&gt; &lt;body&gt; [@ww.textfield labelKey="echoString.label" name="echoString" description="echoString.description" required='true'/] &lt;input type="button" class="button" value="Click Me" onclick="myFunction()" /&gt; &lt;/body&gt; &lt;/html&gt;
```

Doesn't work

```
&lt;html&gt; &lt;script src="/js/helloworld.js"&gt; &lt;/script&gt; &lt;body&gt; [@ww.textfield labelKey="echoString.label" name="echoString" description="echoString.description" required='true'/] &lt;input type="button" class="button" value="Click Me" onclick="myFunction()" /&gt; &lt;/body&gt; &lt;/html&gt;
```


author: Alexey Chystoprudov
body: You should create rest endpoint at server side and use JS to submit data from UI to this REST resource. So form will be not submitted, but all interaction between web page and server should be handled by AJAX
HIBERNATE_UNIQUE_KEY doesn't exist; Bamboo hangs on upgrade task 4300
Asked by Aaron Bauman:

When Bamboo is starting up after an update, the following messages appear, followed by nothing. Seems like the upgrade manager is stuck on task 4300. How do i fix this?

```
2017-03-10 15:11:08,422 INFO [localhost-startStop-1] [DefaultBootstrapManager] Running pre-bootstrap validation tasks2017-03-10 15:11:08,500 INFO [localhost-startStop-1] [AbstractUpgradeManager] -----------------------------------------------------------------2017-03-10 15:11:08,500 INFO [localhost-startStop-1] [AbstractUpgradeManager] 4300 : Make sure there's single row in HIBERNATE_UNIQUE_KEY table2017-03-10 15:11:08,500 INFO [localhost-startStop-1] [AbstractUpgradeManager] -----------------------------------------------------------------2017-03-10 15:11:08,571 INFO [MLog-Init-Reporter] [MLog] MLog clients using slf4j logging.2017-03-10 15:11:08,642 INFO [localhost-startStop-1] [C3P0Registry] Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]2017-03-10 15:11:08,721 INFO [localhost-startStop-1] [AbstractPoolBackedDataSource] Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@88209804 [ connectionPoolDataSource -&gt; com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@cbabd4b8 [ acquireIncrement -&gt; 1, acquireRetryAttempts -&gt; 30, acquireRetryDelay -&gt; 1000, autoCommitOnClose -&gt; false, automaticTestTable -&gt; null, breakAfterAcquireFailure -&gt; false, checkoutTimeout -&gt; 0, connectionCustomizerClassName -&gt; null, connectionTesterClassName -&gt; com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -&gt; caller, debugUnreturnedConnectionStackTraces -&gt; false, factoryClassLocation -&gt; null, forceIgnoreUnresolvedTransactions -&gt; false, forceSynchronousCheckins -&gt; false, identityToken -&gt; ******, idleConnectionTestPeriod -&gt; 100, initialPoolSize -&gt; 0, maxAdministrativeTaskTime -&gt; 0, maxConnectionAge -&gt; 0, maxIdleTime -&gt; 30, maxIdleTimeExcessConnections -&gt; 0, maxPoolSize -&gt; 100, maxStatements -&gt; 0, maxStatementsPerConnection -&gt; 0, minPoolSize -&gt; 0, nestedDataSource -&gt; com.mchange.v2.c3p0.DriverManagerDataSource@425b3521 [ description -&gt; null, driverClass -&gt; null, factoryClassLocation -&gt; null, forceUseNamedDriverClass -&gt; false, identityToken -&gt; ******, jdbcUrl -&gt; ******, properties -&gt; {user=******, password=******} ], preferredTestQuery -&gt; null, privilegeSpawnedThreads -&gt; false, propertyCycle -&gt; 0, statementCacheNumDeferredCloseThreads -&gt; 0, testConnectionOnCheckin -&gt; false, testConnectionOnCheckout -&gt; false, unreturnedConnectionTimeout -&gt; 0, usesTraditionalReflectiveProxies -&gt; false; userOverrides: {} ], dataSourceName -&gt; null, extensions -&gt; {}, factoryClassLocation -&gt; null, identityToken -&gt; ******, numHelperThreads -&gt; 3 ]
```


Answers:
author: Aaron Bauman
body: Not related to this specific error.

Bamboo failed to reach the database server due to a network issue.

Restoring access to database server resolved the issue.


Tags: bamboo-administration

hibernate

upgrade
why is the 'Deployment Panel' no longer displayed in the issue 'Development Panel'?
Asked by Daniel Andi?n:

This used to be displayed but it no longer does. Is there any way to activate it or workaround to see in the issue the environment in which the commit is deployed?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Check the logs to see if there are any issues connecting the two apps. You can also try deleting and recreating the application links.
I want to retrieve status(result) of last deployment project using REST API
Asked by Amol Shende:

I am using Bamboo 5.9.7.

I have deployment project configured for 2 environments "stage1" , "stage2".

I want to retrieve last deployment status for both environments using REST api.

How can i do that?


Answers:
author: Fr?d?ric CORNU
body: Hi,

You'll find all you need in here :

<https://docs.atlassian.com/bamboo/REST/5.9.7/#d2e902>

comments: author: feathorster
body: Hi,

is there any chance to get in response only last result? I have a lot of deployments per environment and waiting for response take some time :(

Thanks!
Bamboo: Multiple jobs on single agent
Asked by dpigan:

In following configuration:

Plan:

* Stage 1
  * Job 1
  * Job 2

Given I have only 1 agent will both jobs run simultaneously or sequentially?


Answers:
author: Fr?d?ric CORNU
body: Hi,

They will run sequentially

Job2 will be queued until Job1 completes

comments: author: dpigan
body: Thanks! :smile:
Bamboo Rest Api Reports
Asked by uknami:

Hi,

I am trying to get build reports out of bamboo using the bamboo rest api. I am using \\chart\\reports api.

But this returns an image map. The image map just returns the name of the image but not the actual image.

I want to display this chart on our custom html page, this is impossible without the image. Is there any way we can also get the image as part of the image map? I know I could just use the api to get the data and construct the chart myself but if I could use out of the box solution then why do it myself?

I'll appreciate a prompt response.

Regards,

Nas


Answers:
author: uknami
body: Ok I got it to work on my own. The file name returned is removed eventually after the request. You will need to get the image like this:

```
https://yourbambooHost/chart?filename=<specify the file name>
```
Configure Bamboo for Android Gradle based Project
Asked by admin:

I am trying to setup Bamboo for my **Gradle** build system based **Android Project.** I have done the following setup on Bamboo.I'm done with rest of all setup upto project repository path.

I want to run the following tasks using gradlew for android

**clean assembleDebug LintDebug**

For that I have created new task called **Gradle Wrapper**. Below is the Gradle Wrapper Configuration

[![](https://i.stack.imgur.com/vvQuO.jpg)](https://i.stack.imgur.com/vvQuO.jpg)

When I am executing gradle wrapper task, I am getting the following error.

Caused by: java.lang.IllegalStateException: Cannot find executable 'D:\\AndroidDemo\\gradle-2.10\\bin\\gradlew.bat'

**Note** :- Standalone Gradle is working fine on local machine with all the tasks(**clean assembleDebug LintDebug)**

Gradle_Home = D:\\AndroidDemo\\gradle-2.10\\bin(Local machine)

Can anyone suggest a solution for the same?


Answers:
author: Oleksandr Tkachenko
body: Hi, are you running a Bamboo on your local machine? As error says that Bamboo cannot find an executable that is configured to use. You need to check where Gradle is installed on you Bamboo server/agent that is trying to run a build.


Tags: android

gradle
Only 1 build shows in JIRA
Asked by S M:

Since upgrading JIRA to version 7.3 and Bamboo to v5.14, within JIRA under the development panel we are only seeing 1 build listed when in fact we have several associated with that particular issue. Are others experiencing this behavior? Is there a setting I missed?  
[](https://community.atlassian.com/t5/Bamboo-questions/Only-1-build-shows-in-JIRA/qaq-p/342210?attachment-id=45){#link_11662d19559966}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/10824/1/Capture.PNG){#display_11662d19559966_0}


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: There is no setting other than making sure that the application links are correctly configured. Are you seeing any errors in the logs while viewing that issue. Did you try deleting and recreating the Bamboo application link?

comments: author: S M
body: Thank you Jobin for the response. We have tried to re-create the link. The link indicates it is successfully connected and does provide to JIRA the last build information, however not the total number of builds associated with a particular issue. We expected to see in the screen shot below 13 builds listed not just the one. I'm curious the version you are running of JIRA and Bamboo as if they are the same and you are seeing the correct number of builds that would be helpful information. Again my thanks.

Capture.PNG


Tags: jira-administration
Deploy "Promote existing release to this environment" ?
Asked by Markus Czerwinka:

Hello,

in Bamboo I can choose in Deployment between

* create new release from build reseult
* promote existing release to this environment

The Problem is, that I'm not sure what the second one "promote existing..." mean. Can someone give me a description of it?

The documentation from Atlassian doesn't help.

ScreenHunter_03 Mar. 02 14.10.gif

TIA

Markus

[](https://community.atlassian.com/t5/Bamboo-questions/Deploy-quot-Promote-existing-release-to-this-environment-quot/qaq-p/83742?attachment-id=1524){#link_11662d417f7c10}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/2628/1/ScreenHunter_03%20Mar.%2002%2014.10.gif){#display_11662d417f7c10_0}


Answers:
author: Pawel Skierczynski
body: I'd start with <https://confluence.atlassian.com/bamboo/deployment-projects-338363438.html> and read carefully what is release in Bamboo.

Creating release will result in new "release object" it doesn't necessarily mean it will be deployed anywhere or that any other action will be taken.

Promoting release to environment means that release has been already defined earlier (like with "create new release" action) and now tasks defined on chosen environment will be run with that release.

Trying to give you example. Build result can for example produce some artefacts. Probably not every build result is a release though (like you have results every commit, but you release like once a week or once a month).

At some point you decide that it's time to release it - so you create release in Bamboo. Then later you deploy it to server running "promote release to environment". First you release it to test environment or dogfood environment, then later to production server (like your tasks are copying artefacts to proper server - tasks are defined per environment, because releasing to different environments usually mean different things).


Tags: bamboo-administration
Bamboo - Integrate with custom Testing Framework
Asked by mbregante:

I've a custom test framework/system, as part of my CI process I want to have Bamboo *read* the results of the tests for a given build.

In my head the process should be like:

1. Bamboo creates the build \& deploys to the appropiate testing environment.
2. Bamboo signals my test system to run the test suite against the deployed build.
3. My test system does it's stuff (results are stored in a custom DB).
4. Bamboo somehow asks/gets the results from the testing process.
5. I can use Bamboo GUI to browser build tests results (passed, failed, etc).

I tried to google for an answer but it's difficult to find info on this. I assume I have to generate some kind of file with test result data for Bamboo to consume. Maybe use an existing Bamboo test result parser such Junit, and write my results with that format?

Thanks


Answers:
author: Pawel Skierczynski
body: The easiest way would be to convert test result data of your system to JUnit format, so JUnit Parser (<https://confluence.atlassian.com/bamboo/junit-parser-289277056.html>) would parse it.

Another solution would be to write your own test parser. Good starting point for that would be <https://developer.atlassian.com/bamboodev/bamboo-tasks-api/test-collection-and-reporting>.

On marketplace there is Generic Test Results Parser for Bamboo (<https://marketplace.atlassian.com/plugins/com.valens.bamboo-logparser-plugin/server/overview>), but honestly I have no idea how good it is.

comments: author: mbregante
body: Thanks, I'm looking for Junit format, although I also will investigate your other proposals just to compare.


author: mbregante
body: Where should I place the generated XML files?

ie my build ulr is http://.../browse/GT-RC1603-21 , 21 is the build number, so I think xml files somehow must be related to each build, right ? otherwise history is lost after a new build.


author: mbregante
body: I've learned that test results are stored in the bamboo DB so no problem with xml files and history.


author: Pawel Skierczynski
body: Yes that is correct - file will be parsed and data put into database.


author: Daniel Tench
body: Just note there is a bug in the Junit Parser which means duplicate test names don't get parsed correctly. See: <https://jira.atlassian.com/browse/BAM-17738>


author: Soeren Rumpf
body: And another note regarding huge test suites (\> 1k tests) which will not all show up in the tests page of the job. See <https://jira.atlassian.com/browse/BAM-20632>
Can you customize the email templates of deployment plans in Bamboo
Asked by Peter Szilagyi:

I know you can modify the email freemarker templates for each of the build plans as per this documentation:

<http://confluence.atlassian.com/display/BAMBOO/Modifying+Notification+Templates>

However I would like to customize the templates for Deployment plans but I cannot find which one supposed to be the one responsible for emails sent as notifications of deployments under \\WEB-INF\\classes\\notification-templates\\

I guess those deployment plans are using hard-coded 'templates'. Is that right? Or is there a way the customize them?

Thanks.


Answers:
author: Peter Szilagyi
body: Meanwhile I have found this other question, but the answer doesn't seem to be useful:

<https://answers.atlassian.com/questions/10397617>
oraclejdbc.jar version for latest bamboo while upgrade.
Asked by S Sujata:

Can I know, which version of oraclejdbc.jar we need to download and install during upgrade to latest version from 5.11 to 5.14/5.15.

Please assist with guidelines: 5.11 version we were using oracle-jdbc15-11.2.0.1.0 and use to copy in this way: not sure if we need to do the same for 5.14/5.15 verison.

rsync -avH /amp/bamboo/atlassian-bamboo-old-version/atlassian-bamboo/WEB-INF/lib/oracle-jdbc15-11.2.0.1.0.jar /amp/bamboo/atlassian-newversion/atlassian-bamboo/WEB-INF/lib/


Answers:
author: Przemek Bruski
body: Bamboo ships with an Oracle driver. You don't need (and you should not) change that driver unless told so by Support.
I have separate projects in Bamboo Project A and Project B. If Project A launches a build through the agent on Server 1 is Project B prevented from launching a build on server 1?
Asked by William Kouri:

I have separate projects in Bamboo Project A and Project B. If Project A launches a build through the agent on Server 1 is Project B prevented from launching a build on server 1?


Answers:
author: Christian Glockner
body: Hi William,

Tasks in Bamboo are executed by agents, and an agent will always execute only one task at a time. If you only have a single agent (local, remote, or elastic), in the situation you've described, if Project A runs a build, Project B cannot build and the other build is finished.

Cheers,

Christian

Premier Support Engineer

Atlassian
Can Bamboo Build Plan create a simple file with build number, commit message and add it to the war/jar file?
Asked by Ankur Doshi:

Is it possible to dynamically add a file that has build Number and commit message, into the war that will be built?


Answers:
author: Black Diamond
body: Any of the environment variables that are available can be used in a shell script task to create a file. They can also be used by Ant/Maven/Gradle builds to put them in the jar's manifest.

-Rich

comments: author: Ankur Doshi
body: Thanks Rich for the response.

The required environment variables that can be used are in the deprecated section of bamboo documentation so they can be removed with new release of Bamboo.

I am trying to add a new file or better edit an existing file that is already in the war and not the jar's manifest file. Eg. Say test.properties is one of the file in the repository and when bamboo runs the build plan, I want to add few lines to this file and add it back to the war. (Edit the file and generate war, or generate war and then edit the file in war. Either approach is okay)


Tags: build

git
can the REST API create a release from a build?
Asked by Erik Husby:

Can I create a release for a build from the REST API?

I know that one can have the deployment project triggered by a successful build. That creates a release and deploys it.

I want to have a suite of builds built and ready to be deployed. But do not want to deploy them until later. And I don't want to have to do all the clicking that one needs to do in the UI.


Answers:
author: Fr?d?ric CORNU
body: Hi

Sire it can be done

in here, some Python code we use in here to do so :

```
def createRelease(self, deploymentProjectId):    """    Create a release for the specified deployment project    :param deploymentProjectId: ID of the deployment project    :type deploymentProjectId: str    :return: created release infos    :rtype: BambooRelease    """    depPrj = self.getDeploymentProjectInfos(deploymentProjectId)    lastBuildResultKey = self.getLastSuccessfulBuildForPlanId(depPrj.planKey).key    versionResponseDict = self.restClient.doGet("/deploy/projectVersioning/{ID}/nextVersion.json".format(        ID=deploymentProjectId), {'resultKey' : lastBuildResultKey})    nextVersionName = versionResponseDict['nextVersionName']    jsonPayload = {                    'planResultKey': lastBuildResultKey,                    'name': nextVersionName                 }    response = self.restClient.doPost("/deploy/project/{ID}/version.json".format(ID=deploymentProjectId), json=jsonPayload)    return BambooRelease.fromReleaseDict(response)
```

This code uses the 'requests' python module for HTTP/Rest calls.

The key aspect of the process is :

1) Get the ID of the build you want to deploy

2) Ask bamboo to generate the next version/release's name from your deployment project's version naming settings

3) Create the release

Hope it can put you on track

comments: author: Erik Husby
body: Looks promising -- although I need to update from Bamboo 5.12.2 to at least 5.12.3.1


author: Wallys Alexander Morales Gonzalez
body: Good afternoon, I would like to know the step by step for the implementation of the python script for bamboo, I need to make a deploy and one of its scripts make a new release of another deploy.


author: Alexey Chystoprudov
body: <https://docs.atlassian.com/bamboo/REST/5.15.0/#d2e155>


Tags: bamboo-administration
Migrate Bamboo Deployment Requirement Task to Agent Assignment
Asked by Johannes A:

We are migrating from Bamboo 5.9 to 5.14. On our current instance, wit have [Requirements for Deployments](https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugin.requirementtask/server/reviews) plugin installed. This functionality comes out of box with 5.13+ with agent assignments. Has anyone figured out a clever way of how to migrate requirement tasks to the standard functionality? We have over 500 usages of deployment requirements in our system, and need an automated way to perform this migration. No support is provided by Atlassian.


Answers:
author: Johannes A
body: Hi Alexey, while the plugin still works in our target version (5.14.3.1) it is marked as Incompatible. As the functionality is now in the core product, the plugin is likely to not even work anymore with future version. The migration is required for this reason.

comments: author: Alexey Chystoprudov
body: You're right, created <https://jira.atlassian.com/browse/BAM-18213> to track this work


author: Alexey Chystoprudov
body: Why do you need to migrate? You can leave existing deployments unchanged and use new functionality only for new environments


Tags: bamboo-administration
Only run Build if other Plans are currently passing
Asked by krisrmal:

I can see there is an option under,

**Plan configuration \> Triggers \> Repository Polling \> Trigger conditions**

***Only run Build if other Plans are currently passing.***

In the documentation it says, "++You can choose to run builds of this plan only if other specified plans are currently passing"++

Does this mean this build keep hold if specified plan is still running ? and then build will start when the that specified plan is successfully ran ? or does it just block the build?

Anyone has an idea ?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Checkout plan dependencies at <https://confluence.atlassian.com/bamboo/setting-up-plan-build-dependencies-289276887.html> and the dependency blocking part. I think that is what you are after!


Tags: bamboo-administration
Using Crowd user/pw in a Bamboo variable
Asked by Jasper Bos:

At the moment, whenever we release using Bamboo, we have to overwrite a couple of variables so that the maven tasks can communicate with SVN. These variables: -Dusername=${bamboo.user} -Dpassword=${bamboo.password} are always the same as the user currently logged into Bamboo. Can I somehow use the Bamboo credintials to automatically fill in those variables, without running a customized build?


Answers:
author: Jonas Andersson
body: To avoid this, can't you simply use SSH keys instead of username/passwords?


author: Jasper Bos
body: Thanks for the tips and info.

We've decided to go with a bamboo-svn user to do the builds. Tracebillity will be contained to Bamboo, not SVN as well.

How to in this link

<http://mjremijan.blogspot.nl/2015/06/bamboo-maven-release-plugin-and.html>


author: Krystian Brazulewicz
body: It is not possible. All builds are run outside user context. Think about case when release is being run automatically.

Last but not least Bamboo doesn't know user's password.


author: Jasper Bos
body: We are using the username to track who changes/releases. But I will look into it, maybe we can use another technique to track it.

comments: author: Jonas Andersson
body: The use SSH keys, and only push the name for tracking releases, maybe?