youngmon/atlassian-qna huggingface dataset:
ANT output NOT getting piped back to master Bamboo
Asked by Christopher Dancy:

ANT output will sometimes not get piped back to Bamboo master. It is giving the impression of a hung build. However when I stop the build all the output gets immediately sent back. We are using Bamboo 3.4. Any help and/or direction would be greatly appreciated.


Answers:
author: Christopher Dancy
body: After upgrading to Bamboo 4.1 this issues was never seen again.


author: Christopher Dancy
body: After upgrading to Bamboo 4.1 this issue never came up again.


author: Sultan Maiyaki
body: ```
ANT output will sometimes not get piped back to Bamboo master
```

Can you clarify what you meant by that statement. Explain a little bit detail of the scenario. Again you can attach the build logs whenever the issue happens


author: Christopher Dancy
body: It should be noted that this happens "SOMETIMES" and not all the time.


Tags: ant
What Elastic Bamboo AMIs can be used with Cluster Compute instance types?
Asked by Alexander Aickin:

We created a new Elastic Bamboo Image Configuration to try out a Cluster Compute Quadruple Extra Large Instance. We entered an Atlassian stock AMI ID: ami-e4399e8d.

It turns out, however, that [Cluster Compute machines are required to have an AMI that has HVM virtualization and is EBS-backed](http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/using_cluster_computing.html), and the Atlassian stock AMIs that we know about are all paravirtual AMIs. When we try to build with this config, the instance launch errors out with an appropriate error message about needing an HVM AMI.

As far as I can tell, you can't convert a paravirtual AMI to HVM; you have to start with Amazon's stock HVM AMIs. I could be wrong, but that's what all the doc I see suggests.

I can't find anything listing Atlassian's stock AMIs in the doc; the only place I see the AMI IDs is in the default configs.

So: is there an Elastic Bamboo stock HVM AMI that can be launched on a Cluster Compute machine? If so, what's the AMI ID, and how would we usually find it? If not, is there any way to make one? Otherwise, it seems like Cluster Compute instances are just incompatible with Bamboo.


Answers:
author: Przemek Bruski
body: Sasha, there's no CC-compatible image at this point. I've raised an improvement request for that here: <https://jira.atlassian.com/browse/BAM-12121>

