youngmon/atlassian-qna huggingface dataset:
Bamboo deployment project cannot find plan variable
Asked by Andreas Schaek:

In my bamboo server (5.6.0) I have a build plan and created a variable inside of it (rccount).

In the deployment project i want to create a custom release version by adding this text as versionstring:

```
RC${bamboo.rccount}#${bamboo.buildNumber}
```

The first variable has been added by "Add variable to version" and i found it under "incrementable variables" (Type plan)

The second is a normal build variable.

When I hit generate prieview i can mark the rccount variable as incrementable and in the preview section it is counted right.

When I want to deploy the project the release number is shown as

```
RC${bamboo.rccount}#23
```

When I hit "start deployment" I get an error

```
Could not execute 'ENVIRONMENT:8749057': java.lang.RuntimeException: Unable to resolve VariableContextBaseline
```

What am I doing wrong?


Answers:
author: Andreas Schaek
body: I found the solution on my own.

Plan variables are only valid within builds finished **after** the variable has been created.

So i just needed to run a new build.


Tags: bamboo-administration
How to trigger a project deployment from a Success Build if the build has 2 Stages and the 2nd stage is manual
Asked by Dana Cleveland:

So I have some developers that have 2 stages on their builds

Stage 1: Essentially performs a standard maven build, and always runs

Stage 2: Is a Manually triggered Stage that does a maven release:prepare / release:perform

They then have an Environment on their associated Deployment Project set to trigger on a sucessful build.

The Environment then pushes a different artifact to our application servers which does not reside in our shared maven repos.

The trouble is that the the trigger does not happen even though the build is successful, Its a Green Circle, with a dot on the middle, vs.. a green circle with a checkmark.. So its more like "Successful Build But....." status..

How do others do it..

Because our Bamboo crosses spans the company and different teams we have agents that essentially have different credentials/permissions, we use a Requirement on the Build to help choose the Agent to run and thus the permissions to push the release to our shared maven repos, and permission to git repo for the commands that maven runs with git outside of bamboo..


Answers:
author: pradhyumna shrestha
body: Haven't had that situation but you might want to try , I hope i helps

