youngmon/atlassian-qna huggingface dataset:
Malware Repo
Asked by thread burner:

Hello, I have discovered an active malware repository on bitbucket,

<https://bitbucket.org/enjoymefaggot/mane/downloads/>

They host fake [expressvpn](https://expressedvpn.com/)

and other malicious software's to steal credentials of users who run the exe

VT:

[Expressvpn_5.10.0.exe \&](https://bitbucket.org/enjoymefaggot/mane/downloads/Expressvpn_5.10.0.exe)[Webull_Desktop_5.10.0.exe](https://bitbucket.org/enjoymefaggot/mane/downloads/Webull_Desktop_5.10.0.exe)

<https://www.virustotal.com/gui/file/71a16dfabe903be2bf7fc37275469be40354426314f8ef57bbf609c46973f076>

starlink.zip, starlink.rar, starlink.exe

<https://www.virustotal.com/gui/file/44291f23cdc552f7b610fc5f6e3b592545e98d9b9a73555259aceab129c24906>

ANY RUN

Webull_Desktop_5.10.0.zip

<https://app.any.run/tasks/45a3fcd1-c76c-4e01-899c-230dd23cf021>

Expressvpn_5.10.0_2.zip, server was dead at the time

<https://app.any.run/tasks/35182d39-b3a0-4f12-bdae-ff64496af06a>


Answers:
author: Andy Heinzer
body: Thanks for reporting this. I can confirm that our team has taken down this content for violating our terms of service.


Tags: atl-rvw

bitbucket-cloud

cloud

malware
Upgradation of bitbucket from version 7.8 to bitbucket 7.21
Asked by Rashmi:

Hi! I want to upgrade my bitbucket server running on version 7.8 to 7.21 , I have checked the updation compatibility it looks everything is compatible it can be seen in snap below.

Is there anything I should keep in mind before starting the upgrade as I cannot keep the server down for long time

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


Answers:
author: Bastian Stehmann
body: Hi [@Rashmi](/t5/user/viewprofilepage/user-id/4217906) ,

You should also check the supported platforms page to be sure that your environment meets the requirements. Might be that you have to upgrade database or something like that also to be able to update bitbucket.


Tags: bitbucket-server

server
After using the migration assistant attachments do not work
Asked by Kevin Holy:

I just used the cloud migration assistant to migrate from the server platform to the cloud. After the migration I noticed that every attachment on our pull requests was no longer working. The images just say failed to load and when we uploaded txt documents those now just show text where there used to be a link to click and download the file.


Answers:
author: Patrik S
body: Hello [@Kevin Holy](/t5/user/viewprofilepage/user-id/4964886) ,

Welcome to Atlassian Community.

The Bitbucket Cloud Migration Assistant (BCMA) indeed does not currently support the migration of attachments and it currently just copies the filename, not the actual content of the file.

However, we have the following script that might help you with the replication of the attachments in the Pull Requests on your server/DC instance to your Bitbucket Cloud instance :

* <https://bitbucket.miwalker.net/projects/BBCS/repos/replicate_pr_attachments/browse>

> The process involves locating all attachments within comments by reading any particular PR's activity log. Once we identify the file, we can download it to the local working machine. We replace space characters with underscores, since that will happen anyway when uploading to cloud but we do it early to better keep track of everything, and then we append the PR id (of the PR it belongs to) as well as a random 8 digit hash to the end of the filename (before the file's extension) to make sure it's unique and won't collide with any other files that we previously uploaded. Once the file exists in the new repo's "downloads" folder, we can then hyperlink to it from a new pr comment in the matching prs.

Please note that this tool was NOT written by Atlassian developers and is considered a third-party tool. This means that this is also NOT supported by Atlassian. We highly recommend you have your team review the script before running it to ensure you understand the steps and actions taking place, as Atlassian is not responsible for the resulting configuration.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Kevin Holy](/t5/user/viewprofilepage/user-id/4964886) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud

cloud-migration
Repo Size GC Help
Asked by Chris Campion:

Good morning,

I've crossed into the "warning zone" of repo size at just over 2GB. I've been running garbage collection, deleting history, and removing large files locally but have been unable to reduce the repository size below this threshold. Would it be possible for someone to run garbage collection for me and see if that reduces the repository size?

