youngmon/atlassian-qna huggingface dataset:
NUnit test results file compatibility with Bamboo NUnit Parser
Asked by Sean Dockery:

We have a project that uses NUnit 2.5.9, for which the NUnit Parser tasks have been intermittently failing since we upgraded from Bamboo 4.1.2 to Bamboo 4.4.5; and I wondered if compatibility between Bamboo 4.4.5 and the NUnit 2.5.9 test result file may be an issue.

The Bamboo documentation does not specify which versions of NUnit are supported by the Bamboo NUnit Parser task. I have also noticed BAM-12433, which suggests that NUnit 3.0's file format is not yet supported.

Is the version or versions of NUnit supported by Bamboo 4.4.5 (or any other version) documented anywhere?


Answers:
author: Sean Dockery
body: I was able to work around the new behaviour in Bamboo 4.x that XML files created before the start of the current job are ignored by test result parsers by inserting a Script task prior to the test result parser task that executed the following two lines:

ping -n 3 127.0.0.1 \> nul  
forfiles /m \*.xml /c "cmd /c copy /b @file +,,"


author: ssetayeshfar
body: Hi Sean,

The supported versions are not documented any where unfortunately and I'll definitely collect more information and create a document for it.

From Bamboo 3.3 onwards, support for running NUnit is built in. Can you please navigate to Administration - \> Manage Add-ons in Bamboo and check the version of the "Atlassian Bamboo .NET Plugin" under system Add-ons? Is it version 3.11? .

Did you have this add-on installed in your 4.1.2 from the marketplace: <https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugin.dotnet> or you were using the built in?

If this continues to be a problem for you please file a support ticket with us, so we can do a more detailed search about this issue and be able to alook at your log files also.

Hope this helps!

Best,

Sepideh

comments: author: Sean Dockery
body: Hi Sepideh,

I am using the built-in NUnit Result Parser in Bamboo 4.4.5. I am investigating the cause of a false build failure at this point and wondered if I need to be concerned about NUnit 2.5.9 result file format compatibility with Bamboo 4.4.5. The problem seemed to manifest after we upgraded to Bamboo 4.4.5 from Bamboo 4.1.2, but it may just be coincidence. The build fails complaining that the NUnit test results are either missing or invalid; we have confirmed in every instance that the files are present and valid (as far as we can tell). I will try upgrading NUnit to see if the situation improves, but a compatibility list would be helpful.


author: Sean Dockery
body: This continues to be a problem for us, so I've created a support ticket. It is unlikely that the problem is related to the parsing task itself, but perhaps to synchronization between stages and artifact sharing.


Tags: nunit

result

test
can i have 2 Bamboo4.0 servers sharing one database
Asked by pawan sharma:

Hi All,

is it possible to have 2 Bamboo servers on 2 different servers but using/sharing one Database instance?

Thanks,

Pawan


Answers:
author: Przemek Bruski
body: If you want to have two servers sharing the same db (as in: the same data) - no, that's not possible.


author: Renjith Pillai
body: When you say database instance it can mean different things based on the type of database. For example if you are on ORACLE, you can of course connect them to same database with different usernames.

I am not sure in case of other databases, probably if there are ways to set default schemas on user login.
Is it possible to use variables in inline bamboo script
Asked by Dave Brunkow:

Can't seem to do something simple in an inline script in Bamboo like

foo='hello world'

echo $foo

Am I missing something?

Is there any kind of script reference for Bamboo?


Answers:
author: Przemek Bruski
body: The script is a regular Bash (on Linux) or batch (on Windows).

So, your example should work if you're using Linux

comments: author: Dave Brunkow
body: Doh, it's running on one of my windows agents and not the linux. Script on my windows box is windows bat?
How do I manually clear the workspace for a job across multiple agents?
Asked by Gary Donovan:

Sometimes the workspace for a job can get irrevocably corrupted (eg. the workspace is kept between jobs, and some cached data is incorrect because one of the executions was buggy). In these circumstances, the easiest way to resolve the problem is to delete the workspace and re-create it from scratch when the job next runs.

However, there is no obvious way to do this with Bamboo. [This question](/questions/53869/is-there-any-way-to-manually-clear-a-workspace-in-bamboo) is along the same lines, but ultimately did not find a satisfactory solution (especially when you are using multiple agents). To summarise, the options are:

1. Temporarily modify the job definition to clean the workspace (eg. "Force clean build" in the source checkout) and run the job.
2. Have a clean task permanently defined in your job definition, which is enabled with a variable. When you need to clean, then run the job with the cusotm variable set.
3. Go through all the workspaces for all your agents on all your machines and manually delete the job's workspace from the file system.

Any of these optionas are "good enough" workarounds if you only have 1 agent. However, the first 2 don't work reliably when you have multiple agents (the workspace for only 1 of the agents will have been cleaned), and the final one doesn't scale well.

Are there any other approaches, or should I create a feature request?


Answers:
author: ArmenA
body: Hi Gary,

One more workaround that you can consider is to check the "Clean working directory after each build" option on the Miscellanious tab for each job configuration page. I think the main request here is to clean the workspaces of different plans before even running any builds, correct? If yes, you can go ahead and raise a new feature request on <https://jira.atlassian.com>.

Armen


author: Jan Swaelens
body: Indeed, it would be great to be able to do this as administrative action. I often find myself deleting build folders on the master and several agents to correct a script that has gone wrong or some weird build issue that is only fixed by cleaning the lot.


Tags: bamboo-administration
Can Bamboo stand alone server be hosted in EC2?
Asked by Brian Ellis:

Can Bamboo stand alone server be hosted in EC2?

What are the caveates?

What is the recommended instance size?


Answers:
author: Harry Chan
body: It \*can\*. I wouldn't recommend it, especially if you'd be running local agents. Recommended size depends on your usage - plans / if using local agents etc. You definitely won't get by with lower tier instances.

What is your use case? Do you need EC2 or is it just preference? Might be better going to an Atlassian hosting provider or a different cloud / VPS service with more power in some cases[.](https://www.cloudshards.com/fisheyehosting.php)


Tags: aws
What is the recommended operating system for installing Bamboo server?
Asked by Brian Ellis:

What is the recommended operating system for installing Bamboo server?

RHEL, Centos, Ubuntu, SUSE Linux, WIN 2008 R2, Win 2012

We will be building for all OS's so other OS will have to be configured as remote Agents.


Answers:
author: Kelly Schoenhofen
body: I've run Bamboo on both Windows 2008 \& Ubuntu, and I prefer a clean Ubuntu server install over Windows, no contest. Stability, performance, etc. While Atlassian seems to support virtually all major OS's, they seem to lean towards using Linux to host, and of all the flavors of Linux, Ubuntu seems to be the "most" supported, as it also appears to be the most widely used Linux server install by their userbase.

Since Jira is our "flagship" Atlassian app I have it on an Ubuntu 12.04.2 LTS server with an external db server, Bamboo I have on a 13.04 server that I keep updated (not LTS) with an external DB server as well. (same db server actually, for both Jira \& Bamboo).

I've had no issues with the install or performance. (no local agents either - just remote). I'm very satisified with our OS choice.
EBS Snapshot Attached To Default Windows Elastic Bamboo Instance
Asked by Jeremy Switzer:

I followed the instructions [here](https://confluence.atlassian.com/display/BAMBOO/Configuring+elastic+instances+to+use+the+EBS) for creating an EBS Snapshot that attaches to a Default Bamboo Linux AMI and installs all the extra libraries I need at boot-up. It works great. I am trying to accomplish something similar for the Default Windows AMI, but I can't quite figure out how to get it done.

I remoted on to the running instance and found a similar set of scripts at:

```
C:\opt\bamboo-elastic-agent\bin
```

Attempting to run them in Cygwin (or Git Bash) was a failure, so I'm assuming they are not meant to be run in a similar fashion.

So I guess my question is: How do install extra libraries and software during the Windows Elastic Image startup without having to create (and maintain) my own custom AMI for windows?

**Update:**

So Bamboo 5.0 is on OnDemand now. I started a new Default Windows Image and attempted similiar steps to the ones mentioned above, but it still seems that those scripts are not working yet again.

Perhaps I read a little too much into the "EBS Volumes will be supported in Bamboo 5.0" comments everywhere and assumed that meant an equivalent scripting process to the one on Linux AMIs, but so far I don't really see a difference in the way Windows Elastic Instances are handled in this new version.

If it is indeed possible to create and mount an EBS Snapshot to my Windows AMI and have it kick of a script that could install a few things and do some slight configuration, I would love to see some documentation on how to do so.

If not, I would accept an answer that allows me to accomplish the goal of installing extra software on a windows instance without having to create a new AMI every time I want to make a change.


Answers:
author: Kristen Byers
body: I basically have the same question. Since this question is almost a year old, I'm wondering if anyone has successfully done this: installing extra software on a default elastic Windows instance.

Based on my many hours of searching for answers it doesn't appear that the instance startup script will run successfully on Windows, nor does it appear that you can attach a custom EBS volume to the default Windows Bamboo image.

I'm hoping that I don't have to create a brand-new custom image as instructed here: [](https://confluence.atlassian.com/display/BAMBOO/Creating+a+custom+elastic+image+-+Windows)<https://confluence.atlassian.com/display/BAMBOO/Creating+a+custom+elastic+image+-+Windows> but I'm beginning to think I will.

Any help or direction would be greatly appreciated!


author: Jeremy Switzer
body: OK, just found [this](/questions/175456/instance-startup-script-vs-ec2-user-data-on-windows-elastic-agents), which sort of answers my question. Sorry.

Side note: you guys may need to tweak your search engine on this site. Searching \[bamboo-ondemand\] windows should have given me that as a result.


Tags: cloud

windows
Can the Bamboo management server (download version) run on EC2?
Asked by Matt:

We've had to move to the download version from our trial of Bamboo onDemand for various reasons.

Wondering if we can run the download version on EC2? Has anyone done this? Issues?


Answers:
author: Matt
body: We have passed on this idea, not enough user experience. Installing in our colo instead.


author: Harry Chan
body: It's \*possible\*. You would need a higher tier instance and more if you are running local agents. It all depends on your usage etc. It's been done before.

It might be better with a higher spec VPS or an Atlassian hosting partner etc[.](https://www.cloudshards.com/fisheyehosting.php)

comments: author: Matt
body: Thanks. The hosting partner angle is one I hadn't considered. Just trying to find the closest solution to onDemand, but with remote agents.


author: Harry Chan
body: If you need an OnDemand alternative, best to get Atlassian hosting service to manage the whole set. This is something we do, if interested, contact us @ <https://www.cloudshards.com/contact.php> for a custom solution. We currently host many Atlassian products for users that don't fit OnDemand.

There are also others to choose from. Depends on your needs.


Tags: bamboo-administration
Is it possible to create an account separate from those in our identity provider?
Asked by Mac:

Hi everyone! I have the following situation:

We access Atlassian solutions with accounts from an external identity provider and I need to set up a service account in Bitbucket (So we can deploy a SAST solution).

Is it possible to just do it in Bitbucket instead of going to the IdP and creating an "user" there? (With which we could later log in to Bitbucket)


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

Just to confirm we are on the same page, I see the account linked to the email you used to create this question is not managed by an organization, so could you please confirm if this is the domain you are referring to or not?

Answering your question, there are two scenarios: if your organization has the single sign-on enforced on the **Default policy** , this user must be enabled on your Identity Provider. However, if your org doesn't have SAML SSO enforced on the **Default policy**, the user will be able to create a Bitbucket account.

In order to review this policy, the org admin can follow the next steps:

* Access <https://admin.atlassian.com/> \> open the organization

* Open the **Security** tab

* Go to **Authentication policies**

* Check if the **Default policy** has Enforced Single sign-on or not

I hope this helps, but do let me know if you have any questions.

Kind regards,   
Caroline

comments: author: Mac
body: Thanks for the welcome [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)

Yeap, the domain I'm in is actually managed by an org.

Perhaps I messed up something when I came here from Bitbucket to ask the question but I can see in Jira and BItbucket the other members of my org.

I see. I'll check and see what scenario we have and proceed from there. Thanks for the clarification!


author: Caroline R
body: Hi, Mac!

Thanks for getting back to me! I'm glad to help you with this information.

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Pipelines: image is php 7.4, composer install thinks it's 7.3?
Asked by Nathan Bennett:

Hello - we have a site with a pipeline integration, using the following image:

```
image: magento/magento-cloud-docker-php:7.4-cli-1.2.3
```

However, when the pipeline gets to the \`composer install\` step, it errors thinking it thinks it's using 7.3:  
Your requirements could not be resolved to an installable set of packages.  
Problem 1  
- Installation request for laminas/laminas-filter 2.13.0 -> satisfiable by laminas/laminas-filter[2.13.0].  
- laminas/laminas-filter 2.13.0 requires php ^7.4 || ~8.0.0 || ~8.1.0 -> your PHP version (7.3.17) does not satisfy that requirement.  
We use that image on other 7.4 sites without issue, is there something else that needs to be updated in the pipeline to allow composer to use 7.4?  
Thx for any insights


Answers:
author: Norbert C
body: Hi Nathan,

Thank you for contacting Atlassian Community. My name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet you!

It sounds interesting, can I ask you to run the following command in your build, please? This command should tell us, what's the PHP version which is used by PHP composer

```
composer -vvv about
```

When I've tried this using the build that you've mentioned, it tells me, that the PHP version is 7.4.20:

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

Please let me know how it goes.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-pipelines

bitbucket-server

server
ERROR: Bitbucket Pipelines - endpoints_resolution_error
Asked by Luis Plaza:

` `  
Hello Community,  
I am getting this error from a pipeline that performs rest calls to Microsoft Graph. Any help how this can be solved?  
Happy new year 2022!  
Luis

    ClientAuthError: endpoints_resolution_error: Error: could not resolve endpoints. Please check network and try again. Detail: ClientAuthError: openid_config_error: Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints. Attempted to retrieve endpoints from: https://login.microsoftonline.com/x/v2.0/.well-known/openid-configuration

        at ClientAuthError.AuthError [as constructor] (/opt/atlassian/pipelines/agent/build/node_modules/@azure/msal-common/dist/index.cjs.js:481:24)

        at new ClientAuthError (/opt/atlassian/pipelines/agent/build/node_modules/@azure/msal-common/dist/index.cjs.js:762:28)

        at Function.ClientAuthError.createEndpointDiscoveryIncompleteError (/opt/atlassian/pipelines/agent/build/node_modules/@azure/msal-common/dist/index.cjs.js:799:16)

        at Function.<anonymous> (/opt/atlassian/pipelines/agent/build/node_modules/@azure/msal-common/dist/index.cjs.js:7097:47)

        at step (/opt/atlassian/pipelines/agent/build/node_modules/@azure/msal-common/dist/index.cjs.js:79:23)

        at Object.throw (/opt/atlassian/pipelines/agent/build/node_modules/@azure/msal-common/dist/index.cjs.js:60:53)

        at rejected (/opt/atlassian/pipelines/agent/build/node_modules/@azure/msal-common/dist/index.cjs.js:51:65)

        at processTicksAndRejections (node:internal/process/task_queues:96:5) {

      errorCode: 'endpoints_resolution_error',

      errorMessage: 'Error: could not resolve endpoints. Please check network and try again. Detail: ClientAuthError: openid_config_error: Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints. Attempted to retrieve endpoints from: https://login.microsoftonline.com/x/v2.0/.well-known/openid-configuration',

      subError: '',

    }









Answers:
author: Luis Plaza
body: SOLVED: The defined pipeline variables interfere with those defined in the .env file if they have the same name ( Used by npm package 'dotenv' )


Tags: .net

bitbucket-pipelines

endpoint

variable
Linking issues with pull requests
Asked by Shaden Alsbaihin:

I noticed that the system links my Jira issue with the pull request when I include the Jira issue key in the pull request on the **pull request** **creation** . However, when I include the Jira issue key in the pull request when I **edit the pull request**, the linking does not work.


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

Thank you for reaching out to Atlassian Community!

I tested this behavior on a personal repository, but the link between the Jira issue key and my repo works when I add it when editing the Pull Request as well. In this case, could you please confirm the following information, so we can further investigate this issue?

* What is the browser you are using? Is it up to date?

* You mentioned it works when you add it during the PR creating. Could you please confirm if you are able to link the same Jira issue key when creating a PR? I'm asking this to check if this is not related to a specific Jira issue.

* Is this happening to other users as well?

Thank you for the additional information.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud

jira
Getting 403 access denied for bitbucket webhook to jenkins
Asked by bulumko:

Good day

I've configured a bitbucket webhook to trigger a jenkins build. The jenkins is running in a docker container hosted in a private cloud. I'm getting a 403 status code with access denied error when view the results of the request in bitbucket. Not sure what the issue is because bitbucket is able to hit the endpoint, just that it's saying access denied. Not sure where I'm supposed to change such permissions so it can work.

Kindly assist,

Thanks


Answers:
author: Gonchik Tsymzhitov
body: Hi [@bulumko](/t5/user/viewprofilepage/user-id/4694954) ,

Please, take a look with network engineers the next article

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

Then better to check all things via curl the access.

Cheers,

Gonchik


Tags: bitbucket-cloud

cloud
I learned how to use Google Chat Webhook in my Pipelines yaml file!
Asked by tcuster:

I only recently learned any of this and my process involved creating a python file, and passing a string constant into the script when I call it in the yaml file. The python then uses a Google Chat webhook to send the string it was passed as a message into the chat through a bot.   

Do you have ideas for similar things I should learn or try?  
Is there a better or different way to get the same results?   
How do you use webhooks in your pipelines yaml file?   

I look forward to any and all answers.  
Thank you for your time!


Answers:
author: Oleksandr Kyrdan
body: Hi [@tcuster](/t5/user/viewprofilepage/user-id/4689384)

Thank you for your question!

It's a good case to create your own custom pipe.

We provide an opensourced tools - [Bitbucket Pipes toolkit](https://bitbucket.org/bitbucketpipelines/bitbucket-pipes-toolkit/) and [good guides for it](https://bitbucket.org/blog/build-flexible-ci-cd-pipelines-with-custom-pipes).

To discover more ready to use pipes, visit our [**Bitbucket Pipes Marketplace**](https://bitbucket.org/product/features/pipelines/integrations).

Best regards,  
Oleksandr Kyrdan


Tags: bitbucket-pipelines
upgrade bitbucket
Asked by Irshad Ali:

Hello,

Currently I have Atlassian Bitbucket v4.5.2 installed on my Linux server and I want to upgrade to Bitbucket Data Center and Server 7.17 (Long Term Support release).

Is there is direct path to upgrade from my existing version to desired one?

what is upgrade matrix?


Answers:
author: Nic Brough -Adaptavist-
body: The upgrade to 7.0 is a major set of changes and one that it is not advisable to skip over lightly. I would recommend taking your 4.5 up to 5.16, then 6.10, then 7.0, then up to 7.17.

I would also quickly try 4.5 straight to 6.10, which usually won't cause you problems, but test it and see. But the 6.10 to 7.0 step exposes you to significant change and risk, which you can minimise by taking the smallest step possible!

Have a look through <https://confluence.atlassian.com/bitbucketserver/bitbucket-server-upgrade-guide-776640551.html>


Tags: bitbucket-server

server