[Bamboo Command Line Interface](https://bobswift.atlassian.net/wiki/display/BCLI/Bamboo+Command+Line+Interface) {#toc-hId-481505720}
====================================================================================================================================

use queuebuild from bamboo commandline interface.

<https://bobswift.atlassian.net/wiki/display/BCLI/Documentation#Documentation-queueBuild>

<https://bobswift.atlassian.net/wiki/display/BCLI/Bamboo+Command+Line+Interface;jsessionid=722138E006F75794083626B8240706C4>


author: Dana Cleveland
body: A Related Deployment Project does not seem treated as "Dependency" for the build, so it doesn't seem to let it run


author: pradhyumna shrestha
body: Try this option.image2014-10-24 9:56:58.png  
[](https://community.atlassian.com/t5/Bamboo-questions/How-to-trigger-a-project-deployment-from-a-Success-Build-if-the/qaq-p/90987?attachment-id=8400){#link_116984f85cd51a}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/2898/1/image2014-10-24%209%3A56%3A58.png){#display_116984f85cd51a_0}
What's the recommended way of actually getting work done in a self-hosted Bitbucket runner
Asked by kristoffer:

I can't find any information on how to make self-hosted runners work in a useful way. All examples provided by the documentation pretty much just makes an echo call, and I don't need a self-hosted runner for that. :)

What is the recommended way to expose a compiler and a few additional tools to a self-hosted Linux runner so that it can actually do some build work?


Answers:
author: o_kyrdan
body: Hi [@kristoffer](/t5/user/viewprofilepage/user-id/4863921)

You could do most of all things on your self-hosted runner as on the Bitbucket Pipelines.

You've always been able to execute CI/CD workflows via Bitbucket Pipelines using **Atlassian's infrastructure**. This is the easiest way to use Bitbucket Pipelines because you don't need to host or manage any servers. Atlassian host it and manage it for you.

But sometimes you need **more control** of your hardware, software, and the environment your builds are executed into.

For example, you may need builds to access internal systems that are behind the firewall, or configure your hardware with more memory to run complex builds.

So, self-hosted Runners allow you to execute your pipelines builds on **your own infrastructure**, so you have more control over your server configurations and budgets.

More details you could find in the [blog](https://bitbucket.org/blog/pipelines-runners).

Cheers,  
Oleksandr Kyrdan

comments: author: kristoffer
body: Thanks for the answer [@o_kyrdan](/t5/user/viewprofilepage/user-id/2862136) , not exactly what I'm looking for though.

You mention:
> But sometimes you need **more control** of your hardware, software, and the environment your builds are executed into.

And this is what I'd like more info and documentation on. What would be the recommended way to more control software in a self-hosted runner?

In the mentioned blog there's only the same (sorry to say) useless example found that seem to always show up when describing what can be done in a self-hosted runner.

```
echo "This step will run on a self hosted runner with 32 GB of memory.";
```

Ok, so I can output text, that's neat, but I'd like to call scripts, tools, compilers etc. I need also. How do I go about that?

/K


author: kristoffer
body: After some trial and error I got it now.

It just didn't occur to me that the script part of the yaml steps is being executed inside the docker container of choice inside the docker container of the self-hosted runner, as oppose to directly in the self-hosted runner, leaving you to do all plumbing yourself.

/K


author: o_kyrdan
body: [@kristoffer](/t5/user/viewprofilepage/user-id/4863921)

Thank you for sharing your experience with the community.

Please, feel free to ask any questions and write articles about self-hosted runners that could help other users to setup and use.

Best regards,  
Oleksandr Kyrdan


Tags: bitbucket-pipelines

bitbucket-cloud

bitbucket-runners

build

cloud
Monitoring and detection of unauthorized access and file tampering
Asked by ?? ??:

Does Bitbucket Cloud have a mechanism to monitor and detect unauthorized access or file tampering?


Answers:
author: Brant Schroeder
body: [@?? ??](/t5/user/viewprofilepage/user-id/4863693) Welcome to the Atlassian Community

Here is information about how bitbucket cloud is secured: <https://bitbucket.org/product/cloud-security>


Tags: bitbucket-cloud

cloud
bitbucket : dash board page is not rendering as expected
Asked by Sean Zhou:

Hi there,

It happens on the bitbucket [dash board page](https://bitbucket.eflabs.cn/dashboard) which is not renderred successfully. Please help us resolve the issue.

Thanks a lot.

![Screen Shot 2022-04-07 at 14.51.39.png](/t5/image/serverpage/image-id/191914iC171E000042A0084/image-size/large?v=v2&px=999 "Screen Shot 2022-04-07 at 14.51.39.png")

The failed request:
> Request URL:  
> <https://bitbucket.eflabs.cn/s/4cbe0de7d4cf04f9254d5c7806259c79-CDN/2119834181/cf343f9/1/683250b21e694a749fd749aee8f99539/_/download/contextbatch/css/_super/batch.css>  
> Request Method: GET  
> Status Code: 500

Related console error says :
> Refused to apply style from '<https://bitbucket.eflabs.cn/s/4cbe0de7d4cf04f9254d5c7806259c79-CDN/2119834181/cf343f9/1/683250b21e694a749fd749aee8f99539/_/download/contextbatch/css/_super/batch.css>' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.


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

welcome to the atlassian community!

First of all please clean your browser cache and try again. Is you network ok?

If cleaning doesn't resolve your issue, propably, it is a problem at server side and not a bibucket application issue.

Please let me know,

Fabio

comments: author: Sean Zhou
body: Hey [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528)

Yes, it does have sth to do with the deployment on our side and it's been fixed already. Thank you all the same. ?


author: Fabio Racobaldo _Herzum_
body: [@Sean Zhou](/t5/user/viewprofilepage/user-id/4864026) , I'm happy for that. Please mark my answer as accepted so this thread can be considered closed


author: Sean Zhou
body: OK , just did it.


Tags: bitbucket-server

server
SSH Permission Denied
Asked by Brian Dannenmueller:

I set up an SSH key by following the instructions for Mac here: <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/#Set-up-SSH-on-macOS-Linux>

After setup, I ran "ssh -T git@bitbucket.org" to test the connection and got the classic "Permission denied (publickey)". So I looked at the troubleshooting section here:

<https://support.atlassian.com/bitbucket-cloud/docs/troubleshoot-ssh-issues/>

and none of the scenarios described for my particular error seem to match. As an experiment, I set the same ssh key up with GitHub (which is basically the same process) and the ssh test worked just fine. In addition, I was able to clone a repo on Bitbucket using ssh, even though the connection test never works. What in the world is going on?


Answers:
author: Theodora Boudale
body: Hi Brian and welcome to the community.

One possible reason I can think of is that the private key offered when you run **ssh -T git@bitbucket.org** may be different than the key offered when you clone.

You can see what key is being offered in the first case if you run **ssh -Tvvv git@bitbucket.org**, the key offered should be shown in the output.

You can create a file named **config** in your **\~/.ssh** directory and add the following (if the file exists, just add the following lines):

```
Host bitbucket.org
        HostName bitbucket.org
        PreferredAuthentications publickey
        IdentityFile /Users/Username/.ssh/id_rsa
```

where **/Users/Username/.ssh/id_rsa** replace with the path to the private SSH key whose public key is uploaded to Bitbucket, to ensure that this key will be offered.

Kind regards,  
Theodora


author: Brant Schroeder
body: [@Brian Dannenmueller](/t5/user/viewprofilepage/user-id/4863612) Welcome to the Atlassian Community

Have you tried this <https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html>

comments: author: Brian Dannenmueller
body: Hi Brant, thanks for your swift reply! Yes, I have seen this page and checked out all of the scenarios, but none seem to apply:

1) I have verified that my ssh-agent is up and running and my key is loaded

2) I have verified that my key is uploaded to Bitbucket, and can screenshot if necessary.

3) Git clearly has permission to write to my filesystem, since I've been able to use it to download repos, even with ssh. It's the test command that mysteriously fails.