Thanks so much,

Chris


Answers:
author: Theodora Boudale
body: Hi Chris,

I see two repositories that have a size of around 2 GB (from the ones you have access to):

* The first one belongs to the workspace associated with your Bitbucket account.
* The second one belongs to another workspace you are an admin of.

I ran a git gc for both of them and their size has been reduced. Can you see the updated size now in Repository settings?

Kind regards,  
Theodora

comments: author: Chris Campion
body: Thank you so much, Theodora. This is all set and the ticket can be closed. Appreciate the help!


author: Theodora Boudale
body: Hi Chris,

You are very welcome, I'm glad to have helped!

I also wanted to let you know that we have a feature request to allow users to run a git gc for their remote repos:

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

You can add your vote to that feature request and also add yourself as a watcher if you'd like to get notified via email on updates.

Kind regards,  
Theodora


author: Robert Wen_ReleaseTEAM_
body: Hello, [@Chris Campion](/t5/user/viewprofilepage/user-id/4964879) ! Welcome to the Atlassian Community!

I'm going to escalate so someone from Atlassian will read this. Be prepared with the repository URL. You can add as a reply showing only the last few characters.

comments: author: Chris Campion
body: Thanks for your help [@Robert Wen_ReleaseTEAM_](/t5/user/viewprofilepage/user-id/3970316)


Tags: atl-rvw

bitbucket-cloud

cloud

garbage-collection

repository
Moving repo
Asked by Steve Mersereau:

I'm pretty much a git and Bitbucket newbie and I've kind of run out of leads on this.

I've got a local repo that I've inherited from a previous employee who's now left. I simply want to upload this to a new B.B. repo. Repo is set up but when I try to push

```
git push origin master
```

I get:

```
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
```

git remote -v gives me:

```
origin <workspace-id>@bitbucket.org/<workspace-id>/<repo>.git (fetch)
origin <workspace-id>@bitbucket.org/<workspace-id>/<repo>.git (push)
```

and the git config file contains:

```
[remote "origin"]
url = <workspace-id>@bitbucket.org/<workspace-id>/<repo>.git
```

In BitBucket if I go to User and Group Access -\> Add members and try to add myself I get

```
Steve M was not added. As an Admin of this workspace Steve M already has implicit admin access to this repositry
```

Can anyone please point me to where I should be looking next?


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

The issue is caused by the remote URL of the repo, an SSH URL should have the following format:

```
git@bitbucket.org:workspace-id/repo.git
```

You can change the remote url in your clone with the following command:

```
git remote set-url origin git@bitbucket.org:workspace-id/repo.git
```

where **workspace-id** and **repo** replace with the values for your workspace and repo.

