youngmon/atlassian-qna huggingface dataset:
Issue with default region selection during deployment
Asked by azuredevops azuredevops:

Hi Team,

By default, it is taking the region of one environment as an example. we have environments such as Dev, Qa, Stage. However, when deploying, it is automaticallytaking the stage region for the Dev deployment. please find the below pipeline.

- step:  
name: Build and Push Docker Image to the DEV ECR  
image: atlassian/pipelines-awscli  
- pipe: atlassian/aws-ecr-push-image:2.2.0  
variables:  
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID_DEV  
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY_DEV  
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION_DEV

- step:  
name: Build and Push Docker Image to the STAGE ECR  
image: atlassian/pipelines-awscli  
- pipe: atlassian/aws-ecr-push-image:2.2.0  
variables:  
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID_STAGE  
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY_STAGE  
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION_STAGE

- step:  
name: Build and Push Docker Image to the QA ECR  
image: atlassian/pipelines-awscli  
- pipe: atlassian/aws-ecr-push-image:2.2.0  
variables:  
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID_QA  
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY_QA  
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION_QA


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

Are you talking about the value of the pipe variable AWS_DEFAULT_REGION? It is not clear what you mean by "taking the stage region for the Dev deployment".

I assume that one of the variables $AWS_DEFAULT_REGION_DEV, $AWS_DEFAULT_REGION_STAGE, or $AWS_DEFAULT_REGION_QA does not show the expected value in the pipe output?

If that is the case, please check whether you have Workspace, Repository, and Deployment variables with the same name. If you use the same names, then the order of overrides is Deployment \> Repository \> Workspace. This means that a Deployment variable will override a Repository variable with the same name, and a Repository variable will override a Workspace variable with the same name.

If you are facing a different problem, please share some additional details about the issue so I can better help you.  
It would also be helpful to know:

* the whole content of the yml file (you can sanitize any private/sensitive data prior to sharing) so that we can understand where each step belongs and how you are using deployment environments
* where you have defined the variables (are they workspace, repository, or deployment variables)

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Configure a windows runner to use a proxy
Asked by Gabdelgaziz Sayfutdinov:

Hi!  

I have read this article on how to configure a runner to use a proxy: <https://support.atlassian.com/bitbucket-cloud/docs/configure-a-runner-to-use-a-proxy/>

The article shows how to use a proxy on linux runners.

Is there a way to use a proxy with a windows runner?

Thx.


Answers:
author: Dannydevito
body: Yes, you can set up a proxy on a Windows runner. Just go to your network settings, enable the proxy option, and enter the server details provided by your network admin. That way, your Windows runner will route its traffic through the proxy server.

comments: author: Dannydevito
body: Also Check here please : <https://support.microsoft.com/en-us/windows/use-a-proxy-server-in-windows-03096c53-0554-4ffe-b6ab-8b1deee8dae1>[](https://www.roofersofarlington.com/)


author: Gabdelgaziz Sayfutdinov
body: Yes, I did that and the proxy works. But the Bitbucket windows runner does not operate behind a proxy.

In linux you can configure the runner to run behind a proxy as shown here: <https://support.atlassian.com/bitbucket-cloud/docs/configure-a-runner-to-use-a-proxy/>

I am looking for a way to do the same in a windows runner.


Tags: bitbucket-cloud

bitbucket-runners

cloud

self-hosted

windows
Pipeline error reading /root/.m2/repository/com/file.jar; zip file empty
Asked by Andrea Calderon:

I have a pipeline that downloads a JAR file from Bitbucket downloads. And save it in the.m2 directory. After that, I do a mvn clean install. At this moment, the JAR that I have in.m2 will be a dependency, but when they try to install it, the next error in the pipeline appears:

```
error reading /root/.m2/repository/com/lib.jar; zip file is empty
```

But if I validate the availability of this lib.jar, it's available. Could you please help me understand this error?

Thanks!


Answers:
author: Patrik S
body: Hey [@Andrea Calderon](/t5/user/viewprofilepage/user-id/5446942) ,

I would suggest debugging your pipeline locally with Docker following the instructions outlined in the following article :