Like before, issuing the

    ssh -T hg@bitbucket.org

results in the same Permission denied (publickey). Real head scratcher here!

By the way, I am using a MacBook Pro 2019, Monterey 12.2.1


Tags: bitbucket-cloud

git

ssh
Bitbucket Cloud Repository Link Exception when Requiring Issue Key
Asked by Curtis:

In Bitbucket, when linked with Jira (or other supported Issue Trackers), you can enable the option to require commit message to contain an issue key. This way, developers are forced to reference their Jira issue, and all commits can be then tracked and reviewed from Jira.

Not all commits come from developers in our case. We have cases where Bamboo performs commits, along with another build platform, for various reasons, like adding labels or changing Maven settings.

Is there a way to add exceptions? Where some users or SSH keys don't have that requirement? That way tasks from Bamboo or Jenkins could be permitted to push changes without a Jira issue.


Answers:
author: Caroline R
body: Hi, [@Curtis](/t5/user/viewprofilepage/user-id/734074), thank you for reaching out to Atlassian Community.

Currently, it's not possible to exclude CI tools from requiring a Jira Issue key on commit messages, but we already have a feature request to implement that:

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

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Thank you.

Kind regards,   
Caroline


Tags: bamboo

bitbucket-cloud

cloud

repository
Bitbucket Workspace Runner Security
Asked by Tony Wu:

Is there a way to limit what repos can use a particular workspace runner? We would very much like to avoid running one runner per repo, but we also don't want to have workspace runner that's completely open to all repos.

Thanks.


Answers:
author: Theodora Boudale
body: Hi Tony,

I'm afraid that this is not possible at the moment.

I went ahead and created a feature request in our issue tracker:

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

I would suggest adding your vote to the feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to require SSO?
Asked by Ben Smith:

Is it possible to configure BitBucket to require SSO via Microsoft or Google? I am able to restrict access to specific email domains. However, I cannot seem to find a way to disable the basic login.


Answers:
author: Caroline R
body: Hi, [@Ben Smith](/t5/user/viewprofilepage/user-id/482649), thank you for reaching out to Atlassian Community.

