youngmon/atlassian-qna huggingface dataset:
Is it possible to Start a Virtual Machine From Bamboo
Asked by Jos? Alexandre D'Abruzzo Pereira:

I would like to know if it is possible to start a Virtual Machine from Bamboo.

I was wondering if I could start different virtual machines according to the project in Bamboo. For instance, I have two projects: one that uses .NET and another one that uses Delphi. I would like to have different virtual machines according to the idiosyncrasies of each project.

If it is not possible, is there another license type of Bamboo that would allow me to do that? Or should I have remote agents according to the projects?


Answers:
author: Adam Myatt
body: I guess the important question is what type of virtualization technology you are using (i.e. VMWare)? If VMWare there is a commercial plugin that works nicely : <https://marketplace.atlassian.com/plugins/com.stiltsoft.bamboo.bamboo-vmware-plugin>

You can start/stop existing VMs

Also there if you use KVM or Zen there is this plugin <https://marketplace.atlassian.com/plugins/nu.teg.merseine.civm.civm-bamboo> but i have not used it.


author: ssetayeshfar
body: You can have different remote agents according to your projects and you need to have a license for remote agents, for this purpose. However, if you have VMs set up that you are using to test your projects, you can run them from Bamboo. Bamboo allows using different virtual machine instances and as long as you can start/run your VMs from command line, you can run them from Bamboo.

- If you start a VM and compile in this VM, it is not considered a remote machine if you are executing it on the same server, but if you are executing it on a different server or if your intention is to put the remote agent JAR inside the VM for execution, then you will need remote agents.

- If you want to run two plans simultaneously, you might need to change your license depending on where you want to run those plans. Your license will allow you to have endless number of local agents (You can go to administrator -\>agents page and add as many as you need). But if you want to run your plans on a remote agent (remote server), then you need to get a new license that allows to have the needed number of remote agents.


author: Vadim Rutkevich
body: Jos?,

you can try our updated add-on Virtual Agents for Bamboo. It allows you to add tasks to start and stop virtual machines with a capability to set wait time before proceeding to the next task in the queue.

It also allows you to create mappings between virtual machines and your remote agents. The add-on monitors the Bamboo queue with build and deployment tasks and starts automatically the virtual machine with the appropriate agent. So all your tasks are executed automatically. Once the agent is not needed, the add-on stops it. So it lets you maximize efficiency of your license for remote agents.

Thanks.

Best Regards,

Vadim Rutkevich
Stages are not executed atomically
Asked by Rahul Rohilla:

HI,

I have setup a plan where there are build stages as Bamboo 4.3.1 build 3400.

1) Clean Environment.

2) Build

3) Test.

Since we are using GIT I have setup branch tracking so that each branch can run independentlt. Now we do not want parallel builds hence only single agent is enabled to run all builds due to conflicting environment issues.

Now my observation on multiple builds is, the agent see a change in git and fires a build in Branch A where the first stage of the branch is executed( Clean Environment). In the meantime other build for Branch B was ready to be executed and queued. As soon as this build agent is done with Clean Environment stage of Branch A it sets free and the Clean Environment Stage of Branch B executes. Hence with just one agent, the Complete build is not handled automically but the agent keeps on jumping across branched thus in a flow something like Below.

1) Branch A - Clean Environment

2) Branch B - Clean Environment.

3) Branch A - BUild

4) Branch B - Build

5) Branch A - Test

6) Branch B - Test

What we want is the Agent one starting with the Build should finish all Stages of the plan and only after that should pick up any other branch queue. Please help.


Answers:
author: Oleksandr Presich
body: Hi Rahul, have you found any additional information on this topic?


Tags: agent
Bamboo build mysql
Asked by Evan Cutler:

Greetings,

I have development database and a staging database.

Does anyone have any examples of how bamboo could be use to migrate mysql artifacts from development to staging?

I don't care how....ant, msbuild, whatever...

Thank you.


Answers:
author: Felipe Kraemer
body: Hi,

I'm not sure what you mean by 'migrate mysql artifacts', but maybe you can try to configure [artifact sharing between jobs](https://confluence.atlassian.com/display/BAMBOO/Configuring+artifact+sharing+between+jobs)?

Also, maybe you can create a script that does this for you? Basically, Bamboo can execute anything that can be executed from command line. So if you can create a script that can be executed via command line in order to 'migrate mysql artifacts', you can configure Bamboo to run this script using a [Script task](https://confluence.atlassian.com/display/BAMBOO/Script).


Tags: mysql
Run building and testing using JDK7 with Atlassian Bamboo version 2.5.5
Asked by Gang Zi:

Hi there,

We are using Atlassian Bamboo version 2.5.5, and had issue running Agents in Bamboo using JDK7. Is it possible to run agents in JDK6, but using JDK7 to build and test?

Thanks


Answers:
author: Przemek Bruski
body: Yes, you can run the agent using JDK6 and build/test with other JDKs. Just define a differen JDK capability for the agent on agent capabilities page.

comments: author: Gang Zi
body: Thanks, Przemek. I am new to this field. Could you please be more specific how can I specify build/test using JDK7, and how can I specific JDK for the agent? Follwing is what I got from admin page.

![](../../upfiles/Bamboo_Agent.png)


author: Przemek Bruski
body: Click on "Add JDK" in JDK section.


author: Gang Zi
body: Thanks, Przemek. I will give it a try, and let you know if it works.


Tags: jdk
installing the requirements to use Bamboo with PHP
Asked by Pedro Storti:

I have a Jira On-Demand account and I'm thinking of getting a bamboo subscription to do some PHP continuous-integration. I know that is possible, but I also know I need to install plugins and server applications specific for that purpose. Is that possible for OnDemand Customers? How should I proceed?

Can I use Bonfire with PHP also?


Answers:
author: Przemek Bruski
body: Bamboo has PHP unit support out of the box on OnDemand. I don't know which other plugins you'd need - but if you need extra plugins, you won't be able to install them on OnDemand.

But if you need any specific tools for testing (i.e. not Bamboo plugins), it's pretty easy to set them up on OnDemand.


Tags: cloud

php
Jira, Bamboo Integration problem
Asked by bsarkar:

I am trying to integare bamboo with jira. When I try to set extenal "user repository" in bamboo

it shows an error ....

![](../../upfiles/Capture_53.PNG)


Answers:
author: C. Faysal
body: and the error clearly indicates a "Read-Only Filesystem"

so it cannot update the crowd.properties file.

please check permissions on that file first. i assume it is chmod 644 and only the owner has write permission

i am afraid you had some problems with your mount so the system remounted it with option **ro** (read-only)

check by running this cmd in your shell:

```
touch /home/TEST.file
```

comments: author: bsarkar
body: thanks 4 your rply


author: C. Faysal
body: no big deal. i'm sure we gonna find a solution for this one ;)
Does the Built-in Bamboo Git Support multiple commands?
Asked by Ricardo C.:

Hi,

I'm using a Script Task to execute Git commands, however only the first command executes? Is there a way to run a series of commands? Example:

```
git initgit add .git commit -m "initial commit"
```

Thanks in advance for your help!

I added in Echo statements but it's still only executing the first git statement "git init" and completing the tasks


Answers:
author: Przemek Bruski
body: Script task should always execute all lines - like a regular script. Can you add some echo statements?

Does the script work from the command line?


Tags: cloud
Validation needed
Asked by michele_sacchetti:

moving my question to support, many thanks! :)


Answers:
author: marc -Collabello--Phase Locked-
body: Hi [@michele_sacchetti](/t5/user/viewprofilepage/user-id/4658351) The message means to actually contact Atlassian support. This forum here is mostly users helping users. You can contact support here: <https://support.atlassian.com/contact/>


author: Suvradip Paul
body: Hi [@michele_sacchetti](/t5/user/viewprofilepage/user-id/4658351) ,

I agree with [@marc -Collabello--Phase Locked-](/t5/user/viewprofilepage/user-id/1205132) , please Atlassian Support to get this sorted,


author: Caroline R
body: Hi, [@michele_sacchetti](/t5/user/viewprofilepage/user-id/4658351)! Welcome to the community!

We do have support engineers from Atlassian working here, so feel free to create questions that need our help.

This limit is set to prevent abuse, requiring us to validate if it's an actual person with a real need for that. I went ahead and exempted your workspace, so you should be able to create more than 300 repositories now.

Please let me know how it goes and feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: michele_sacchetti
body: Thanks a lot Caroline!


author: Caroline R
body: You're welcome, [@michele_sacchetti](/t5/user/viewprofilepage/user-id/4658351)!


Tags: bitbucket-cloud

cloud
Unable to create branch in Bitbucket
Asked by Prabhu Chilukuri:

Hi All,

When the user is trying to create a branch, He is getting the below error,

remote: Check your branch permissions configuration with the project administrator.

remote: ----------------------------------------------------

remote:

remote:

To [https://bitbucket.XXXXX.in/scm/p11270/XXXX_mas_rest_services.git](https://bitbucket.XXXXX.in/scm/p11270/fiserv_mas_rest_services.git)

! \[remote rejected\] feature/esh_resendEmail -\> feature/esh_resendEmail (pre-receive hook declined)

error: failed to push some refs to '[https://bitbucket.XXXX.in/scm/p11270/XXXXX_mas_rest_services.git](https://bitbucket.XXXX.in/scm/p11270/fiserv_mas_rest_services.git)'

Thanks,

Prabhu Ch


Answers:
author: Joseph Hani
body: Hello [@Prabhu Chilukuri](/t5/user/viewprofilepage/user-id/3414934) ,

Which permission the user have in the repositaries where he is trying to create a branch?

Most of the time it just a problem of permission, for him to be able to create a branch he need minimum of Write permission, read permission doesn't let him create a branch or anything else.

Go to Bitbucket --\> Select the repositary --\> Repositary Setting --\> User and group access

--\> You can check which permission he have

Regards,

JH

comments: author: Prabhu Chilukuri
body: Hi Joseph,

I have already provided write access to the user

Do you have any idea about below error,

! \[remote rejected\] feature/esh_resendEmail -\> feature/esh_resendEmail (pre-receive hook declined)


author: Joseph Hani
body: You should ask the manager in charge of the Repo "feature/esh_resendEmail"

It can come from multiple problem, but from my perspective

They are providing a lot of information on this page :

<https://stackoverflow.com/questions/7986139/git-error-when-trying-to-push-pre-receive-hook-declined>

Regards,

JH


Tags: bitbucket-server

server
Bitbucket is officially ending support of the Services feature on 31 December 2021
Asked by Praveen Kumar:

Hello Bitbucket Team,

Hope you doing well.

We have received below mail recently from atlassian.com regarding Bitbucket is officially ending support of the Services feature on **31 December 2021**

*** ** * ** ***

We noticed you are an admin for a Bitbucket Cloud repository that is still utilizing our original Services feature. We had previously announced that we will end support for this feature and recommended migrating repositories to Bitbucket webhooks.

<br />

Bitbucket is officially ending support of the Services feature on 31 December 2021. In order to prevent any unforeseen issues we recommend migrating at once. If you have any questions or issues migrating to Bitbucket webhooks, please reach out to Bitbucket support.  
Thanks,  
The Bitbucket Team

*** ** * ** ***

Please help me to understand the context.

* What will happen if do migrate to Bitbucket webhooks.
  * How to migrate.
* What will happen if continue with existing **Services feature.**
  * will that affect any feature we are using.

Thanks

Praveen Kumar


Answers:
author: seanaty
body: I think this answers most of your questions: <https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/Services-end-of-Support/qaq-p/1852862#M5819>

Services and webhooks basically do the same thing (one reason we are getting rid of services).

It's hard to say what will break because it depends on what the service or webhook does. Ultimately what's going on is Bitbucket is making an HTTP request to a 3rd party whenever a repository changes (sending details about that change).

You'd have to look at what services you're using to know what will break. But generally what will happen is Bitbucket will stop making HTTP requests (for services) hence the 3rd party will no longer be notified of any changes.

The link up top describes a way you can see which of your repos is using services.


Tags: bitbucket-cloud

cloud

service

webhook
cannot lock ref error while syncing repository
Asked by Prashantanu Singh Rathore (Temp):

Hi team,

I was trying to push a branch to remote. It fails with the following error. Please help

\[remote rejected\] (cannot lock ref 'refs/heads/release/\*\*\*/\*\*\*\*


Answers:
author: Caroline R
body: Hi, [@Prashantanu Singh Rathore (Temp)](/t5/user/viewprofilepage/user-id/4191202),

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Can the Firebase Deploy integration also push to hosting preview channels?
Asked by Jake Sheets:

I would like to set up a pipeline to build and deploy a preview of PRs that can be used for testing against our dev project in Firebase.

The integration seems to be a wrapper for the firebase deploy command, but even with a "--only hosting" argument it would push to the live hosting instead of a temporary preview channel ([see the documentation](https://firebase.google.com/docs/hosting/test-preview-deploy?authuser=0#preview-channels) for deploying to a preview channel).

The command we need is below, where "CHANNEL_ID" might be the branch name for the PR.

```
firebase hosting:channel:deploy CHANNEL_ID
```

If this can't be done with the integration directly, then would it be possible to use the integration to help with the CLI authentication using the "KEY_FILE" and other ENV parameters?


Answers:
author: Igor Stoyanov
body: [@Jake Sheets](/t5/user/viewprofilepage/user-id/4657733) hi. Thanks for your suggestion. It's a good idea to create feature request here:

[list of requested features](https://jira.atlassian.com/browse/BCLOUD-13452?filter=97052)

Regards, Igor

comments: author: Jake Sheets
body: I have created a new suggestion in the project you linked.

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


author: lt7
body: +1

The JIRA linked doesn't exist, was there an actual answer to the question or is there a feature gap that requirements development ?


author: Igor Stoyanov
body: [@lt7](/t5/user/viewprofilepage/user-id/4686436) hi.   
Current status of this feature is "not implemented, gathering interests". You should vote for this feature. Also the link exists, but not visible to you.

Regards, Igor


author: lt7
body: Hi [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492) I see the following so can't vote on it or read any comments.

Was there an answer to "If this can't be done with the integration directly, then would it be possible to use the integration to help with the CLI authentication using the "KEY_FILE" and other ENV parameters?" on the JIRA ?

![Untitled.png](https://community.atlassian.com/t5/image/serverpage/image-id/175482i0C5FD0ADAE6E6164/image-size/large?v=v2&px=999 "Untitled.png")


author: Igor Stoyanov
body: [@lt7](/t5/user/viewprofilepage/user-id/4686436) it's feature request. It's not implemented.


author: Igor Stoyanov
body: [@lt7](/t5/user/viewprofilepage/user-id/4686436), [@Jake Sheets](/t5/user/viewprofilepage/user-id/4657733) if you need to somehow authenticate inside a pipeline without pipe usage, you need to have \`GOOGLE_APPLICATION_CREDENTIALS\` environ or token.

This is an example how we do it in the pipe:  
[firebase-deploy example in repo](https://bitbucket.org/atlassian/firebase-deploy/src/6443474771b81c5e0b30a458ffbf891ec32dc5de/pipe/main.py#lines-106)   

Regards, Igor.


author: lt7
body: .


Tags: bitbucket-pipelines

cloud

deployment

firebase

google
Postgres error
Asked by Jo?o Sousa:

I got this error:

* The database, as currently configured, is not accessible.  
  FATAL: password authentication failed for user "bitbucket"


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Community!

I'm afraid this is exactly what it says it is. The username and password combination you have configured for connecting to the database are not valid.

You may get this with some databases if the user is not allowed to see the database at all, or can not log into it from the Bitbucket server, but you have to start with checking the username and password.

comments: author: Jo?o Sousa
body: Hi.

Thanks for your feed-back.

I have checked the bitbucket.properties a i have confirmed the user and password and it's correct.

I can connect in pgadmin with this user and password.

It's VM's that a have migrate from another network. So i change de IPs acording the actual network.

May be any config in the Postgres DB server?


author: Nic Brough -Adaptavist-
body: I would guess that your postgres service is configured to only allow login for that user from the old network.

Have you tried pgadmin from the Bibucket server? That might give you a more indicative error message.


Tags: bitbucket-server

server
Multiple S3 buckets with Mailpiler
Asked by Dennis Malmgren:

Hi

Is it possible to set up Mailpiler to utilize multiple S3 buckets?

Can't seems to find anything in the documentation.

Regards


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Community!

Could you explain what this has to do with Bitbucket? (Or any other Atlassian system?)

Could you have clicked on "help with the documentation/source-control system for something" instead of "help with the something"?


Tags: bitbucket-server

server
Cannot clone code from Bitbucket-Cloud to VisualStudio 2019 Enterprise
Asked by longnguyen63:

Hi,

I have issue with connection between BitBucket-Cloud and VisualStudio2019. The following message happens when trying to clone code.

Anyone also has this issue and how to fix it ? Thanks alot :(

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/171558i41D3C47A7D6F0927/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Syahrul
body: Hi [@longnguyen63](/t5/user/viewprofilepage/user-id/4656065)

G'Day!

The error indicates that it's unable to locate git in your local machine and after a quick search on Stackoverflow I found an interestingly similar error as yours at:

* [Cannot use git actions in VisualStudio (git-askpass.exe: No such file or directory)](https://stackoverflow.com/questions/51918725/cannot-use-git-actions-in-visualstudio-git-askpass-exe-no-such-file-or-directo)

The most accepted answer point is that you need to install the latest pre-release of Git Credential Manager for Windows at [Git Credential Manager for Windows](https://github.com/microsoft/Git-Credential-Manager-for-Windows/releases) and do some tweaks to get it works.

I would suggest checking the suggested steps and let me know how it goes.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud

visual-studio
Project visibility
Asked by Gajanan Sasane:

In our Jira Cloud, we have two projects called Java and HTML.  
also, we have two different project roles called Dev and QA.  
Now I have given browse permission to Dev for project Java  
similarly, I have given browse permission to QA for project HTML.  
When any member of the Dev role tries to view the project they can see both the projects, but here I want to restrict the visibility of the project list.  
Suppose for Java project should be visible to the only members of Dev roles not the member of the QA group.  

Would like to say thanks first...


Answers:
author: Avinash Bhagawati _Appfire_
body: Hi [@Gajanan Sasane](/t5/user/viewprofilepage/user-id/1180422) ,

As per your description, i assume you have added Dev role to Browse project permission and QA Role to Browse project permission in permission scheme. Is both projects have same permission scheme or different permission scheme.

Go QA project settings \> People \> QA Role \> Check whether QA group is added and Check that Dev role is empty.

Go DEV project settings \> People \> DEV Role \> Check whether users are added to dev role and Check that QA role is empty.

Thanks

Avinash

comments: author: Gajanan Sasane
body: Hi [@Avinash Bhagawati _Appfire_](/t5/user/viewprofilepage/user-id/3491119)   
Thanks for your response.  
Both the projects are having different permission schemes.


Tags: bitbucket-cloud

cloud

jira-cloud
Git Push is failing for repo with error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset,
Asked by Joel Black:

I'm trying to migrate a repo from github to bit bucket, but I keep getting the error message:

error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054  
send-pack: unexpected disconnect while reading sideband packet  
fatal: the remote end hung up unexpectedly  
Everything up-to-date.

I increased the buffer size after the suggestion said maybe the buffer was too small. I've also upgraded Git for Windows to the latest, made sure my connection is strong, rebooted. I don't have anti-virus. Other repos worked. The repo I'm trying to move is only 210 MB in size.


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

your issue is similar to this thread <https://community.atlassian.com/t5/Bitbucket-questions/RPC-failed-curl-56-OpenSSL-SSL-read-Connection-was-reset-errno/qaq-p/1557220>

Please take a look there to fix your issue.

Hope this helps,

Fabio

comments: author: Joel Black
body: This did not help. I followed that guidance before I posted this. I created a workaround by copying my original git repo, cloning the new, empty bit bucket one, and copying over files in sets of fewer than 20. Each successive check in was small enough to avoid the error, but there is still no resolution to git pushing 250 MB to bitbucket.


Tags: bitbucket-cloud

cloud