youngmon/atlassian-qna huggingface dataset:
ECR Images deployed to Test env with proper tagging, then same image deployed to Prod
Asked by awscarla abanes:

I have a current ECR container image deployed to test with tag v1.0.1. How do I deploy this same image with the same tag to production via AWS code deploy? I noticed that when deploying to production, a new image is always created. I need the same image from test env to be deployed to prod env with same tag. How can I accomplish this with blue-green deployment on AWS code deploy?

Thanks in advance. Newbie devops guy here so apologies if the question is sooo basic.


Answers:
author: Igor Stoyanov
body: [@awscarla abanes](/t5/user/viewprofilepage/user-id/5007929) hi. Thanks for your question. Try to read [this article.](https://docs.aws.amazon.com/AmazonECR/latest/userguide/ECR_on_ECS.html)

As i understand you have image in Elastic Container Registry (ECR).   
Also you have In your Elastic Container Service two clusters Test and Production.  
You already used your image which is placed in ECR in your Test cluster on ECS via updating the task-definition.  
All you need to do is provide the same image in Production cluster task-definition file.  

Also you can take a look at this [aws-ecs-deploy pipe](https://bitbucket.org/atlassian/aws-ecs-deploy/src/master/) of how to update task-definition.  

Regards, Igor


author: Carrie Stowe
body: I have an ongoing ECR holder picture conveyed to test with tag v1.0.1. How would I convey this equivalent picture with a similar tag to creation by means of AWS code send? I saw that while sending to creation, another picture is constantly made. I want a similar picture from test env to be conveyed to goad env with same tag. How might I achieve this with blue-green organization on AWS code convey[?](https://whatispuleather.com/)

comments: author: Nic Brough -Adaptavist-
body: Have you tried asking on an AWS code send forum?


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

This probably isn't a Bitbucket problem, it will be doing what it is told to. You'll need to look at the scripts or programmes that you are using to do the deployment - what are they doing differently based on the selection of environment?


Tags: aws

aws-codedeploy

bitbucket-cloud

cloud
How can I DELETE or RESTORE any worked ne on that bitbulk i choose? I want they get dissapear.
Asked by ADMIN:

![5676fbeb-86b9-48c5-9891-87a0dccb8122.jpg](/t5/image/serverpage/image-id/210947iC494565BE665F4AF/image-size/large?v=v2&px=999 "5676fbeb-86b9-48c5-9891-87a0dccb8122.jpg")![5c51b1d2-5ed5-4ae4-b5f4-def63ef102fc.jfif](/t5/image/serverpage/image-id/210945iE39E956E1D307DAC/image-size/small?v=v2&px=200 "5c51b1d2-5ed5-4ae4-b5f4-def63ef102fc.jfif")

link: <https://bitbucket.org/dashboard/overview>

delete or remove every thing in thins picture, that i worked on, resent repository, just get them disappeared or delete or reset.


Answers:
author: Nic Brough -Adaptavist-
body: I'm sorry, but your question makes no sense. Are you asking why things have disappeared or are you trying to delete things? (If it's the latter, have you tried going into the repository and clicking "delete"?)


Tags: bitbucket-cloud

cloud
How to reactivate a User Account
Asked by Sergio Hernandez:

Hi, I have been away from bitbucket no more than a year. Then today I tried to update some repositories I need to work on, and got this big sorprise.

![image.png](/t5/image/serverpage/image-id/210961i3E02D7EBC59D33C7/image-size/large?v=v2&px=999 "image.png")

But based on that message, I should get an email, and I did not. So I have no idea of how to re-activate my account.

Using a different account I can get in and see my account is there and has permissions to all repositories. But I dont know what else to do.

![image.png](/t5/image/serverpage/image-id/210962i4DBC8A6FE4E904B1/image-size/large?v=v2&px=999 "image.png")

Does anyone can help with this ?

Thank you so much for your time.


Answers:
author: Syahrul
body: Hello, [@Sergio Hernandez](/t5/user/viewprofilepage/user-id/5007812)

Welcome to the community.

I can see from our end that the email has been sent out to the affected user accordingly.

I suspect the email may have been redirected in your mailbox to the Spam/Other folder so I suggest starting looking into that.

If you still can't locate the email, try searching your email using this sender email "@am.atlassian.com"

Hope this helps.

Cheers,  
Syahrul

comments: author: Sergio Hernandez
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536), thank you so much for your prompt answer.

Is there any possibility that Atlassian sends that email again? I usually delete all spam emails (I just don't like them), so probably I did it including that one.

Is there any other way to reactivate that account ?

Best regards,

Sergio.


author: Syahrul
body: Hi [@Sergio Hernandez](/t5/user/viewprofilepage/user-id/5007812) ,

I believe you can trigger that again by logging in at <https://id.atlassian.com/login/>

Let me know how it goes.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Why is there a blank cell (`td`) for each row (`tr`) in the commit list?
Asked by admpsktt-codeface:

There are 4 headings on the commit list of each repository -- *Author* , *Commit* , *Message* and *Date*.

I'd like these 4 headings to use the full width of the screen but there seems to be a blank cell in each table body (\`tbody\`) row (\`tr\`) that's making the table narrower than it needs to be.

Is there a setting we need to disable for each repo/on an account-wide basis that can solve this problem or do I need to report this issue to Atlassian?

Edit: a good example is shown [in a screenshot in another Bitbucket question](https://community.atlassian.com/t5/image/serverpage/image-id/192172i5F738022855C691E/image-size/large?v=v2&px=999). It's clear in this screenshot that the commit list is not using the full width of the screen.


Answers:
author: Syahrul
body: Hey [@admpsktt-codeface](/t5/user/viewprofilepage/user-id/2230296)

G'day.

I believe you are affected by the following bug where the UI did not align correctly if there's no Build column:

* [The commits page table is not aligned if there is no Builds column](https://jira.atlassian.com/browse/BCLOUD-20528)

It's currently in a long-term backlog, and a couple of workarounds are listed below. Please use one of the options below to see all the commit messages or at least more of them:

1. Enable the Pipeline in the repository. Once the Pipeline is enabled, there's the "Build" column, and the commits page UI will be aligned without excess spaces
2. Mouse over the commit message in the UI, and the tooltip will show more number of characters of the commit message
3. Click on the commit link, which will open a new UI with the commit details. This UI will give the entire commit message for the commit
4. Zoom Out in the browser, and it will display more number of characters of the commit message in the UI

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
How can I clone a repository without appearing my username and password in the URL?
Asked by yosser_mahfoudh:

*How can I clone a repository without appearing my username and password in the URL?*


Answers:
author: Robert Wen_ReleaseTEAM_
body: What you want to do is set up an SSH key on your local machine, copy the public key to your Personal Settings on Bitbucket Cloud, and clone using SSH.

Instructions for setting this up are here: <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>


Tags: bitbucket-cloud

cloud
Bit Bucket 5.13 upgrade
Asked by Eduardo Castro:

Good morning/afternoon,

I'm writing to ask about upgrading Bit Bucket version 5.13. Can I jump straight forward to the 7.2 long term following the regular step to make the upgrade or I'll need to upgrade to an early 6X version first?

Thanks


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@Eduardo Castro](/t5/user/viewprofilepage/user-id/4995477) . Welcome to the Atlassian community!

Looks like you can upgrade straight to 7.2 without going to 6 first.

Most recent LTS version for Bitbucket is 7.21. Are you sure you don't want to upgrade to that? Here's the upgrade guide for that version.

<https://confluence.atlassian.com/bitbucketserver0721/bitbucket-server-upgrade-guide-1115666806.html>

comments: author: Eduardo Castro
body: Thanks a lot for the help! I'll go to upgrade to 7.21.


author: Eduardo Castro
body: Hey [@Robert Wen_ReleaseTEAM_](/t5/user/viewprofilepage/user-id/3970316) by the way, forgot to ask before. I finished the upgrade successfully, do I need or can erase all the old stuff?


author: Robert Wen_ReleaseTEAM_
body: If by "old stuff" you mean the 5.13 Bitbucket installation directory, then yes.

Just make sure you don't delete the Bitbucket Home directory, since that has all the data.


author: Eduardo Castro
body: Hi buddy! [@Robert Wen_ReleaseTEAM_](/t5/user/viewprofilepage/user-id/3970316)

I think you already know about the August security advisories right?

Right now I finished the upgrade to 7.21.3 but now the security advisories for critical vulnerability have a fix in the 7.21.3 (lucky me huh?! haha)... My question is, to patch the 7.21.3 to 7.21.4 that have the vulnerability fix, do I need to make a complete installation of the 7.21.4 or there is a simple script to fix 7.21.3?

Thanks


author: Robert Wen_ReleaseTEAM_
body: I've always assumed any upgrade is going to be the former, where you set up a new installation directory for the new version (7.21.4 in this case).


author: Eduardo Castro
body: I'm having this issue updating to the fixed version:

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/212875i84D488938409BA43/image-size/large?v=v2&px=999 "Capture.PNG")


author: Robert Wen_ReleaseTEAM_
body: So this may seem like a silly question, but what is your BITBUCKET_HOME set to?


Tags: bitbucket-server

server
Cannot deploy to Google Cloud App Engine
Asked by Jens Henrik Hosbond:

I'm trying to setup the pipeline to automatically deploy a nodejs application to Google App Engine. I've set the GCP_KEY_FILE_DEV variable in the repository \> Deployment \> Environment "Development". The variable contains a base64 encoding of the service account file needed to authenticate. But, I keep getting the same error. See screenshot. Any ideas? Thanks.

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


Answers:
author: Igor Stoyanov
body: [@Jens Henrik Hosbond](/t5/user/viewprofilepage/user-id/5007016) hi.Thanks for your question.  

Looks like the problem relates to base64 encoding.  
Try to test your encoded variable to check access to Google Cloud App Engine in console.  

Examples of how to encode:  

**Linux**  
`1``$ base64 -w 0 < my_ssh_key`

**Mac OS X**  
`1``$ base64 < my_ssh_key`  

Regards, Igor.

comments: author: Jens Henrik Hosbond
body: Hi Igor

Thank you for your reply. I've tested and validated the base64 encoding. But, it still produces the same error. I've re-checked the permissions on the service account key file and that should be ok.

Any other ideas?


author: Igor Stoyanov
body: So, for tests you sent request from your console with your base64 encoded file and without using pipe and you received ok response?   
Or you received an error even when trying to connect to Google Cloud App Engine from your console?


author: Igor Stoyanov
body: Seems i misunderstood you. I thought problem related to pipe.  
Did you use this pipe: <https://bitbucket.org/atlassian/google-app-engine-deploy/src/master/> ?  
If not maybe you should try?


author: Igor Stoyanov
body: And for your case i think you should do something like this in your pipeline:  

```
echo $GCP_KEY_FILE_DEV | base64 -d > ~/.client-secret.json

gcloud auth activate-service-account --key-file ~/.client-secret.json
```


Tags: bitbucket-cloud

cloud

google
How to enable ?branch deletion on merge? for Bitbucket projects via REST API
Asked by Priscille Gwet:

How to enable "branch deletion on merge" for Bitbucket projects via REST API?

![Screen Shot 2022-08-11 at 9.15.39 PM.png](/t5/image/serverpage/image-id/210753i21B02BA17EFC6CC2/image-size/large?v=v2&px=999 "Screen Shot 2022-08-11 at 9.15.39 PM.png")


Answers:
author: Priscille Gwet
body: I found the answer: {#toc-hId--526162159}
-----------------------------------------

Bitbucket Server 7.15 {#toc-hId-1961350674}
-------------------------------------------

### Branch deletion on merge {#toc-hId--1643055148}

New Java and REST API methods have been added to configure `Branch deletion on merge` for Project and Repository.

`DeleteAfterMergeConfigurationService.deleteConfiguration(scope)`, `DeleteAfterMergeConfigurationService.getConfiguration(scope)` and `DeleteAfterMergeConfigurationService.setConfiguration(DeleteAfterMergeConfigurationRequest)` introduce the ability to configure `Branch deletion on merge` feature.

New REST endpoints:

**PROJECT**

* `GET /rest/branch-utils/latest/projects/{key}/delete-after-merge`

get if the feature is enabled for a Project.

* `POST /rest/branch-utils/latest/projects/{key}/delete-after-merge`

enable or disable the feature for a Project.

**REPOSITORY**

* `GET /rest/branch-utils/latest/projects/{key}/repos/{slug}/delete-after-merge`

get if the configuration is enabled for a Repository.

* `POST /rest/branch-utils/latest/projects/{key}/repos/{slug}/delete-after-merge`

enable or disable the configuration for a Repository.

* `DELETE /rest/branch-utils/latest/projects/{key}/repos/{slug}/delete-after-merge`

delete the configuration for a Repository.


author: jameswise
body: In order to enable "branch deletion on merge" for Bitbucket projects via REST API, you will need to make a PUT request to the following endpoint:

/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/branch-utils/delete-on-merge-config

In the request body[,](https://unscrambleit.net/wordle-unlimited-unblocked/) you will need to specify the following JSON:

{  
"deleteOnMerge": true  
}

Where {projectKey} is the key of the Bitbucket project and {repositorySlug} is the slug of the repository.

If the request is successful, the response will return a 204 status code.

comments: author: Priscille Gwet
body: Thanks. It did not work. I got a 404 status code.


author: jameswise
body: 404 status code means the endpoint could not be found. Check the project key and repository slug to make sure they are correct.


Tags: bitbucket-server

server
Pipeline - Failed to Pull and Unpack Image
Asked by Steve Macleod:

Getting the following error from the pipeline after updating to jdk 18:

**rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/3.8.6-openjdk-18:latest": failed to resolve reference "docker.io/library/3.8.6-openjdk-18:latest": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed**

Pipeline source (abbreviated):

image: 3.8.6-openjdk-18  
pipelines:  
branches:  
master:  
- step:  
caches:  
- maven  
script:  
- mvn clean package spring-boot:repackage -Dmaven.test.skip=true  
artifacts:  
- target/\*  
- step:  
caches:  
- maven  
deployment: Production  
script:  
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.6.6  
variables:  
AWS_ACCESS_KEY_ID: '$AWS_ACCESS_KEY_ID'  
AWS_SECRET_ACCESS_KEY: '$AWS_ACCESS_KEY_SECRET'  
AWS_DEFAULT_REGION: '$AWS_DEFAULT_REGION'  
APPLICATION_NAME: '$APPLICATION_NAME'  
ENVIRONMENT_NAME: '$ENVIRONMENT_NAME'  
The 3.8.6-openjdk-18 image is referenced in the documentation  
<https://support.atlassian.com/bitbucket-cloud/docs/java-with-bitbucket-pipelines/>  
<https://hub.docker.com/_/maven/>  
Can anyone assist with this issue?


Answers:
author: Syahrul
body: Hey [@Steve Macleod](/t5/user/viewprofilepage/user-id/2587351)

G'day!

Looking at your YAML config, I believe the image parameter you use is invalid. Can you change it to:

```
image: maven:3.8.6-openjdk-18
```

Let me know how it goes.

Cheers,  
Syahrul

comments: author: Steve Macleod
body: Did the trick! thanks Syahrul.


Tags: bitbucket-cloud

cloud
Connecting Netbeans to BitBucket
Asked by josh:

Does anyone have any idea how to get Netbeans 14 connected to BitBucket following the recent authentication changes?

I have the correct username and password and repo address but every time I click Next I get the following error:

"Incorrect credentials for repository at <https://bitbucket.org> .... "

Any ideas anyone?


Answers:
author: Thuan_ Do Dang
body: Hi [@josh](/t5/user/viewprofilepage/user-id/5006872) ,

Have you ever used app password instead of your account password?

![bitbucket app pasword.png](https://community.atlassian.com/t5/image/serverpage/image-id/210752iDA4F74ACB912ECE5/image-dimensions/201x458?v=v2 "bitbucket app pasword.png")

Create new one and use it for your authen in Netbean.

Hope this helps!

comments: author: josh
body: Genius! Worked instantly. Thank you so much.


author: Tom Kirby
body: Note that older repositories, created before the new auth system, seem to use the old auth system, and not require an app password (for now?). They use the account password. New repos created after the new auth was initiated, fail to authorize (at least from NetBeans 15) until a new app password is created in the bitbucket personal settings. Which should remind us all of the adage, "Great ideas are useless until communicated properly."


author: Tom Kirby
body: What about netbeans 18 and the latest 2023 "Repository Access Tokens"? The access url changes to this according to the atlassian docs:

<https://username:RepositoryAccessToken@bitbucket.org/path/repository.git>

but bitbucket rejects this url. So, we are locked out of all our repos.


author: jameswise
body: Netbeans 14 does not currently support the new Bitbucket authentication changes. There is an open issue for this on the Netbeans bug tracker (<https://netbeans.apache.org/bugtracking/show_bug.cgi?id=263901>)[,](https://www.diffbt.com/difference-between-noise-cancellation-and-transparency/) but there is no estimated fix date. In the meantime, you can try using an older version of Netbeans or another IDE.


Tags: bitbucket-cloud

cloud
Can Report Annotations have rich formatting
Asked by Emily Shepherd:

Hi all - getting started with report annotations at the moment.

I'm wondering if the details section (which is displayed when a user clicks on an annotation) can support any type of formatting?

The use case I have is that I annotate git diffs with terraform changes, and would like to display the terraform diff per annotation. At the moment even new lines are not respected, which makes the diff mostly unreadable.

I tried using markdown codeblock ticks, but that did not seem to be interpreted correctly.

Any advice would be appreciated :)


Answers:
author: Ben
body: Hey Emily,

Welcome to the Bitbucket Cloud Community! :)

At present, there are no such formatting options available in the annotations for git diffs. I have raised a feature request to our development team on your behalf though with your use case - you can "Watch" this for future updates:

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

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: annotation

bitbucket-cloud

bitbucket-pipelines

cloud

report
Automated merge to a new branch with pom update
Asked by Dmitry Gurevich:

Hi,

I'm looking for a feature(pipe) that allow me to make a new merge from master branch to another when pool request to master approved and merged with changing artifact version inside the pom file. I know the Jenkins can do it for me, but I want to make it without configuring additional stuff.

Thanks in advance.


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

Could you give us more details on which Jenkins feature you are referring to? That way we can see if we have something similar.

Thank you.

Kind regards,  
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

trigger
Smart mirror failed to add projects
Asked by Nat Tsai:

Hi,

I'm trying to install smart mirroring but get some problems.

Let me describe the scenario  
Bitbucket primary: <https://haproxy.com.tw>  
Bitbucket mirror: <https://haproxy.backup.com>

These Bitbucket use Haproxy, when the mirror successfully connects, I want to add a mirrored project but get an error.

I have tried another browser but still the same.

Refer from <https://confluence.atlassian.com/bitbucketserverkb/adding-projects-to-smart-mirror-using-different-domain-results-in-failed-to-add-projects-error-1026036904.html>

![401message.png](https://community.atlassian.com/t5/image/serverpage/image-id/210585iE8F2F3372C9C112E/image-size/large?v=v2&px=999 "401message.png")![samesite.png](https://community.atlassian.com/t5/image/serverpage/image-id/210584iABAEDCA8A39637D6/image-size/large?v=v2&px=999 "samesite.png")![bitbucketui.png](https://community.atlassian.com/t5/image/serverpage/image-id/210586i0509D57340B33CF0/image-size/large?v=v2&px=999 "bitbucketui.png")


Answers:
author: Christian Glockner
body: Hi Nat,

This will only work if both primary and mirrors are in the same domain - from the URLs you specified that doesn't seem to be the case.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Nat Tsai
body: thanks for the reply, I'll try it.


Tags: bitbucket-server

mirror

server
in case of self hosted runners as Linux Docker, Where does pipe run ?
Asked by Moamen Yousef:

In case of self-hosted runners as Linux Docker, and I'm using pipe s3 deploy,  
Where does the pipe run ? Does it run and create docker images on the host machine or in bitbucket infrastructure agent?  
Thanks,


Answers:
author: Syahrul
body: Hello, [@Moamen Yousef](/t5/user/viewprofilepage/user-id/5005579)

Welcome to the community!

Bitbucket runner uses your infrastructure, which includes pipe, as long as the steps are configured to use the runner in your YAML config.

I hope this helps.

Cheers,  
Syahrul

comments: author: Moamen Yousef
body: Thank you Syahrul,   
Got it. but can you tell me in case of self-hosted runners as Linux Docker,   
I see that each step an image is pulled and a container is run but I can't see those containers on the host except the one of the runner it self. So, where are these containers run?  

Thanks,  
Moemen


author: Syahrul
body: Hey [@Moamen Yousef](/t5/user/viewprofilepage/user-id/5005579)

This is expected since the runner log only shows runner information, and the pipe runs on a docker container. If you wish to see the log, you can run the following commands on your host:

```
docker logs --details --follow <containerUUID>
```

When the build is triggered, you can get the container UUID in the runner log. Locate the container UUID that has _build at the end. This should show the whole build logs, which include the pipe.

Also, the container is removed when the build is complete; hence you can't locate it in your host. This can be seen in your runner log, it should mention something similar as this:

```
[2022-08-16 04:01:56,933] Removing container 44563242-9239-5082-8659-b3fce1d8bb67_cd1e32cb-1dc3-40f1-9ca6-f2d3d5e522f5_clone
[2022-08-16 04:01:56,964] Removing container 44563242-9239-5082-8659-b3fce1d8bb67_cd1e32cb-1dc3-40f1-9ca6-f2d3d5e522f5_clone
[2022-08-16 04:01:56,969] Removing container 44563242-9239-5082-8659-b3fce1d8bb67_cd1e32cb-1dc3-40f1-9ca6-f2d3d5e522f5_build
```

I hope this helps.

Cheers,  
Syahrul


author: Moamen Yousef
body: Got it.Thank you very much


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

server