Please keep in mind that you need to set up SSH keys for your account (if you haven't done so already) in order to clone/pull/push to repositories via SSH:

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>

Just a heads up, I removed the actual workspace id and repo names from your post to protect your privacy.

If you have any questions, please feel free to let me know!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Do deployment variables work in self-hosted Pipeline Runners?
Asked by elanclarkson:

Hi there,

I have set up a self-hosted Pipeline Runner on a Windows machine, and the deployment variables are not working despite following the documentation here:

<https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/>

I do not see anything suggesting that they're not supported here:

<https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/>

So I'm wondering if anyone else has had luck with getting these to work?

Thanks!


Answers:
author: Theodora Boudale
body: Hi [@elanclarkson](/t5/user/viewprofilepage/user-id/4964514) and welcome to the community!

I have been able to replicate this issue, so this looks like a bug that we need to further investigate.

I will reach out to the development team and I will let you know when I have an update.

Kind regards,  
Theodora

comments: author: Theodora Boudale
body: Hi [@elanclarkson](/t5/user/viewprofilepage/user-id/4964514),

The issue has been fixed. Could you please check if deployment variables work now in your Windows runner?

For testing purposes, you can use the following command in the script of your bitbucket-pipelines.yml file to print the value of a variable named **myVar**:

```
$env:myVar
```

Please note that if the variable is **secured** we do not display its value in the Pipelines log, so the previous command will print **$Env:myVar** if **myVar** is a secured variable. However, you can print its value in a new file that you define as an artifact, and then download that artifact to double-check the value.

```
script:
  - $env:myVar > artifactfile.txt
artifacts:
  - artifactfile.txt
```

Kind regards,  
Theodora


author: elanclarkson
body: Many thanks Theodora, works like a charm!

... I do note that I can only access the vars by using the $env:myVar syntax mentioned. I was expecting to be able to use $myVar as per the documentation but this isn't a major.

Thanks again!


author: Theodora Boudale
body: Hi Elan,

You are very welcome, I'm glad to have helped!

The different way of referencing environment variables has to do with Windows Runners builds running on PowerShell instead of Docker containers, and you are right that this info is missing from our documentation. I will reach out to my team internally and request to have this added.

Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

bitbucket-runners

cloud
Where is Dependency caches stored?
Asked by Pratyush Raizada:

I use Dependency caches for optimising my builds, but was curios to know where are these files physically stored?


Answers:
author: Theodora Boudale
body: Hi [@Pratyush Raizada](/t5/user/viewprofilepage/user-id/4743181) and welcome to the community!

Dependency caches are stored across DynamoDB and S3, in us-west-1 region.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cache

cloud
Pipe to trigger a pipeline documentation seems to be inconsistent.
Asked by Richard Quadling:

<https://bitbucket.org/atlassian/trigger-pipeline/src/master/> says that the type for wait and debug are boolean.

And when I use a boolean in my pipeline, the error reports I've done exactly as requested, but that it is also wrong.

```
There is an error in your bitbucket-pipelines.yml at [pipelines > branches > master > 1 > step > script > 0 > variables > WAIT]. To be precise: This value should be a string (it is currently defined as a boolean).
```

So, for example, if I want to use OIDC, I say

```
oidc: true
```

So, I've got

```
WAIT: true
DEBUG: true
```

for the 2 booleans.

I'll be testing to see if these need to be strings to work. But either way, the documentation is wrong as the error reported for doing it the way the documentation says to do it is reported perfectly as the problem!


Answers:
author: Richard Quadling
body: Quoting 'true'/'false' worked, but then that's just a string.


Tags: bitbucket-cloud

cloud

trigger
Pipelines requiring Java 11 for Android project
Asked by Sune Johansson:

Hi there,

When I run a pipeline for an Android project I get this error in the pipeline log:  

> Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.  
I'm using this image:  

```
androidsdk/android-29
```

How do I fix this issue?


Answers:
author: Ben
body: G'day Sune,

Welcome to the Bitbucket Cloud Community! :)

I have downloaded and ran this same version of the androidsdk image in my own Docker and can see when running the **java -version** command that this particular image is bundled with Java 1.8 (also known as Java 8).

I checked Dockerhub and found that there is a newer version of the androidsdk, when I have ran that same command in Docker I can see that this image comes bundled with Java 11:  
<https://hub.docker.com/r/androidsdk/android-31>

I would suggest using this updated image instead in your pipelines build.

Hopefully this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: android

bitbucket-cloud

bitbucket-pipelines

cloud
PHP Laravel Pipeline: No Artifacts Uploaded
Asked by nymendaros:

My artifacts is not uploaded after successful run of test pipeline. Here's the yml:

![BitbucketPipe.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/201277i8847485790B8A4D1/image-size/large?v=v2&px=999 "BitbucketPipe.jpg")

here's the result

![BitbucketPipe01.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/201278i9604B0D510390AA9/image-size/large?v=v2&px=999 "BitbucketPipe01.jpg")![BitbucketPipe02.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/201279i1335A64F2C17B2AF/image-size/large?v=v2&px=999 "BitbucketPipe02.jpg")

what should the correct code for the artifact?


Answers:
author: Theodora Boudale
body: Hi [@nymendaros](/t5/user/viewprofilepage/user-id/4044979),

I see two issues with the yml file you posted:

**1st.** The two steps are parallel. Parallel steps can only use artifacts produced by previous steps, not by steps in the same parallel set.

If you want the second step to use an artifact generated by the first step, you will need to remove the **parallel** keyword.

<br />

**2nd.** I'm afraid that the file path in artifacts cannot render variable names. We have a bug report about this in our issue tracker:

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

As a workaround, you can determine as an artifact any file with .zip extension as follows:

```
artifacts:
  - "*.zip"
```

In case you have multiple zip files in the clone directory and you want to avoid having all of them uploaded as artifacts, you can generate this specific zip in a separate folder inside the clone directory, e.g. named 'app', and then define as an artifact any zip file in that directory

```
artifacts:
  - app/*.zip
```

Please feel free to let me know how it goes and if you need further assistance.

Kind regards,  
Theodora

comments: author: nymendaros
body: Sorry for late reply. Thank you for the assistance

This has been solved on the same month (June). We're able to fix the pipeline by removing the parallel directive for the 1st and 2nd step and among other things.

But the $BITBUCKET_BUILD_NUMBER is not incrementing.


author: Theodora Boudale
body: Hi [@nymendaros](/t5/user/viewprofilepage/user-id/4044979),

Thank you for the update and you are very welcome! It's good to hear that the issue was solved.

Regarding $BITBUCKET_BUILD_NUMBER not incrementing, have you perhaps defined a deployment variable, repository variable, or workspace variable with the same name? These variables will override default ones with the same name.

If you add the command **ls -lah** below the zip command as follows, does the number in the name of the zip not correspond to the build number?

```
- zip -r example-$BITBUCKET_BUILD_NUMBER.zip .
- ls -lah
```

In case you are generating the zip in a directory inside the clone directory, provide the directory name in the **ls -lah** command.

Kind regards,  
Theodora


Tags: azure

bitbucket-cloud

cloud

laravel
How to pass bitbucket-pipelines variables to windows runner pipeline
Asked by Julius Sirutis:

Hello,

I am having an issue with setting up a build in a self hosted windows runner. This is what we have described in bitbucket-pypelines.yml

```
- step:
  runs-on:
    - self.hosted
    - windows
  name: Build
  script:
    - $version = (Get-Date).ToString("MM-dd") + "." + $BITBUCKET_BUILD_NUMBER + "-demo-" + $BITBUCKET_BRANCH
    - Write-Output $version
```

The output for version is:

```
06-09.-demo-
```

when we expect to get something like this:

```
06-09.150-demo-BRANCH-10?
```

The default Bitbucket variables are not passed and thus are empty.

We have also tried writing the script like, but it also did not work:

```
- $version = (Get-Date).ToString("MM-dd") + "." + ${BITBUCKET_BUILD_NUMBER} + "-demo-" + ${BITBUCKET_BRANCH}
```

Is there a proper way on how to pass those pipelines variables, and if yes, how can I do that?


Answers:
author: Theodora Boudale
body: Hi [@Julius Sirutis](/t5/user/viewprofilepage/user-id/4163910),

Windows Runners run directly on Powershell so you need to use different syntax for referencing variables.

I have tested the following and it seems to work ok:

```
- $version = (Get-Date).ToString("MM-dd") + "." + $env:BITBUCKET_BUILD_NUMBER + "-demo-" + $env:BITBUCKET_BRANCH
```

Could you give it a try and let me know if it works for you as well?

Kind regards,  
Theodora

comments: author: Steve Hills
body: This was very helpful. It should be documented here.

<https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/>


author: Theodora Boudale
body: Hi Steve,

I'm glad this was helpful. I have raised this with the team that maintains the documentation.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

bitbucket-runners

variable
Can't add ssh key
Asked by Yauheni Harbuzau:

Hello, I can't add ssh key, it says:  

"Someone has already added that SSH key."


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

This message usually happens when you have used the key with another account (do not do this, keys should not be shared by multiple users or accounts).

If you can't remember who you gave it to, or what other account had access to it, then you'll need to create a new key for your current account.

comments: author: Yauheni Harbuzau
body: I would like to use my current key. Unfortunately I don't remember if I used my key in another projects/account (I had some of them). Is it possible somehow to remove my key from other projects?


author: Nic Brough -Adaptavist-
body: You'll have to log into the account that did it, go to profile -\> personal settings -\> ssh keys and remove it from there.


author: Yauheni Harbuzau
body: The problem is I don't remember exact account/project and probably I don't have access anymore because it's possible it was a corporate account


author: Nic Brough -Adaptavist-
body: Yeah, that's one reason you shouldn't be sharing keys across accounts.

If you are on a supported installation (basically, 11+ users on any platform), you can raise a request with Atlassian for them to search for the key and at least tell you where it is!
url didn't update after account name was changed
Asked by Oleh Mazur:

After I updated Bitbucket account name I still have old name in url,

and if manually print new instead it says that repository doesn't exist

.Is it take some time to implement those changes ?


Answers:
author: Theodora Boudale
body: Hi [@Oleh Mazur](/t5/user/viewprofilepage/user-id/4964016) and welcome to the community!

If I understand correctly, you are referring to the URL of one of your repositories?

This URL uses the **workspace id** of the workspace where the repo belongs.

If you change the **username** of your Bitbucket Cloud account from this page <https://bitbucket.org/account/settings/>, the URL of the repositories will **not** get affected.

You will need to change the workspace id of the workspace where this repo belongs:

1. Log in to <https://bitbucket.org/>  
2. Go to your avatar \> **All workspaces**   
3. Select the workspace whose id you want to change  
4. Select **Settings** from the sidebar on the left  
5. In there, you will see the **Workspace ID** of that workspace, and also a link to change it

Please note that changing the workspace id will change the URL of **all** repos that belong to this workspace.

<br />

If you have a local clone of this repo already in your machine, you will need to change the remote URL in your clone to use the new workspace id.

Running the following command will show the remote URL of the repo.

```
git remote -v
```

If you use HTTPS the output will look similar to the following:

```
origin https://BitbcuketUsername@bitbucket.org/OLD_WORKSPACE_ID/REPO.git (fetch)
origin https://BitbcuketUsername@bitbucket.org/OLD_WORKSPACE_ID/REPO.git (push)
```

If you use SSH the output will look like this:

```
origin git@bitbucket.org:OLD_WORKSPACE_ID/REPO.git (fetch)
origin git@bitbucket.org:OLD_WORKSPACE_ID/REPO.git (push)
```

You can change that URL with the **git remote set-url** command.

For HTTPS:

```
git remote set-url origin https://BitbcuketUsername@bitbucket.org/NEW_WORKSPACE_ID/REPO.git
```

For SSH:

```
git remote set-url origin git@bitbucket.org:NEW_WORKSPACE_ID/REPO.git
```

If you have any questions or face any issues, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Uploading Bitbucket pipeline artifacts to sharepoint
Asked by yosser_mahfoudh:

I've been searching for a way to upload the pipeline artifacts to SharePoint.

Is this possible? and if yes how Can I do it.

Thank you in advance for your help


Answers:
author: Theodora Boudale
body: Hi [@yosser_mahfoudh](/t5/user/viewprofilepage/user-id/3803216),

I'm not very familiar with Sharepoint, but I would suggest checking the Sharepoint documentation to see if they offer an API to upload files.

If they do, you can edit the bitbucket-pipelines.yml file of your repo and add an API call to upload certain files to Sharepoint.

If you need to store authentication details to perform such an API call, you can make use of variables in Pipelines:

* <https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#User-defined-variables>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Standard plan still getting "Change your plan to restore write access"
Asked by AuthorGEN Technologies Pvt Limited:

Our plan is already Standard still repositories are in read only mode and we are unable to push any code.

Sent many mail to support but no reply.

Need quick help with our account.


Answers:
author: Nic Brough -Adaptavist-
body: What is the first part of the message? The part that says something like "your push failed because you are over your user limit"?

comments: author: AuthorGEN Technologies Pvt Limited
body: remote: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
remote: \[ALERT\] Your push failed because the account 'accountname' has exceeded its  
remote: \[ALERT\] user limit and this repository is restricted to read-only access.  
remote: \[ALERT\] Change your plan to restore write access:  
remote: \[ALERT\] <https://bitbucket.org/account/user/accountname/plans>  
remote: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: unable to access 'repo url': The requested URL returned error: 402


author: Nic Brough -Adaptavist-
body: Ok, log in as an admin and remove one or more user's access. You have a subscription for up to X users, and you have added another user, so you're on X+1 (or more).

Atlassian systems go read-only when you go over your licence limit. Once you reduce the users, you'll get full access back, it really is just that you can't write content to them.


Tags: bitbucket-cloud

cloud