You can create your own by starting with a compatible image (e.g. Amazon Linux) and installing bamboo agent on it (<https://confluence.atlassian.com/display/BAMBOO/Creating+a+custom+elastic+image>)


Tags: cloud
Bamboo launching dependent plans at the end of a stage?
Asked by Brent Villalobos:

I have a two stage plan where the second stage is set to "manual." In my plan's configuration, I set up depdendent plans to run when the plan successfully completes. However, I notice that the depedent plans run when the first stage completes which is not what I want.

Is this by design and it's my misunderstanding on how plans, stages, and dependencies work? This is on Bamboo v3.2 (I know, old version).


Answers:
author: James Dumay
body: We have an issue open to [ensure that dependencies are triggered only when all manual stages have been run successfully](https://jira.atlassian.com/browse/BAM-10532). Please watch and vote for the ticket to be notified when it has been completed.

comments: author: Brent Villalobos
body: Thanks James. Until then, I will just create a task at the end of my job that manually launches the depedent plans.


author: Matt
body: This sounds like an exclusive for me

Bamboo allows you to ensure that builds are only triggered manually or by parent builds of dependent builds.

<https://confluence.atlassian.com/display/BAMBOO/Triggering+a+plan+build+manually>

Have you tried to update? It is no hassle ;}

comments: author: Brent Villalobos
body: There is something off then. For example, on the build page I see that Build 49 is stopped on a manual stage in the upper right-hand corner and yet it says that #49 was successful in the left hand side. And the dependant plans definitely kicked off after that first stage finished with the build reason of "This build occurred because it is a dependant of EXPERIMENT-FOO-49." Seems like a bug.
Is there a way to to get a Bamboo agent to run multiple jobs at one time?
Asked by Sean deBardelaben:

We have a powerful (multi cpus) build machine that we would like to run multiple bamboo jobs on. It appears that the agent waits for a job to finish before allowing the next one to start. Is there a way to get that agent to start multiple jobs in parallel? Should we run multiple agents as multiple users? Suggestions welcome.


Answers:
author: Sean deBardelaben
body: An agent will consume a single job at a time and will block any other Bamboo jobs from being processed until that job build is complete. If you would like to build multiple jobs simultaneously on the Bamboo server, then simply[set up multiple local agents](https://confluence.atlassian.com/display/BAMBOO/Creating+a+local+agent). If the agents are remote, then you will need to [install that number of agent instances](https://confluence.atlassian.com/display/BAMBOO/Bamboo+remote+agent+installation+guide) on the machine. Separate installations are required because each remote agent will need its own home and log directories.
Does the "polling repo" Build strategy actually perform a pull?
Asked by Chris Ramakers:

I'm wondering, if i've selected the "Polling repository for changes" Build strategy in a Plan, do I still need to update my repo (git pull) in a step in my Jobs or has the Plan already done that for me since it has polled for changes?


Answers:
author: PiotrA
body: Hello Chris,

Yes, you still need to update your repo (usually this is done by "Source Checkout Task") in a step in your Job. Polling is not enough.

However, you're right that "Polling repository for changes" is internally fetching remote git repo to the Bamboo server. But that internal repository is not automatically pushed down to the Job's working directory during build execution. Only by "Source Checkout Task" (or by manually crafted "Script Task" equivalent) the Job's working directory can be populated with the proper git repository and actual 'git checkout' can occur.


author: Chris Ramakers
body: Yes it is, and it's that what i'm wondering, does it need that step? Isn't polling for changes also pulling in the changes?


author: PiotrA
body: Hello ChrisR,

Is your build plan using "Source Checkout Task" to retrieve sources from your git repo?
How to get access to atlassian-bamboo.log
Asked by Akira Tsuchiya:

I am using Bamboo 4.2 and developing a plugin in Bamboo.

I want to print application messages to the atlassian-bamboo.log.

How can I get access to it in a ChainActionSupport extended class?


Answers:
author: Akira Tsuchiya
body: ChainActionSupport extends com.opensymphony.xwork.ActionSupport.

The upper-most ActionSupport has the field below.

protected static final org.apache.commons.logging.Log LOG;


author: Matt
body: log.debug()

And check this out:

<https://confluence.atlassian.com/display/BAMBOO/Logging+in+Bamboo>

<https://developer.atlassian.com/display/BAMBOODEV/Bamboo+Plugin+Guide>

comments: author: Akira Tsuchiya
body: Thank you for your information.
Would like to use nVidia CUDA software for automated builds, but it requires loading disaply drivers
Asked by Krist Smith:

The project we're working on requires building art assets. These assets require a very long time to compile (sometimes 9+ hours). The art compiling pipeline has a feature that would allow us to cut this build time down to less than 1 hour, but it requires that we use the nVidia CUDA toolkit. In order for this toolkit to work, it needs to load the nVidia display drivers.

My question is really about how Bamboo uses remote agents - does it load in a non-interactive mode? Does it load any display drivers at all? According to the CUDA documentation, any remote connection software that uses its own version of display drivers (such as Windows Remote Desktop Connection) will bypass the nVidia drivers and prevent CUDA from working, whereas software such as VNC or Slashtop use the nVidia drivers as normal. So, I guess it comes down to three categories, and I'm just wondering which of these Bamboo would fit into:

-No display drivers loaded at all

-Custom drivers loaded

-Default (nVidia, in this case) drivers loaded

I assume that it's one of the first two of those categories, and my hope would be to bring it into the third somehow (if it's at all possible).

Thanks.


Answers:
author: Krist Smith
body: Our solution was to put a Quadro card in one of our build agents. This card doesn't require the display drivers to be loaded in order to use CUDA. Not exactly the cheapest of solutions, but the only one that actually worked.


author: AmitB
body: I have the same issue? Did you ever resolve this problem?


Tags: agent
Windows AMI with MVC /web targets?
Asked by Chris S.:

Is there an Atlassian AMI already setup with MVC 3 installed (via the web installer) and the web targets file used for the project file type?

I'd rather re-use an Atlassian AMI than create my own if I could.


Answers:
author: Przemek Bruski
body: There's no Atlassian ami for that, you can run the stock one from Bamboo and install MVC 3 on it. Then, run c:\\opt\\bamboo-elastic-agent\\bin\\prepareInstanceForSaving.bat and create a new image.

comments: author: Chris S.
body: Are there any plans to integrate MVC3/4 in, or .NET 4.5?


author: Przemek Bruski
body: I don't think so, but plans change - make sure you raise an improvement request @ <https://jira.atlassian.com/browse/BAM>


author: Chris S.
body: There's no bin folder in the AMI instances I've cloned, do I need to download it from somewhere?


Tags: cloud
PHPUnit getMockBuilder
Asked by Ross McFarlane:

Hi,

I'm running into problems in my PHPUnit tests calling getMockBuilder(). After a bit of digging, it appears that the most recent version of PHPUnit available to me in bamboo is 3.4, and the getMockBuilder method first appears in 3.5.

Is there any way to upgrade the PHPUnit version used?

Thanks,

Ross


Answers:
author: Przemek Bruski
body: If you insert the following script:

pear channel-update pear.php.net  
pear config-set auto_discover 1  
pear upgrade pear

pear install pear.phpunit.de/PHPUnit-3.7.1

into your instance setup script (press edit on you image configuration and paste the above lines there), you should be able to run your tests against 3.7.1.

Bamboo 4.3 will contain both PHPUnit 3.4 and PHPUnit 3.7 .


author: Przemek Bruski
body: The easiest way to install a new PHPUnit version is to use the instance setup script (available on the image configuration page). If you overwrite the default /usr/bin/phpunit path, you don't need to do anything more.

I've opened an improvement request here: <https://jira.atlassian.com/browse/BAM-12110> , please watch and vote.


Tags: cloud
RPM for Bamboo 4.2
Asked by Thomas Boyles:

Hi!,

I've been searching for an RPM for Bamboo 4.2 Server and Agent but I haven't been able to find any official (or unofficial) packages. Could you please let me know where I could find this? Thanks,

Thomas


Answers:
author: Matt
body: Bamboo install is very straight forward.

wget <http://www.atlassian.com/software/bamboo/downloads/binary/atlassian-bamboo-4.2.0.tar.gz>

tar zxvf atlassian-bamboo-4.2.0.tar.gz

shut down your current instance,

replace symlink to the current instance (preferred method)

or rename it to the bamboo.old

mv downloaded bamboo to the old spot

if you have made any customization to the default installation, now you can recreate them to the updated version and rerun Bamboo

You may want now to create RPM, here it is a guide for that http://fedoraproject.org/wiki/How_to_create_an_RPM_package


author: Charles Scott
body: I disagree. Anything that cannot be automated is NOT straight forward.

Perhaps "automating the automation" is asking too much, however, bamboo is very difficult to instrument from bare metal. I found Jenkins to be a much easier product to automate creation of jobs (or plans in bamboo case) which can easily reside in xml format in source control. I would really like to be able to instrument bamboo from bare metal to a running CI server and treat it as a deployed artifact like any application.


Tags: rpm
Bamboo admin password reset?
Asked by Alex Nelson:

Upon first logging into Bamboo I was encouraged to change the username and password...I did so. After logging out and back in with the changed login and password I no longer have admin rights. I am trying to follow the instructions at <https://confluence.atlassian.com/display/BAMBOO/Restoring+passwords+to+recover+admin+users#Restoringpasswordstorecoveradminusers-external> but am not getting past running this query: select \* from USERS where ID=1

It gives me the following error:

... Physical database connection acquired for: neen-db-008

12:57:55 SELECT - 0 row(s), 0.000 secs Error Code: 208, SQL State: S0002 Invalid object name 'USERS'.

... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000 sec 0 successful, 0 warnings, 1 errors


Answers:
author: Alex Nelson
body: Not really answer, but I've decided to reinstall Bamboo. Thus, this issue is closed.
Bamboo - When enabling Branch Updater build fails with reason Exception during merge: null"
Asked by Eric Eric:

I have setup a Bamboo plan and enabled Plan Branches.

I have created a branch for one of my feature branches and enabled Branch Updater, i.e. I want master to always be merged to my feature branch.

When I try to build the plan for the feature branch, I get a build failure with reason: Exception during merge: null.

No logs were generated


Answers:
author: RicardoA
body: Apparently this is a culmination of two bugs:

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

Both these bugs have been marked as fixed for version 4.2 but unfortunately we are still on version 4.1.2 for Bamboo OnDemand.

There is no specific date for when will Bamboo 4.2 be deployed for OnDemand but it is on the roadmap for September.

Hope this helps.


Tags: cloud
Preventing changes to specific file/line/variable
Asked by Avishag Abramovich:

Hey,

I need to prevent merging to a specific branch any pull requests that include a change to a specific Python variable.

Is it possible to do this? Maybe just for a specific line or a specific file? Or maybe instead of preventing the merge, add an alert?

Thanks!


Answers:
author: Aron Gombas _Midori_
body: It may be a bit heavyweight for your use case, but you could:

1. Create a commit policy with the [Changed paths (files) must match a pattern](http://"Changed%20paths (files) must match a pattern" condition) condition. It will reject changes made on the configured set of files. (It will not check the content of the file though.)
2. Install it as a [local pre-commit hook](https://midori-global.com/products/better-commit-policy-for-jira/data-center/documentation/git#installing-local-commit-hooks) to every developer's local clone.

That way, developers won't be able to create a commit to that file, so this approach catches the problem early on.

*(Disclaimer: this solution requires a paid Jira app that I'm working on.)*

*![condition-file-pattern.png](https://community.atlassian.com/t5/image/serverpage/image-id/167446i10713BB8D8705C5C/image-size/large?v=v2&px=999 "condition-file-pattern.png")*


author: Ulrich Kuhnhardt _IzymesCo_
body: The best option to stop a PR merge under a certain condition would be to create a configurable merge-check. The merge-check would scan the change set in the source branch and detect any condition you configure.

Unfortunately this is not possible with bitbucket cloud branch permissions - however there is an existing feature request <https://jira.atlassian.com/browse/BCLOUD-19885> that would allow you to create such a merge-check. Please vote and add yourself as a watcher.

Best, Ulrich


Tags: bitbucket-cloud

cloud
I forked one of my repositories, now I can find the original or others
Asked by Daryl Williams:

I forked an existing repo and created a new workplace in the process, now I'm unable to find all my other repos including the original forked repo. Any help would be greatly appreciated. If I can provide additional information please let me know.

Regards,

Daryl


Answers:
author: Theodora Boudale
body: Hi Daryl,

Can you please confirm if your question concerns a Bitbucket Cloud repo (hosted in <https://bitbucket.org/>)?

If this is the case, then:  
- Open this fork repository on your browser, and select its **Source** page  
- The sidebar on the right has a panel titled "Repository details". In there, you can see which repo this one is forked from (**Fork of** field):

![Screenshot 2021-11-02 at 16.35.21.png](https://community.atlassian.com/t5/image/serverpage/image-id/167635i05F045B2BEA4EA71/image-size/large?v=v2&px=999 "Screenshot 2021-11-02 at 16.35.21.png")

If you want to see all workspaces that your Bitbucket Cloud account has access to, you can select your avatar on Bitbucket website \> **All workspaces** . The menu that shows when you select your avatar also shows the **Recent workspaces** you visited, so you may be able to view their name in that menu as well and select one to view its repos.

If you need any further help, please feel free to let me know.

Kind regards,  
Theodora
Codepipeline , bitbucket cloud, and deployments dashboard
Asked by Simran:

After reviewing this post, <https://aws.amazon.com/blogs/devops/aws-codepipeline-build-status-in-a-third-party-git-repository/>, I was able to set up feedback from AWS codepipeline in bitbucket and have the build status/pipeline status showing up in bitbucket now. However, nothing shows up in the Deployments dashboard on Bitbucket cloud still. I would love to be able to see our deployment status on the deployments dashboard in the bitbucket cloud. Any views on how could that be achieved?


Answers:
author: Caroline R
body: Hi, [@Simran](/t5/user/viewprofilepage/user-id/4383573)!

I believe you have created a duplicated question here, so I have answered the first question you sent us:

* [How to leverage Bitbucket deployments dashboard when using AWS Codepipeline/Codebuild for CI-CD](https://community.atlassian.com/t5/Bitbucket-questions/How-to-leverage-Bitbucket-deployments-dashboard-when-using-AWS/qaq-p/1849686#U1850777)

Kind regards,  
Caroline

comments: author: Simran
body: [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) Thanks. Added a response there.


Tags: aws

bitbucket-pipelines

cloud
Repository Size is Incorrect
Asked by Admin CAP:

The Size of Scholar repository is shown to be 829MB even though the size of the files in repo is less than 5MB. This is confirmed by 'git count-objects' , git-sizer and manually downloading each branch from the repository.


Answers:
author: Caroline R
body: Hi, [@Admin CAP](/t5/user/viewprofilepage/user-id/4617044)! Welcome to the community!

I ran the GC against your repository and managed to reduce its size to 2.2 MB.

To give you some context around the git GC process, Bitbucket triggers a garbage collection on the repository after each push, however aggressive GC is triggered by GIT once the unreachable/dangling objects become older than 30 days. For this reason, there is no need for us to trigger a manual GC for your repository. However, we are happy to run it for you if you feel there is a need.

We already have a feature request to allow users to mark repositories for git GC, as you can check here:

* <https://jira.atlassian.com/browse/BCLOUD-11593>

Please consider adding yourself as a watcher to receive the updates as we make progress with this. If you are not familiar with our Feature Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: Admin CAP
body: The repository size shown now is correct. Thank you for the support.


author: Caroline R
body: I'm glad to help, [@Admin CAP](/t5/user/viewprofilepage/user-id/4617044)! :)


Tags: bitbucket-cloud

cloud
I need access to my organizations workspace in Bitbucket
Asked by John Kreiner:

We are on a free plan, with apparently only one admin. That admin abruptly left the organization an has so far not responded to requests to relinquish his credentials so that we can either upgrade to a paid account with multiple admins or transfer ownership to myself. I've submitted a support ticket Tuesday with this request, but have yet to even get more than an acknowledgement of my ticket.

Any help would be extremely helpful.


Answers:
author: Stuart Capel - London
body: Hi [@John Kreiner](/t5/user/viewprofilepage/user-id/4612411)

Did the colleague who left use his work email to create the account? If so then I imagine you've removed access to his work email account but still have access to it yourself and could reset the password.

comments: author: John Kreiner
body: No, unfortunately I have reset the password for his work email address, but that one is not the account for the organization's workspace.


author: Stuart Capel - London
body: I'm afraid your best bet might be encouraging this person to relinquish control. Definitely pursue the support ticket but I don't know how much they will be able to do.


Tags: bitbucket-cloud

cloud
AWS SAM Package deployment failing
Asked by Mir Adnan:

AWS SAM Package deployment is failing. The package is uploading all the files from dist folder. But AWS fails reading the package produced by bitbucket sam deployment package.


Answers:
author: Igor Stoyanov
body: [@Mir Adnan](/t5/user/viewprofilepage/user-id/4603958) Hi. Thanks for question. Please, provide more details about your case: pipeline configuration, your logs, output etc.

Regards, Igor.

comments: author: Mir Adnan
body: Thanks for following up. I eventually built a docker container using aws sam cli to push the deployment package.


Tags: aws

bitbucket-pipelines

cloud
I can't login to my account
Asked by Guilherme Fernandes:

Hello everyone. I have 2 accounts in Atlassian. My personal one which only is used to access Bitbucket and Trello, and my professional one used to access Jira and Confluence. I may have used my professional one to access Bitbucket, but I don't recall ever actually using it to create a repo or anything.

For some reasone, I can't login with my personal account to access Bitbucket anymore and I get stuck at this screen:  

\<image removed due to privacy reasons\>  

I don't know what to do. If I click to "Link your accounts" nothing happens.


Answers:
author: Caroline R
body: Hi, [@Guilherme Fernandes](/t5/user/viewprofilepage/user-id/2030888)!

Thank you for reaching out to Atlassian Community!

Checking the Bitbucket account specified in the screenshot, I was able to see that this account is linked to a [workspace](https://support.atlassian.com/bitbucket-cloud/docs/what-is-a-workspace/) that has been converted from a team account. Bitbucket removed the [ability to log in using a team account](https://confluence.atlassian.com/bbkb/team-account-changes-454361799.html), so that's the reason you are not being able to log in/link this.

In order to allow you to reaccess this account, we can disassociate the email from this workspace. After that, you will be able to create a new account using this address, as a personal account.

After creating your account, I can give you admin access to this workspace again.

In case you want to proceed with the disassociation of your email from this workspace, please add your approval here.

Please don't hesitate to ask for any further information if needed.

Kind regards,  
Caroline

comments: author: Guilherme Fernandes
body: [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) I want to proceed please.


author: Caroline R
body: Hi, Guilherme!

Thanks for the confirmation. We have disassociated that email from the workspace. Now you should be able to create a Bitbucket account using this address.

After that, please add a comment here so I can add you back to that workspace.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud