youngmon/atlassian-qna huggingface dataset:
Cannot Access Website
Asked by Jonathan Lim Sing Heng:

1. I can access other website such as GitLab, Facebook, etc..

2. I Cannot access bitbucket.

3. I checked online to see whether this link is down "<https://bitbucket.org/product>", the result is up.

-https://[www.isitdownrightnow.com/bitbucket.org.html](http://www.isitdownrightnow.com/bitbucket.org.html)

-https://bitbucket.status.atlassian.com/

-https://downdetector.com/status/bitbucket/

3. I tried to restart my ips / flushing my dns / changing my ipv4 and ipv6 to google dns following this YouTube video <https://www.youtube.com/watch?v=10D1IJQ2qV0>

4. I still cannot access bitbucket.


Answers:
author: Theodora Boudale
body: Hi [@Jonathan Lim Sing Heng](/t5/user/viewprofilepage/user-id/5033360),

We've had some reports from users seeing an error that includes DNS_PROBE_FINISHED_NXDOMAIN and we are looking into it.

If you see the same in your error message, I would suggest

* Try entering the following in the hosts file of your machine and then check if Bitbucket website is loading  

  104.192.141.1 bitbucket.org  

  Please note that in case it works, it should be a temporary workaround as Bitbucket IPs could change at any time.  

* Reach out to your ISP and ask them if there is an issue with routing from their network to Bitbucket

<br />

If you see a different error, please let us know the exact error message you are seeing as Nic asked.

Kind regards,  
Theodora

comments: author: Jonathan Lim Sing Heng
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

Following this link: <https://www.ampercent.com/some-websites-never-open-on-your-computer/9776/>

I am able to access my known host file and most of it is 0.0.0.0 bitbucket.org and etc, but some of if is 0.0URL,

After removing all the existing url links (including the normal and abnormal ones), i am able to access to bitbucket website again, Thanks for the support!!


author: Theodora Boudale
body: That's good to hear Jonathan, thank you for the update!


author: Nic Brough -Adaptavist-
body: What errors are the browsers giving you?


author: Jonathan Lim Sing Heng
body: 1. I tried accessing from other browsers, Firefox \& Edge it doesn't work.

2. I have also tried Incognito Mode but it doesn't work.

3. I tried on my phone using safari it is working.


Tags: bitbucket-cloud

cloud
How to move a repo from one Bitbucket cloud organization to another?
Asked by Ray Depew:

I have a couple of different Bitbucket Cloud organizations: one that I used when we were first setting up our cloud infrastructure two years ago; and one that we use now, in production. We can call them **bitbucket.org/getting-started** and**bitbucket.org/for-real**

I have a repository in **bitbucket.org/getting-started** that I want to move to **bitbucket.org/for-real** , so that I can discontinue using **bitbucket.org/getting-started**. What's the best way to do that?

(Note that I will need to keep the version in **bitbucket.org/getting-started** for a few months, for LTS reasons. So maybe "copy" is a better word than "move".)


Answers:
author: Syahrul
body: Hey [@Ray Depew](/t5/user/viewprofilepage/user-id/4321549)

G'day!

I believe the best approach would be to import the repository using the [importer.](https://support.atlassian.com/bitbucket-cloud/docs/import-a-repository/)

This will basically do a clone of your repository in another Workspace. However, do note that it will only transfer your repository and not the metadata such as PR, settings, and pipeline.

Cheers,  
Syahrul

comments: author: Ray Depew
body: Hello Syahrul,

Thank you for the quick reply! Unfortunately, the import had an issue of its own. Here is the log:

* 15:38:04 git import for: [https://bitbucket.org/getting-started/r](https://bitbucket.org/autosoln_tonny/acm_escrow)epo-name
* 15:38:04 Cloning [https://bitbucket.org/getting-started/repo-name](https://bitbucket.org/autosoln_tonny/acm_escrow)...
* 15:38:05 Remote Git clone failed: \<class 'bitbucket.apps.asyncx.tasks.RepoImportTask.ImportException'\>: Command failed. Return value: 12

I tried it first with "Requires authorization" disabled. Then I tried it with "Requires authorization" enabled, and my username and password entered, but it still failed.

We do have 2FA enabled on our corporate accounts, and I believe we have SSO enabled as well. Might those be getting in the way somehow?


author: Syahrul
body: Hey [@Ray Depew](/t5/user/viewprofilepage/user-id/4321549)

Noted.

I believe you need to use [App Passwords](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) with **Require authorization** option enabled since we no longer allow users to use Account passwords for git and HTTPS.

Let me know if that works.

Cheers,  
Syahrul


author: Ray Depew
body: App passwords! I should have remembered that! Thanks for the reminder. I entered an app password and it worked immediately.

Thank you for your help.

Regards  
Ray


Tags: bitbucket-cloud

cloud

copy
how to resolve request canceled (Client.Timeout exceeded while awaiting headers)
Asked by Elizabeth Cornell:

I continue to get this error when trying to upload new code to my website: request canceled (Client.Timeout exceeded while awaiting headers)

It has only been happening recently, but I don't know how to fix it. Desperately need a solution, as we have no other way of updating our website. Thanks!


Answers:
author: Syahrul
body: Hey [@Elizabeth Cornell](/t5/user/viewprofilepage/user-id/5033225)

Welcome to the community.

May I know where you received the error message? Is it on the Bitbucket UI or terminal?

Nevertheless, the error messages indicate that the connection timeout when waiting for headers respond, so have you tried accessing it from an external network with/without VPN or mobile Hotspot to verify that it's not a local connection issue?

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Build Minutes - are they counted monthly or yearly
Asked by Einar Coutin:

I have two conflicting descriptions. Which one is true? Why do they contradict and what can be done about it?

Everywhere in the documentation for our Business plan Build Minutes are described as belonging to a per month cycle:  

* <https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/#BitbucketCloudplandetails-Plandetails>
* <https://bitbucket.org/blog/everything-you-need-to-know-about-build-minutes-in-bitbucket-pipelines>

Also in these forums minute cycles are described as monthly:

* <https://community.atlassian.com/t5/Bitbucket-questions/Why-do-self-hosted-pipeline-runners-count-towards-minute-usage/qaq-p/1682877>
* [Solved: Is there a BitBucket Pipelines used minutes distri... (atlassian.com)](https://community.atlassian.com/t5/Bitbucket-questions/Is-there-a-BitBucket-Pipelines-used-minutes-distribution-report/qaq-p/751049)

But our Business account describes that our minutes cycle within a year:![Bitbucket-Pipelines-Minutes-Cycle.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/216422i3B659B59C628A82E/image-size/large?v=v2&px=999 "Bitbucket-Pipelines-Minutes-Cycle.PNG")  
![Bitbucket-Billing-Plan-Minutes-Cycle.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/216421iE604F873C2447A60/image-size/large?v=v2&px=999 "Bitbucket-Billing-Plan-Minutes-Cycle.PNG")


Answers:
author: Syahrul
body: Hi Einar,

G'day.

Currently, we are not enforcing any limitations for customers that subscribe to the **Bitbucket Annual Premium plan** . We do not enforce any restriction for **Build minutes** and **Git LFS** as mentioned on our page [here](https://www.atlassian.com/licensing/bitbucket-cloud-premium-annual#what-happens-if-i-exceed-my-build-minutes-or-git-lfs-limit) :
> Build minute and Git LFS limits are not currently enforced. If your Bitbucket account exceeds either of these limits, we won't cancel your subscriptions or remove any data, as long as the usage is in accordance with our [acceptable use policy.](https://www.atlassian.com/legal/acceptable-use-policy)
>
> Keep in mind we're planning to enforce limits soon. We'll let you know ahead of time when this happens.

This is why your billing shows a yearly cycle because you are on an annual plan and the build minutes did not get reset monthly because no limitation is currently enforced so the build minutes will keep accumulating.

With that said, the pages and community answers you found are specifically for the customer subscribing to the **Standard** and **Premium** monthly plan and do not apply to the **Annual Premium plan.**

I hope this helps.

Cheers,  
Syahrul


author: Hana Ku?erov?
body: Hi [@Einar Coutin](/t5/user/viewprofilepage/user-id/4823338) ,

I believe you should have 3500 build minutes each month.

I've marked this question for Atlassian to review this as it seems to me like a bug in a view of your account.

comments: author: Einar Coutin
body: Thank you [@Hana Ku?erov?](/t5/user/viewprofilepage/user-id/1226304) Appreciate your help!!


Tags: atl-rvw

bitbucket-cloud

cloud
Remove tag
Asked by Jordan Leroy:

Hi,

I would like to know, how remove a tag added by bitbucket interface. I know from my local repository, but not from bitbucket interface.

My case is :

I have to add a tag from bitbucket interface "1.1" and I have add a new tag from my local repo "v1.1". Now, I have two tags on my commit "1.1" and "v1.1".

Thank you for your support.

![Capture d?e?cran 2022-09-16 a? 15.42.42.png](/t5/image/serverpage/image-id/216397i0B74E589F835254D/image-size/large?v=v2&px=999 "Capture d?e?cran 2022-09-16 a? 15.42.42.png")


Answers:
author: Jordan Leroy
body: Oups, I have post my question too quickly.

The answer :

    git push --delete origin tagname

??


Tags: bitbucket-cloud

cloud
Jenkins JOB ID in pipe: atlassian/jenkins-job-trigger:0.1.2
Asked by Sarath Nagarajan:

Hello Team,

We are integrating Bitbucket with Jenkins and using the pipe.

Is there a way to pull the Job ID once the execution is completed so that i can construct the URL and put it in Bitbucket CI console output.

pipe: atlassian/jenkins-job-trigger:0.1.2

variables:

JENKINS_URL: $JENKINS_URL

JENKINS_USER: '$JENKINS_USERNAME'

JENKINS_TOKEN: $JENKINS_USER_TOKEN

JOB_NAME: 'job/$MY_JOB_NAME/job/main'

WAIT: 'true'

WAIT_MAX_TIME: 500

Debug: 'true'

Here once everything runs i am getting the Job {jobID} is triggered. But i need to get this JOB ID in a separate variable so that i can construct the URL and echo that in BB CI


Answers:
author: Igor Stoyanov
body: [@Sarath Nagarajan](/t5/user/viewprofilepage/user-id/4640457) hi. First of all, please use the latest version of the pipe.

We have no clarification of Job ID in our pipe. We use build number of the job, is this what you need to construct your url?

<br />

Answering to your question, you could create your custom pipe based on jenkins-job-trigger, where you could fetch [this url](https://bitbucket.org/atlassian/jenkins-job-trigger/src/561a6ac1b0359c24a01a75b72188b8697c4b53e0/pipe/pipe.py#lines-65) into some file as artifact, and after this parse artifact for your needed data.   

Will this cover your case?

[Guide of how to create your custom pipe](https://bitbucket.org/blog/build-flexible-ci-cd-pipelines-with-custom-pipes)

Regards, Igor


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

jenkins
Delete User from Product Bitbucket.org in Access
Asked by Normann P_ Nielsen _Netic_:

I have 2 users in Atlassian Access that has "Bitbucket.org"

They dont use it, and claim they never has.

Nomatter what is true, It seem I cant remove them from BB within Atlassian Access, and I does not seem to have anyting in Bitbucket.org for Admin purposes (we dont use Bitbucket.org)

![Screenshot 2022-09-16 at 09.40.36.png](/t5/image/serverpage/image-id/216340i0035F5A86CE24C1A/image-size/large?v=v2&px=999 "Screenshot 2022-09-16 at 09.40.36.png")


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

Bitbucket is appearing on their Product Access simply because they have Bitbucket accounts, but they won't be charged for it if they don't have a Bitbucket paid license.

However, if you still would like to remove this from their Product Access, we from support can remove these Bitbucket accounts if they are empty, I just need your approval as you are one of the Org admins of this organization. In this case, we would need to create an internal ticket, so you can share their emails with us there.

I hope this clarifies the situation, but please let me know if you have any questions.

Kind regards,  
Caroline

comments: author: Normann P_ Nielsen _Netic_
body: Thanks,

As You can see from the screenshot - this count towards billing.

Atlassian Support has removed the users for me.


Tags: bitbucket-cloud

cloud
How can you deploy a bitbucket-plugin (already built as jar) to the server via terminal?
Asked by fabian_imhof:

Hi There

We run a Bitbucket Server on version 7.21 and have recently developed a Plugin for it. Since this plugin finally reached a stable Version we wanted to integrate it into our cd/ci pipeline (bamboo).

We can build the plugin via bamboo build plan alright, but we are facing an issue when trying to deploy it.

atlas-sdk's "atlas-install-plugin" does not work for us (afaik) because we are not in the project space, but only have the built jar itself.

Is there any way to copy the jar to a specific location on the bitbucket server and it auto-deploys or something similar?


Answers:
author: Michael R?egg _Mibex Software_
body: Hi and welcome to the Atlassian Community!

You can install an app into any Atlassian product over the UPM endpoint */rest/plugins/1.0*.

It is described [in this Wiki page](https://confluence.atlassian.com/confkb/installing-uninstalling-upgrading-and-downgrading-marketplace-apps-on-confluence-using-rest-api-1005343959.html) for Confluence, but it works the same way for Bitbucket.

Hope that helps.

Best regards, Michael

comments: author: fabian_imhof
body: Thanks for your rapid answer. I will test this out asap.


Tags: app

bamboo

bitbucket-server

sdk

server
can you tell me how much memory is being used by the npm run build step in this pipeline?
Asked by Vishal Singh:

My pipeline has been failing due to memory limit issues for the build step. but after this setting is it working fine. I think the memory being used for docker is 2048 MB and for the Node js container is 6144 I just want to confirm this.  
image: node:16.14.0  
options:  
docker: true  
size : 2x

pipelines:  
branches:  
master:  
- step:  
name : "building the code"  
services:  
- docker  
caches:  
- node  
- docker  
script :  
- npm i  
- CI=false npm run build:production \&\& tar czf build.tar.gz build  
- pipe: atlassian/scp-deploy:1.2.1  
variables:  
USER:  
SERVER:  
LOCAL_PATH:  
REMOTE_PATH:  
SSH_KEY:  
DEBUG: 'true'  
definitions:  
services:  
docker:  
memory: 1024

*** ** * ** ***


Answers:
author: Ben
body: Hey Vishal,

To calculate the memory being used on a per-step basis, you can add the following to the beginning of the step:

```
- while true; do echo "Memory usage in megabytes:" && echo $((`cat /sys/fs/cgroup/memory/memory.memsw.usage_in_bytes | awk '{print $1}'`/1048576)) && sleep 0.1; done &
```

Once this has been added, you can check the build log and determine the amount of memory used - please see our article below for further troubleshooting steps related to pipelines (including the above specified):  
<https://confluence.atlassian.com/bbkb/troubleshooting-bitbucket-pipelines-1141505226.html>

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Vishal Singh
body: Hi Ben, sorry I think I have put my question in the wrong way. I just wanted to ask when the npm run command executes for the "building the code" step how much maximum memory can be allocated to it?


author: Ben
body: Hi Vishal,

The command provided is used to debug the memory that the build step is using so you can determine how much resources are needed.

You are correct in stating that by default the memory is 2048MB maximum, using the 2x flag as you have set increases this to 4096MB, I should have clarified this in my answer - my apologies.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
DOWNLOAD RIGHTS RESTRICTION FOR USERS!
Asked by Vinayakam R K:

for some of our users we need to avoid the download option.in the read option they can download the source codes, we have to restrict that please help me out !


Answers:
author: Theodora Boudale
body: Hi [@Vinayakam R K](/t5/user/viewprofilepage/user-id/5032608),

I'm afraid that it is not possible to restrict this for users that have access to a repo.

Users with at least read access can always clone or download the source code of a repository.

Please keep in mind that even if such a feature was available, users could always take a screenshot or a photo of their screen while viewing files.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Access a private pipe in ECR with OIDC?
Asked by Georg Duemlein:

I would like to host pipes in a private ECR repository.

I understand that I can access the images like so:

```
pipe: docker://my-ecr-repo/image:versionaws:  access-key: $AWS_ACCESS_KEY_ID  secret-key: $AWS_SECRET_ACCESS_KEY
```

I am wondering if there is an undocumented way to use OIDC instead.


Answers:
author: Igor Stoyanov
body: [@Georg Duemlein](/t5/user/viewprofilepage/user-id/4716576) hi.   

Pipes supports only public docker images.  

For OIDC support check this pipe for implementation: [aws-ecr-push-image](https://bitbucket.org/atlassian/aws-ecr-push-image/src/master/)  

Regards, Igor

comments: author: Georg Duemlein
body: Is it correct that the \`aws-ecr-push-image\` example refers to using OIDC inside the pipe?

I figured I can use OIDC to pull a private ECR as a pipe like so:

```
- step:
    name: 'PipeThing'
    oidc: true
    script:
      - export AWS_ROLE_ARN=arn:aws:iam::123345:role/bitbucket-pipeline-role
      - export AWS_WEB_IDENTITY_TOKEN_FILE=$(pwd)/web-identity-token
      - echo $BITBUCKET_STEP_OIDC_TOKEN > $(pwd)/web-identity-token
      - apt-get update && apt-get install -y awscli
      - aws --version
      - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 1234.dkr.ecr.us-somehwere-5.amazonaws.com
      - pipe: docker:/my/image:lastest
```

Would it be possible to get a feature request for pipes to support OIDC for private pipes?

Though I am not yet convinced I understand fully the difference between a pipe and an image for a step.


Tags: aws

bitbucket-cloud

cloud
Automation for Jira issue transitions on pull request merge using Bitbucket DC?
Asked by Leelina Dagim:

Hi,

Is there a similar Jira automation rule to transition issues during a PR merge as the one in the link below, but using Bitbucket Data Center instead of GitLab?

<https://www.atlassian.com/devops/automation-tutorials/jira-automation-rule-on-pullrequest-merge>


Answers:
author: Mikael Sandberg
body: Hi [@Leelina Dagim](/t5/user/viewprofilepage/user-id/5032440),

Welcome to Atlassian Community!

Yes, there is an option on Data Center to do this using [workflow triggers](https://confluence.atlassian.com/adminjiraserver/configuring-workflow-triggers-938847513.html). Workflow triggers allows you to transition an issue when the pull request is merged in Bitbucket, and there also other triggers that can be used based on Bitbucket events.

comments: author: Mikael Sandberg
body: If you want to use automation my guess it that that is possible too, you just have to add [automation](https://marketplace.atlassian.com/apps/1215460/automation-for-jira?hosting=datacenter&tab=overview) to your instance.


author: Leelina Dagim
body: Thanks for your response, Mikael! Is there away for Bitbucket to notify Jira when pull requests are merged and include the build number in the Jira ticket?


author: Mikael Sandberg
body: Yes, the development information does show build status according to this [KB](https://support.atlassian.com/jira-software-cloud/docs/view-development-information-for-an-issue/).


Tags: bitbucket-server

jira-software

server
No commands or pipes defined for the step at [pipelines > branches > feature/ION-565-dotnet-autodepl
Asked by Abu Bakir Uralov:

image: atlassian/default-image:1.363

definitions:  
branches:  
feature/ION-565-dotnet-autodeploy:  
- step: \&dotnet-framework  
name: Build dotnet  
runs-on:  
- self.hosted  
- windows  
clone:  
enabled: true  
script:  
- msbuild modules/test.sln  
- Compress-Archive \* app.zip  
artifacts:  
- app.zip

- step: \&upload-to-s3  
name: Upload to S3  
services:  
- docker  
script:  
- pipe: atlassian/aws-code-deploy:0.2.10  
variables:  
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID  
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY  
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION  
COMMAND: 'upload'  
APPLICATION_NAME: $APPLICATION_NAME  
ZIP_FILE: 'app.zip'  

pipelines:  
branches:  
feature/ION-565-dotnet-autodeploy:  
- step:  
\<\<: \*dotnet-framework  
name: Build dotnet for Sandbox  
deployment: sandbox  
trigger: automatic  
- step:  
\<\<: \*upload-to-s3  
name: Upload to S3 for Sandbox  
trigger: automatic

can anyone help me with my pipeline. I am just learning butbucket pipeline and I am using windows runner. please share your knowledge


Answers:
author: Igor Stoyanov
body: [@Abu Bakir Uralov](/t5/user/viewprofilepage/user-id/5032404) hi. Look at the example below of how to use anchors:  

```
image:  name: atlassian/default-image:3test: &test  parallel:    - step:        name: Build and Test        image: python:3.7        script:          -         services:        - docker    - step:        name: Lint the Dockerfile        image: hadolint/hadolint:latest-debian        script:          - hadolint Dockerfilepush: &push  step:    name: Push and Tag    image: python:3.7    script:      - pipe: atlassian/bitbucket-pipe-release:5.0.1    services:      - dockerpipelines:  default:  - <<: *test  branches:    master:    - <<: *test    - <<: *push
```

Or you can check this page: [yaml anchors.](https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/)

Regards, Igor

comments: author: Abu Bakir Uralov
body: Thank you Igor. I was working on runner for windows. Do you have any idea about bitbucket pipeline runner?


author: Abu Bakir Uralov
body: [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492) in my pipeline I should deploy dotnet framework with msbuild command


author: Igor Stoyanov
body: [@Abu Bakir Uralov](/t5/user/viewprofilepage/user-id/5032404) hi. You can check this articles for windows runners:  
[blog-windows-runners](https://bitbucket.org/blog/windows-runners) , [set-up-runners-for-windows](https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/) .  

Regards, Igor.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Does SourceTree run on MS Windows Server?
Asked by CPCSSN:

When I download **SourceTreeSetup-2.3.1.0.exe** and "Run As Administrator" nothing happens!

I'm running Windows Server 2008.

Have others installed and used this tool under any version of **Windows Server**? Atlassian documentation is unclear on the matter. It just refers to "Windows"..

TIA.


Answers:
author: bgannin
body: The current version of Sourcetree is not compatible with Windows Server 2008 (Vista). You can find older builds in our [Downloads Archive](https://www.sourcetreeapp.com/download-archives) and hopefully one of those will work better.

Cheers,

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: CPCSSN
body: Thanks, Brian, that's helpful. I'll have a look at older versions.

Is it Atlassian's intent to again make a SourceTree that works with MS Windows Server (specifically 2016)?

Cheers, Ken


Tags: server