youngmon/atlassian-qna huggingface dataset:
Cannot open Bamboo in browser
Asked by Jason Erickson:

Hello,

I have a Bamboo instance running on a linux server that we access remotely through a web browser. I was recently configuring the mail server in the web interface and the service shut down unexpectedly. I logged into the linux server and it said that Bamboo was still running but I wasn't able to access the dashboard. I restarted the Bamboo service via the /etc/init.d/bamboo script as well as the './bamboo.sh console' command. I was able to temporarily get back in but the same problem has occurred and I cannot even load the dashboard.

I've restarted the server that Bamboo is running on as well and still get nothing. At this time, Bamboo is running on the server but the browser still cannot find the application.

Thanks,

Jason


Answers:
author: rsperafico
body: Hi Jason,

Since you are running Bamboo on a Linux environment, could you run the following into your terminal and check if there is only one Bamboo instance running, please?

*ps aux \| grep bamboo*

If you find more than one as a result to the command above, would you please stop them all and start a Bamboo instance, please?

As Jeff Thomas had mentioned on his comment, would be possible to search for the **\[ERROR\]** tag followed by its thread until you reach "**caused by** " under "**\<bamboo-installation\>/logs/ atlassian-bamboo.log**" and post it as a comment, please?

In case the partial log aren't enough to indentify the error you are exepriencing, I would recommend you opening a [Support](http://support.atlassian.com/) request.

--

Kind regards,

Rafael


author: Jeff Thomas
body: Hey Jason, could you post some of your [atlassian-bamboo.log](https://confluence.atlassian.com/display/BAMBOO/Logging+in+Bamboo) file? It might provide some errors on why Bamboo is not responding.

You may also want to try opening a [support request](http://support.atlassian.com) if it's an urgent issue.


Tags: bamboo-administration
it is possible to hide some artifacts from build results?
Asked by Vladimir Avdeev:

Hi. I am create this structure:

![](http://content.screencast.com/users/vladimir.avdeev/folders/Jing/media/c953a34b-30ae-43f4-bb6c-5fd4568f8426/2014-03-04_1216.png)

Job "Build solutuin" collect binaries for deployment archive and tests to artifacts.

Job "Business logic testing" and "Data access testing" download shared artifacts from "Build solution" job, and use it.

Job "Package and Utils" download artifacts from "Build solution" job for collect the archive according to certain rules. I don't want to prepare deployment archive before testing, it is logical.

Question: How can I use binaries from first stage in last stage, that the user not see them?

P.S. Maybe bamboo can create internal artifact, for jobs only, not for users? or bamboo may hide some artifacts?

P.P.S. Now last job download artifacts from first job, and create own artifacts (zip archive). And user after build see shared artifacts from first stage and from last stage. I would like to user see only needed artifacts.


Answers:
author: Vladimir Avdeev
body: My opinion:

1. checkout
2. build (collect test binaries as artifacts)
3. deploy to QA/dev
4. test QA/dev
5. deploy to Staging/prod
6. test Staging/prod

But in this case I shoul have ability to automatically deploy app to server.

In real case I haven't this ability. (we use "jump" host for deploy package to ec2 machines which do not have the Internet connection directly)


author: Ron Chan
body: Vladimr,

One option is to have the first stage copy the "artifacts" (don't save in bamboo) to another location (e.g. another location on build server, a secured location on shared drive or even check it into source control). This process and configuration would obviously be invisible to the user, and only the last stage would know where to retrieve artifacts.

Hope that helps!

Ron

comments: author: Vladimir Avdeev
body: Ron,

I think it's not a very good option, because problems with the local network can make red build. I also need to create a structure of folders and files in another location, any changes into - red build.

I thought about it, really.

I had 2 choices:

1. Make a dependent plan, which would collect artifacts and pack them in an archive.

2. Re-build the project in the last step of this plan, compress files in bin folder and create target artifacts.

P.S. Maybe I have the wrong structure of the plan?


Tags: bamboo-administration
Bamboo Permissions Audit Report
Asked by roy_lyons:

I tried looking through the REST API Browser (and I unchecked public api only) for a way to expose the permissions given to a particular plan and could not find one. Not sure if there is a JSON-RPC api available to let me get this information or not...

Management wants me to make a spreadsheet of all IDs that have access to Bamboo, what role each ID has on each priviledged resource - and they also want to know the last login time (which I am not sure I can even get).

I know that there are cases where the permission is based on a group, and I can query Jira to get the group members... but I just dont want to go through thousands of plans individually on the web interface, that would take me a month to do.

Looking to see if anyone else had to do something similar and can share.


Answers:
author: roy_lyons
body: web scraping is icky... but if worse comes to worse, I do have....

```
curl -k -u 'ausername:somepassword' https://my.bamboo.url/chain/admin/config/editChainPermissions.action?buildKey=MYBUILD-KEY | awk -F\" '/bambooPermission_/{ print $(NF - 1) }'
```

I don't *want* this to be the accepted answer... but just in case there is no better answer I wanted to put it out there for everyone else.

comments: author: roy_lyons
body: Currently scraping...


author: jvelapol
body: As a 3-year late suggestion - I'd add a

```
| grep " checked "
```

before the awk to your solution. Also, don't forget the Deploy side, too...


author: roy_lyons
body: :) way to necromance :) but yes, thats a valid comment


author: Daniel Wester
body: I don't think this is exposed through REST. You could write a plugin for it but it might be kinda hairy...

There are 2 rest end points that can give you the projects/plans that you could always pipe into the above( [](https://docs.atlassian.com/bamboo/REST/5.0-SNAPSHOT/#d2e41)<https://docs.atlassian.com/bamboo/REST/5.0-SNAPSHOT/#d2e41>). If this is going to be a one-off - it might just be worth it go for the ugly...

comments: author: roy_lyons
body: Yeah, I saw it wasnt in rest, but that doesn't mean we cant use JSON-RPC... I learned at Summit 2013 that theres still a lot of things you can do with JSON-RPC that isnt in REST yet.


Tags: bamboo-administration
integrating automated testing into a continuous integration build, for a Flex/AIR application, is the need to execute the Flash Player or AIR environment to produce test results
Asked by PeteS:

One of the challenges of integrating automated testing into a continuous integration build, for a Flex/AIR application, is the need to execute the Flash Player or AIR environment to produce test results. Both the Flash Player and AIR environment currently require windowing environments to execute Flex/AIR applications correctly; which might not be installed on the CI server.Most installations of CI solutions are made on Linux machines not running a windowing environment, such as X-Windows. Because of the requirement to execute the Flash Player and AIR in a windowed environment, it is not possible to execute a CI build on these types of installations unless the dependencies for a windowing environment have been installed. In addition to this dependency, an intermediate process is required to redirect windowing output to an emulated display.I am pretty sure I am running into the problem described above, I am able to build the application from my Desktop, However I am getting the following error when the test target is executed in my Bamboo server.Do you have any suggestion about how to setup bamboo+flexunit in my CI Server to properly run unit test? I know there are some workarounds to setup flexunit in jenkins, which involve installing a XVNC plugin.


Answers:
author: Krystian Brazulewicz
body: When we run integration tests for Bamboo we face very similar problem.

Our WebDriver tests are running in a real web browser that is crawling Bamboo UI. This is of course run on a headless machine.

In order to make this work we use xvfb tool which basically creates virtual display available for use for all X-Windows applications starting from simple ones as xterm ending on chrome or firefox. Xvfb is available as a package for all existing Linux distros, so there should no be problem with availability of this tool for your installation.

Cheers


Tags: cloud
Bamboo plan with a variable which depends on another variable, it works in some circumstances
Asked by David Portabella:

I have a bamboo plan with a maven task. I need to pass a maven parameter with the name of the branch.

I can use the variable ${bamboo.repository.branch.name} for this.

However, I need to override this value for some branches (see <https://answers.atlassian.com/questions/267198/bamboo-variable-regex>).

So, in my bamboo plan I define a variable called "branchName", with value "${bamboo.repository.branch.name}".

then, my maven task uses ${bamboo.branchName}, and the branches can override the "branchName" value when neceserary.

So, is this possible? can my bamboo plan variable "branchName" use another variable "${bamboo.repository.branch.name}" as default value?

Well, I tried, and the result is unclear.

If my maven task is:

mvn verify -B -Dsonar.branch=${bamboo.branchName}

this does not work. it executes mvn verify -B -Dsonar.branch=${bamboo.repository.branch.name}

However,

If my maven task is:

mvn verify -B -Dsonar.branch=${bamboo.branchName} -Dignore_var=${bamboo.repository.branch.name}

then ${bamboo.branchName} gets substituted as expected,

and it executes mvn verify -B -Dsonar.branch=develop -Dignore_var=develop

Why is that? Is this a bug or a feature?

So, how to achieve this correctly?

that is, I need a bamboo plan variable "branchName" with a default value of "${bamboo.repository.branch.name}",

which can be overridden by branch plans.


Answers:
author: David Portabella
body: thanks, we'll try that.


author: Jason Monsorno
body: You may want to try the [nested plugin](https://marketplace.atlassian.com/plugins/net.collabsoft.plugins.bamboo.nestedVariables). That way you could set a variable to "${bamboo.repository.branch.name}" but when evaluated it will give you the value of the inner variable.
${bamboo.repository.git.branch} not working when building "master" branch
Asked by Fabien Ruffin:

Hi,

In Bamboo I'm trying to use the Git branch name as part of my artifacts file name. This is very useful after deployments on our testing environment as we then know exactly where the bits come from.

I've tried using ${bamboo.repository.git.branch} which works great when running "build branches" but when running the base plan (not a branch) the above variable is always returning "Unknown". This is a bit misleading as the variable name suggests it's returning the Git branch and not the Bamboo branch. Is there another variable I could use to get the actually Git branch that was used for the build?

Thanks


Answers:
author: Jason Monsorno
body: I've always used ${bamboo.repository.branch.name}


author: Fabien Ruffin
body: Thanks Jason!

I'm not sure what the difference is under the hood between those 2 but the variable you mentioned works well and solves the problem


Tags: cloud
Task configuration for Pre-Post Build Command Runner not displaying
Asked by Dan Vella:

I downloaded the JAR and installed it in the WEB-INF/lib directory. After the restart, it shows on the Admin screen as working, but when I go to a plan to add some pre-post tasks, there is no interface for this function.

Any ideas? Running Bamboo 5.3 and have the latest JAR of this project.


Answers:
author: EddieW
body: Any reason you did not install via UPM? There are some hooks that Bamboo needs to read from the plugins atlassian-plugin.xml file, which I thought required more then just being present on the classpath (adding to web-inf/lib)

Also when you say admin screen is working, do you mean the add-on listing page? Does it show all modules enabled? ( i.e. "3 of 3 modules enabled")

comments: author: Dan Vella
body: I attempted to install via UPM, but said the plugin does not support this. Per instructions of the plugin, I had to manually deploy it. All modules are enabled and working, what I was talking about when referring to the missing admin page was the actual UI for using this plug-in in the MISC tab of a project plan.


Tags: pre-post-build
Can I Submit Per-User Credentials to a Bamboo Job?
Asked by Ben:

Is there any way to pass per-user parameters/credentials to a Bamboo Plan (Job/Stage).

Specifially, I want to be able to release a Maven project as the user that initiates the build. This would require both bitbucket/git ssh keys (to make gitflow release branches and merge into develop/master) as well as login credentials for Nexus Maven Repository (to deploy)


Answers:
author: Przemek Bruski
body: You could use customised builds and provide the credenetials as variables.


Tags: bitbucket-cloud

cloud

maven

nexus
Installing Bamboo Groovy Plugin Never Completes
Asked by Brian Wohlin:

I'm trying to install an evaluation copy of the Bamboo Groovy Plugin. The process starts-up and then I see the waiting overlay indefinitely. I am trying to install the 2.3.0 version of the plugin on an evaluation copy of Bamboo 5.4.1. Is plugin installation not allowed for evaluation copies of Bamboo?


Answers:
author: Brian Wohlin
body: No, to get around plugging proxy configuration settings into the server, I simply downloaded the plugin from the Atlassian site and the pointed at the plugin file on the Manage Add-Ons page of the administrative console.


author: Bob Swift (personal)
body: It should be compatible, but will have to verify. I wasn't aware 5.4 shipped :(. Tracking with [BGTP-15](https://bobswift.atlassian.net/browse/BGTP-15) (now resolved).

Refresh UPM to make sure it wasn't installed. Also, there may be a UPM install error reported in your server log.

comments: author: Brian Wohlin
body: Thanks for the response.

I thought of that. When I went back to look at the User-installed add-ons, the list was empty.

I even restarted Bamboo, just to make sure there wasn't some strange server error. I never saw any kind of overt error.

It would have been nice if the plugin wasn't going to install, or wasn't compatible with the version of Bamboo that was running, that it would pop-up an appropriate message.


author: Bob Swift (personal)
body: It is compatible and is now marked correctly in the Marketplace. You likely have a local UPM issue that you will need to report to Atlassian. Regarding your suggestion, that's all a UPM responsibility. I assume you are installing via the Upload Add-on link and providing a url from the [Marketplace listing](https://marketplace.atlassian.com/plugins/org.swift.bamboo.groovy)?   
Actually, now (the compatiblity has been updated) you should be able to do a Find and click to install. See if that works (although it is almost the same underlying support).


author: Brian Wohlin
body: Ok. I realized that it was no big deal simply to execute my Gradle build as a Bamboo Script task. Still, it would have been nice to have a plugin for what appears to be an increasingly popular build tool.


author: Brian Wohlin
body: Ok. Now, I see it on the page. The plugin is for Bamboo versions 5.0 - 5.3. Here's the thing: I want to prototype a Gradle build on Bamboo 5.4.1. Is there another plugin that contains Gradle support?


author: ssetayeshfar
body: Hello Brian,

Is this the plugin you are trying to install: [](https://marketplace.atlassian.com/plugins/org.swift.bamboo.groovy)<https://marketplace.atlassian.com/plugins/org.swift.bamboo.groovy?>

If so, the reason you are experiencing this problem is that the plugin is still not compatible with Bamboo 5.4.1, unfortunately.
Any way to bulk delete build history?
Asked by Caleb Tote:

After getting Bamboo configured to a decent running point, I'd like to remove the 50\~ failed builds that are throwing off the estimated build times, and percentages.

What's the easiest way to do this? Do I ***really*** have to click each one individually?


Answers:
author: ssetayeshfar
body: Hello,

If I understood the question correctly:

By navigating to Bamboo Administration - \> Plans - \> Remove Plans you can select and delete the plans/builds that you no longer want to see in your Bamboo instance. You can also select Bamboo Administration - \> Plans - \> Bulk Action to disable specific plans.

To expire build results, please check Administration - \> Plans - \> Build Expiry:

[](https://confluence.atlassian.com/display/BAMBOO/Configuring+global+build+results+expiry)<https://confluence.atlassian.com/display/BAMBOO/Configuring+global+build+results+expiry>

Hope this helps.

Best,

Sepideh


Tags: bamboo-administration
HTTPS cloning getting failed.
Asked by VasTech Group:

Hi,   
I recently setup a project/repo. to Which I am trying to clone the repo using HTTPS URL which is getting failed. I tried my Email/passowrd.   

Not sure what I am missing.

Any pointer is welcome!

Thanks


Answers:
author: Syahrul
body: Hi [@VasTech Group](/t5/user/viewprofilepage/user-id/4774594)

G'Day!

I notice you mention email address, when cloning you should use user name instead of email so can you confirm that? When failing is there any error message, if yes could you share it with me?

Also, are you cloning using 3rd party application or terminal, if it's terminal can you try using the following commands to generate more verbose logs and filter the log for any sensitive data before sharing it here:

```
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1git clone <URL>
```

A side note, have you tried cloning using a username and [AppPassword](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) and see if it's working?

Let me know how it goes.

Cheers,  
Syahrul


Tags: bitbucket-cloud

clone

cloud
Telling which user is which?
Asked by Mik Clarke:

G'Day

I've got a couple of users that have managed to get themselves more than one bitbucket id linked to my workspace. - say \<emails removed due to privacy reasons\> and \<\>. But for both accounts they have entered the same name 'Joe Bloggs'.

So when I'm assigning Repository access, I want to give it to \<email removed due to privacy reasons\>, but all I see in the selection list are 'Joe \<\>' and 'Joe \<\>'. Which one is the one I want to give access to this repository to? They are both the same person, just different accounts, used for different things...

Mik


Answers:
author: Caroline R
body: Hi, Mik, thank you for reaching out to Atlassian Community.

As we can't share private information here, I went ahead and created an internal ticket for you using the email of your community account, so we can help you through this ticket.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please feel free to let me know if you have any questions.

Kind regards,  
Caroline


Tags: access

bitbucket-cloud

cloud
How to setup automatic pull for a particular branch in source tree when a change happens
Asked by Vikraman:

I have cloned the required bitbucket repo in a local workstation. If any changes are pushed to the particular remote branch, I want it to pull automatically the latest changes. In simple words, I wanted git pull to happen automatically.


Answers:
author: Syahrul
body: Hi [@Vikraman](/t5/user/viewprofilepage/user-id/4052794) ,

G'Day!

You may want to check [Sourcetree](https://www.sourcetreeapp.com/) or any 3rd party git application if you wish to get an automatic update whenever your branch has new changes.

If you prefer CLI then you may want to create your own automated script to manually check for updates and do a git pull. Quick google points me to a few blogs on how to automate your git pull, please check it at:

* <https://levelup.gitconnected.com/save-time-by-automating-your-git-pulls-498120870582>
* <https://dev.to/dmehro/automate-git-pull-fb1>

Hope this helps.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
I want to Integrate Bitbucket with slack
Asked by Sujan kumar:

I want to call bitbucket Api through bot to create a PR on bitbucket cloud and PR of our service gives notification in slach with customized buttons.


Answers:
author: Pramodh M
body: [@Sujan kumar](/t5/user/viewprofilepage/user-id/4765924)

Right out of the bat here's an app that will get you started with commands

<https://support.atlassian.com/bitbucket-cloud/docs/integrate-bitbucket-cloud-with-slack>

Thanks


Tags: bitbucket-cloud

cloud
Recover Deleted Repository from Bitbucket Cloud
Asked by SureshMuniswamy:

Hi,

I have deleted the customer repository we were hosting for the customer in our bitbucket cloud repository , is there a way to recover the repositories and the branches it contained with all the feature development. The repository is called "Utility_Manager" deleted 02/24/2022, is there a way we can restore them back. This will help us to address the audit finding by our quality team with regards to data security and data retention.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@SureshMuniswamy](/t5/user/viewprofilepage/user-id/3571823) ,

unfortunately you can to that. Take a look to the following article <https://support.atlassian.com/bitbucket-cloud/docs/can-i-restore-a-deleted-repository-or-commits/>

Fabio

comments: author: SureshMuniswamy
body: Hi [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) ,

I understand that we need to take backup from our side but i assume that out data is backed up for last 7 days at Atlassian and since my repository was deleted last week 02/24 within the 7 days window it should recoverable.

I was able to recover back a similar situation where one of my branch was deleted and it got recovered last weekend by one of the tech support guys .

Let me know your through if its feasible to recover as this is customer repository for the new product development and 10+ engineers are getting effected by this


author: Fabio Racobaldo _Herzum_
body: Hi [@SureshMuniswamy](/t5/user/viewprofilepage/user-id/3571823) ,

please ask to Atlassian guys if they can support you on that <https://support.atlassian.com/contact/#/>

Fabio


author: Abhishek Anand
body: Hi [@SureshMuniswamy](/t5/user/viewprofilepage/user-id/3571823) in how many days your repository was recovered?


author: Piotr Biegun _Gitprotect_io_
body: [@SureshMuniswamy](/t5/user/viewprofilepage/user-id/3571823) did you manage to recover your repository?   

p.s. In the future, you could use dedicated repo and metadata backup tools for the marketplace - <https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket>

comments: author: SureshMuniswamy
body: Hi [@Piotr Biegun _Gitprotect_io_](/t5/user/viewprofilepage/user-id/4764399)

I was able to recover my deleted repository , thanks to the support team.

Suresh


Tags: bitbucket-cloud

cloud