* [Troubleshoot failed Bitbucket Pipelines locally with Docker](https://confluence.atlassian.com/bbkb/debug-failed-bitbucket-pipelines-locally-with-docker-1318882094.html)

Locally, you can try different commands and steps to troubleshoot the issue you are facing with the jar file, and once you find the correct set of commands that work locally, you can push the same change to bitbucket, and it should work on Pipelines as well.

Should you have any questions, feel free to ask.

Thank you, [@Andrea Calderon](/t5/user/viewprofilepage/user-id/5446942) !

Patrik S


Tags: bitbucket-cloud

cloud

download

maven

pipeline
Pipeline stuck on "Queued"
Asked by Tamsin:

One of our repos won't build. The pipeline just says "Queued" and there is no output in the log panel, just a spinner.

It built successfully 2 days ago and nothing has changed in the build config. I've tested another repo which is working fine. I've tried cancelling and rerunning the build, creating a fresh branch etc.

It's a front end project, the build step uses a cypress docker image, and the first line in the script is yarn install. No idea where to start debugging as there is no output at all! So any suggestions appreciated, thanks.


Answers:
author: Patrik S
body: Hello [@Tamsin](/t5/user/viewprofilepage/user-id/5181634) ,

thank you for reaching out to the Community!

There was a temporary instability in the platform where pipeline builds were getting queued for some time.

Our engineering team has identified the issue, and a fix has already been deployed, so the pipeline builds should be working successfully now.

Thank you, [@Tamsin](/t5/user/viewprofilepage/user-id/5181634) .

Patrik S


author: John Pilgrim
body: I'm having the same problem on almost every build


author: Mark
body: I am having the same issue today. My repo built just fine yesterday, but today it is stuck in "Queued" with no log output. I tried stopping and rerunning the pipeline, but it is the same. In fact, in the rerun I am not even sure of the status as no status shows for the first step of the pipeline, at least in the UI. Though there is no progress of any kind.

There was no change in build configuration since the last successful build.

Any information or help would be much appreciated. Thanks.

comments: author: Mark
body: This seems to be fixed now (no action on my part). Just left a pipeline in hanging state and it seemed to have resumed after a while.

I ran another build and seems to work fine.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Navigation Problem in Bitbucket Cloud: Unable to Access User Profiles from Commit Authors
Asked by Daimoussi, Bilal:

I'm facing an issue in Bitbucket Cloud where I'm unable to navigate from the commit author to their user profile. Despite checking user profile settings and permissions, the problem persists. Notably, there are no issues with Jira and Confluence. Attached are screenshots of Jira, Confluence, and Bitbucket for reference. Any guidance on resolving this matter would be greatly appreciated.

Jira:

![jira_profile.png](https://community.atlassian.com/t5/image/serverpage/image-id/318916iED010E5DE3D1D58B/image-dimensions/348x160?v=v2 "jira_profile.png")

Confluence:

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

Bitbucket Cloud:

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


Answers:
author: Patrik S
body: Hello [@Daimoussi, Bilal](/t5/user/viewprofilepage/user-id/5478114) and welcome to the Community!

It's indeed not currently possible to view a user's atlassian profile directly from Bitbucket Cloud by hovering the mouse over the user's avatar, as in the other products.

I went ahead and raised a feature request with our development team to include this functionality in Bitbucket as well :

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

We encourage you to add your vote there, to help our product management team to understand the interest. You also have the option to set yourself as a watcher in the feature ticket, so you get notified by email whenever there's any progress on its implementation.

Thank you, [@Daimoussi, Bilal](/t5/user/viewprofilepage/user-id/5478114) !

Patrik S

comments: author: Daimoussi, Bilal
body: Hello [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) ,

<br />

Thanks for addressing the issue and raising the feature request. I've voted for it and set myself as a watcher. Looking forward to seeing this feature added to Bitbucket Cloud!

Best,  
Bilal


Tags: bitbucket-cloud

cloud
Cannot push due to repository size is to big
Asked by Daniel Salim:

Hi Atlassian team, I wanted to push some changes to my project. Turns out i've been uploading duplicate file and i already fixed it, and then i need to push, but when i push i got an error to it,   
\> git push bitbucket master:master  
remote: Repository is over the size limit (4 GB) and will not accept further additions.  
remote:  
remote: Learn how to reduce your repository size: <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Rewind-history-to-undo-large-commits>.  
To <https://bitbucket.org/workspace-id/repo.git>  
! \[remote rejected\] master -\> master (pre-receive hook declined)  
error: failed to push some refs to '<https://bitbucket.org/workspace-id/repo.git>'  

How do i fix it?  


Answers:
author: Theodora Boudale
body: Hi Daniel and welcome to the community!

I ran a garbage collection on your repository and its size has been reduced to 583.8 MB, so you should be able to push. Please feel free to let me know if it's ok on your end now.

Since your workspace is on a paid billing plan, you can also create a ticket with the support team in the future if you ever need help again to ensure a faster response. You can create a ticket via <https://support.atlassian.com/contact/#/>; in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as a product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Just a heads up, I removed the repo details from the URL to protect your privacy.

Kind regards,  
Theodora


author: Nikola Perisic
body: Welcome to the community [@Daniel Salim](/t5/user/viewprofilepage/user-id/5463411)

Let me see if someone from Atlassian can answer this question. Usually Theodora does it, but maybe she is busy. I will tag atlassian on this question.

Reference: <https://community.atlassian.com/t5/Bitbucket-questions/Repository-size-not-decreasing/qaq-p/2528331>

comments: author: Daniel Salim
body: Thank you so much Perisic.


Tags: atlassian

bitbucket-cloud

cloud
Licence Academic/Community vs Standard vs Premium
Asked by Haymel:

We are a university and we have a community/academic license, with which we have limitations in the use of bitbucket, we would like to know if we bought the standard or premium licenses we will have a discount for being a university.


Answers:
author: Bert van Dijk _TMC_nl_
body: Hi Haymel,

Please use support.atlassian.com to get this question answered.

comments: author: Haymel
body: Thanks


Tags: bitbucket-cloud

cloud
After Import repository failed I cant access new repository
Asked by Novandi Kevin Pratama:

I am trying to use Import existing code to import my code from other repo, but failed.  
And after failing, a new repo is been created, but I can't access this repo (with admin permission), and its displays "We can't let you see this page".

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

Update : The repository has been successfully imported and updated


Answers:
author: Syahrul
body: Hey [@Novandi Kevin Pratama](/t5/user/viewprofilepage/user-id/5477358)

Welcome to the community!

Glad to hear that the issue has been resolved. If it happens again feel free to raise a new community questions to us.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud

import-error
My BitBucket account is inactive? (?We couldn?t log you in?)
Asked by Tom S?derlund:

Hi can you check BitBucket status for account *\<email removed\>*

<https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-login-Bitbucket-We-couldn-t-log-you-in/qaq-p/1896018>

Thanks

Tom.


Answers:
author: Patrik S
body: Hello [@Tom S?derlund](/t5/user/viewprofilepage/user-id/5477160) ,

welcome to the Community!

Checking internally I confirmed your account was dormant due to a long period of inactivity.

I went ahead and set it to active again, so you should be able to login as usual.

Thank you, [@Tom S?derlund](/t5/user/viewprofilepage/user-id/5477160) !

Patrik S


author: Nikola Perisic
body: Welcome to the community [@Tom S?derlund](/t5/user/viewprofilepage/user-id/5477160)

You are correct, this is mostly because your account wasn't been active for some time. I see that Theodora handles most of the Bitbucket question, so I will tag Atlassian to raise the visibility of this question.


author: Ste Wright
body: Hi [@Tom S?derlund](/t5/user/viewprofilepage/user-id/5477160)

This is a public forum, so its best to not post your email address :)

---

I'd contact Support about this one - you can try contacting them either...

* Via <https://support.atlassian.com/contact/#/> - or...
* Via <https://www.atlassian.com/company/contact/purchasing-licensing#/>
  * Select *Your Account \> Reactivate subscription*

Ste


Tags: atl-rvw

bitbucket-cloud

cloud
Repository has exceeded 4GB
Asked by Simon:

Hi,

our repository has exceeded the 4GB limit.

The support step "Rewind history to undo large commits" is already done for all branches and the large files are removed.  
However, the size is still 4GB.

Is a Garbage Collection somehow needed here?

Thank you in advance.


Answers:
author: Nikola Perisic
body: Welcome to the community [@Simon](/t5/user/viewprofilepage/user-id/5477056)

Solution is found here: <https://community.atlassian.com/t5/Bitbucket-questions/My-Repository-has-exceeded-4GB/qaq-p/2016699>

I will tag Atlassian here, so they can take a look at your issue, since they handle the repository commands when the limit has been exceeded.


author: Patrik S
body: Hello [@Simon](/t5/user/viewprofilepage/user-id/5477056) and welcome to the Community!

I was able to find one repository that you have access to where the size limit was above 4GB. I went ahead and triggered a GC on that repo, but the size didn't reduce much and is still above the limit.

This usually means there are still large files in the repo that have not yet been removed, so I would suggest that you follow the instructions outlined in [Removing large files](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Removing-large-files) and force-push the changes again to Bitbucket Cloud.

After the clean-up locally, you can check the local repo size using the following command:

```
git count-objects -vH
```

I've temporarily increased the repo size limit so you are able to push. Once the cleanup is completed and pushed to Bitbucket, you can let us know here and I can trigger a new GC for the repo.

Thank you, [@Simon](/t5/user/viewprofilepage/user-id/5477056) !

Patrik S


Tags: atl-rvw

atlassian

bitbucket-cloud

cloud
How to get a list of all empty repositories from Bitbucket
Asked by Alejandro Carretero Trejo:

Hi,

I would like to know if there is some DB query in PostgreSQL to get a list of all empty repositories from Bitbucket instance.

Another option for me will be to get a list of all repositories from Bitbucket instance that only contains README.md and .gitignore files, in other words, repositories that have no files or code at all inside them.

Thanks in advance.


Answers:
author: Neeraj Upadhyay
body: You can use the below query to find all empty repo's

select \* from bb_repo_size where total=0

The DB query provides a list of repositories with pre-calculated sizes saved in the DB table \`bb_repo_size\` table. It might be possible that the repo sie of a specific repo might not be present in the table, in that case, one simple method to prompt Bitbucket to update the size of these missing repositories is to remove the \`\<BITBUCKET_HOME\>/shared/config/upgrades/core-backfill-repo-size\` file and **restart** Bitbucket service. This action triggers the generation of sizes for repositories not already present in the database, ensuring they are updated as expected.  

More details in the Kb: <https://confluence.atlassian.com/display/BitbucketServerKB/How+to+find+the+size+of+a+repository+hosted+on+Bitbucket+Server+and+Datacenter>


Tags: api

bitbucket-data-center

data-center

postgres

query

repositories
multiple salesforce org deployment with single branch
Asked by omkar ma:

Please let me know the steps to deploy changes on multiple salesforce orgs with single branch. We are using unlocked package to deploy single package on multiple orgs.  

I have tried deployment steps.

Pipeline Script:-

image:  
pipelines:  
branches:  
dev:  
script:  
- apt update \&\& apt -y install jq  
# Install Salesforce CLI  
- wget <https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz>  
- mkdir -p \~/cli/sf  
- tar xJf sf-linux-x64.tar.xz -C \~/cli/sf --strip-components 1  
- export PATH=\~/cli/sf/bin:$PATH  
# Output CLI version and plug-in information  
- sfdx --version  
- sfdx plugins --core  
- sfdx force:auth:jwt:grant --clientid $SF_CONSUMER_KEY_PROD --jwtkeyfile /opt/atlassian/pipelines/agent/build/server.key --username $SF_USERNAME_PROD --setdefaultdevhubusername --setalias DevHub  
- sfdx force:org:list --all  
- sfdx force:auth:jwt:grant --clientid $SF_CONSUMER_KEY_DEV --jwtkeyfile /opt/atlassian/pipelines/agent/build/server.key --username $SF_USERNAME_DEV --setdefaultdevhubusername --setalias Dev2  
- sf package install --wait 10 --publish-wait 10 --package dreamhouse1@2.0.0-1 --installation-key test1234 --no-prompt --target-org Dev2

I have tried below script but not worked. I am not getting option to deploy different orgs.  
pipelines:  
branches:  
master:  
- step:  
\<\<: \*Build  
- step:  
name: Deployment to Dev2  
deployment: Dev2  
script:  
- sfdx force:auth:jwt:grant --clientid $SF_CONSUMER_KEY_DEV --jwtkeyfile /opt/atlassian/pipelines/agent/build/server.key --username $SF_USERNAME_DEV --setdefaultdevhubusername --setalias Dev2  
- sf org list --all  
- sf package install --wait 10 --publish-wait 10 --package dreamhouse3@3.0.0-1 --installation-key test1234 --no-prompt --target-org Dev2


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

If you need help with Salesforce CLI, I would suggest reaching out to Salesforce community here <https://trailhead.salesforce.com/trailblazer-community/feed> or to Salesforce support team.

We can help with questions and issues specific to Bitbucket Pipelines, but for third-party tools it's best to reach out to the support team or a forum specific to that tool.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-development

bitbucket-pipelines

cloud

deployment
I don't see production deployments from BitBucket to Jira
Asked by Nikola Kalfov:

Hi folks,

We have configured a pipeline in BitBucket. In the connected Jira in Deployments we do see all the deployments to the test environment. However, we don't see the deployments in the Production Environment. Could this be due to having something not configured in Jira, or it is due to the pipeline, and more specifically, overwriting a predefined step?

```
image: mcr.microsoft.com/dotnet/sdk:8.0

definitions:

steps:

 - step: &build-and-test

name: Build and Test

caches:

 - dotnetcore

script:

 - dotnet restore

 - dotnet build --no-restore --configuration Release

 - dotnet test --no-build --configuration Release --verbosity normal

 - step: &deploy

name: Deploy to UAT

deployment: Test

trigger: manual

script:

 - cd ~

 - apt-get update

 - apt-get install -y unzip

 - curl -sL https://aka.ms/InstallAzureCLIDeb | bash

 - wget https://github.com/Azure/azure-functions-core-tools/releases/download/4.0.5571/Azure.Functions.Cli.linux-x64.4.0.5571.zip

 - unzip Azure.Functions.Cli.*.zip -d azure-functions-cli

 - cd azure-functions-cli

 - chmod +x func

 - chmod +x gozip

 - export PATH=`pwd`:$PATH

 - cd /opt/atlassian/pipelines/agent/build/src/my-project

 - az login --service-principal -u $AZURE_APP_ID -p $AZURE_PASSWORD --tenant $AZURE_TENANT_ID

 - func azure functionapp publish $FUNCTION_NAME

pipelines:

branches:

main:

 - step: *build-and-test

 - step: 

<<: *deploy

name: Deploy to Production

deployment: Production

develop:

 - step: *build-and-test

 - step: *deploy

default:

 - step: *build-and-test
```


Answers:
author: Syahrul
body: Hey [@Nikola Kalfov](/t5/user/viewprofilepage/user-id/2237788)

Could you please provide more information about the missing production deployment? Is it missing from the deployment tab in Bitbucket or the Jira side? Additionally, it would be helpful if you could share a screenshot of the issue.

Thank you.  
Syahrul

comments: author: Nikola Kalfov
body: Hi, [@Syahrul](/t5/user/viewprofilepage/user-id/744536)

I see everything fine in BitBucket. I am not seeing it in Jira Deployments. Each day we had a deployment on Test, we also had a deployment on Prod. However, I am seeing only the test deployments in Jira Deployments:

![Screenshot 2024-04-17 105023.png](https://community.atlassian.com/t5/image/serverpage/image-id/318798i23F26541119DDECC/image-size/large?v=v2&px=999 "Screenshot 2024-04-17 105023.png")


author: Syahrul
body: Hey [@Nikola Kalfov](/t5/user/viewprofilepage/user-id/2237788)

This looks like an issue with Jira side and not Bitbucket. Can you raise a support ticket directly with the Jira team in our [Support portal](https://support.atlassian.com/contact/#/)?

Regards,  
Syahrul


author: Nikola Kalfov
body: Will do, thank you!


Tags: bitbucket-cloud

cloud

jira

jira-cloud
Pipelines are being failed with error bash: /usr/bin/docker: Argument list too long
Asked by Gopi Tholeti:

Hi team,  

Since yesterday randomly our pipelines were being failed.  

The error message is:  
**bash: /usr/bin/docker: Argument list too long** Can someone help us to figure this out?  

Thanks


Answers:
author: Mark C
body: Hi [@Gopi Tholeti](/t5/user/viewprofilepage/user-id/4753907),

Thank you for reaching out to the community.

Would it be possible for you to confirm if you're experiencing the same when you try to run your [build locally in a Docker container](https://confluence.atlassian.com/bbkb/debug-pipelines-locally-with-docker-1167698072.html)?

Regards,  
Mark C


Tags: bitbucket-cloud

cloud