With [Atlassian access](https://www.atlassian.com/software/access), it's possible to enforce single sign-on. I see your account has Atlassian Access enabled, so your org admin should be able to require SSO by following the next steps:

* Go to [admin.atlassian.com](http://admin.atlassian.com/). Select your organization if you have more than one.

* Select **Security** \> **Authentication policies**.

* Select **Edit**for the policy you want to enforce.

* Select **Enforce single sign-on.**

In case you would like to read more about authentication settings and SAML single sign-on, you can access the following links:

* [Edit authentication settings and members](https://support.atlassian.com/security-and-access-policies/docs/edit-authentication-settings-and-members/)

* [Configure SAML single sign-on with an identity provider](https://support.atlassian.com/security-and-access-policies/docs/configure-saml-single-sign-on-with-an-identity-provider/)

Please feel free to share any additional information regarding this case.

Kind regards,   
Caroline

comments: author: Ivan Arsenov
body: Hi Caroline,  

Is it still done this way? I can't seem to find the option to Enforce SSO within Authentication policies. There is an option to enforce 2FA, but for SSO only enabling/blocking it is available.  

<br />

EDIT  
Sorry, I managed to sort it out while creating a new policy, it was available there. I was trying to edit an existing one.  

Thanks!


author: Robert Wen_ReleaseTEAM_
body: Here's a Marketplace app that provides SSO connection to Azure AD for Atlassian Cloud apps. [https://marketplace.atlassian.com/apps/1222230/azure-active-directory?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1222230/azure-active-directory?hosting=cloud&tab=overview)


Tags: bitbucket-cloud

cloud
Perdiendo tiempo en esperar que git bash me solicite el app password
Asked by Rodrigo Calle:

Cada vez que trato de hacer un push o pull a un repositorio en bitbucket demora demasiado, a veces git bash abre una ventana solicitandome el app password, y otras veces no. Pero siempre demora mas de dos minutos. Desearia ayuda para solucionar mi problema.


Answers:
author: Caroline R
body: Hi, [@Rodrigo Calle](/t5/user/viewprofilepage/user-id/4863079), welcome to the community!

As you mentioned git bash opens a window asking for the app password, I believe you are using a credential manager, is that correct? Otherwise, you should see a message in the output in Git Bash.

If that's the case, could you please confirm which credential manager you are using and its version? Also, can you please check the version of Git?

In case they are not up to date with the latest version, I suggest you update them and test the process again.

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

Kind regards,   
Caroline


Tags: bitbucket-cloud

repository
Someone has already added that key as an access key to a repository.
Asked by fromcouch:

I wanted to add my key to change the based password to ssh and i got this error


Answers:
author: Caroline R
body: Hi, [@fromcouch](/t5/user/viewprofilepage/user-id/1746763), thank you for reaching out to Atlassian Community.

As we will need to know the public ssh key to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

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

comments: author: fromcouch
body: Received, thank you


author: Caroline R
body: You're welcome, [@fromcouch](/t5/user/viewprofilepage/user-id/1746763)!
"Apps and Features" section missing in workspace settings
Asked by Rich Stepanski:

The "Apps and Features" section of workspace settings is missing on a single workspace. Is there a setting to turn this on? All other workspaces show it correctly. Thanks.


Answers:
author: Karthick S
body: Hello [@Rich Stepanski](/t5/user/viewprofilepage/user-id/2115063)  

The reason why you are not seeing the "Apps and Features" is that it is a personal workspace and not a shared workspace. To give a context on this, when a user signs up for a Bitbucket Cloud account, a workspace is automatically created by Bitbucket for this user. This workspace that is automatically created by Bitbucket (and not manually by the user) is considered the user's personal workspace.

New admins can be added to this workspace, but the "APPS AND FEATURES" section of such a workspace will show only to the owner.

We have already raised a feature request to have this addressed:

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

But while this feature is not available we advise the workaround below:  
Create a new workspace \> add the required groups \> transfer the repositories from the current workspace to the new one.

Please find below some documents that can be helpful to perform the steps above:

* **Create a workspace** - <https://support.atlassian.com/bitbucket-cloud/docs/create-your-workspace/>
* **Transfer repositories and groups** - <https://support.atlassian.com/bitbucket-cloud/docs/transfer-repositories-and-groups-to-a-workspace/>   

I hope this helps.  

Kind regards,  
Karthick S

comments: author: Francesco Mariani
body: After 2 years is still open...


Tags: bitbucket-cloud

cloud
How to enable JavaScript syntax markup in the Pull Request view
Asked by Adrian Kowalczewski:

How to enable JavaScript \& React syntax highlight in the Pull Request view? Currently We all see just plain text, without any markup or syntax recognition.


Answers:
author: Patrik S
body: Hello [@Adrian Kowalczewski](/t5/user/viewprofilepage/user-id/4862733) ,

Welcome to Atlassian Community!

I'm afraid currently the syntax highlighting option is not available in Bitbucket Cloud, but the good news is that our development team is already working on implementing that functionality, which you can check in the feature request below :

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

That feature is already "In Progress" state, meaning that our development team is currently working on having it implemented.

I would suggest you to vote for that feature and also make sure to add yourself as a watcher, so you receive first-hand updates whenever there's any progress on the implementation.

Thank you, [@Adrian Kowalczewski](/t5/user/viewprofilepage/user-id/4862733) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Possibility of conflict between access keys ?
Asked by Pierre:

Is it possible that an access keys added to a repository R in a project A can conflict with same access keys added to a project B.

Because what I experienced looked like it, I was never able to clone a repository S from project B, the server kept returning Unauthorized, until I added that access key to S, then I cloned S successfully


Answers:
author: Ben
body: Hey Pierre,

Repository Access keys can be used across multiple repositories to provide read-only access, these can consist of the same public SSH key per-repository or can be different depending on individual need. For your purposes I would recommend sharing access keys between projects to ensure that access is granted between projects.

The only time a conflict **should** occur is if there is already an existing account-level SSH key configured in Personal Settings \> SSH Keys - this cannot be used as a repository access key as it can't also be associated with an account:  
**<https://support.atlassian.com/bitbucket-cloud/docs/add-access-keys/>**

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud