youngmon/atlassian-qna huggingface dataset:
Options | Pipeline Settings
Asked by afernandezdecastro:

Hello!  
I would like to know the list of repositories in a workspace that have the "Pipeline" option enabled.

![PipelineSettings.JPG](/t5/image/serverpage/image-id/259587i04AFE9847B7CD559/image-size/large?v=v2&px=999 "PipelineSettings.JPG")

thanks!

Ennio


Answers:
author: Theodora Boudale
body: Hi Ennio,

This is possible from our website if you check the repositories' settings one by one. If you have a large number of repos in that workspace, you can get this info via API. First, you can use this API endpoint to get all repositories in the workspace:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get>

Then, for each repository, you can use the following API endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-config-get>

If Pipelines are enabled for a repository, you will see in the response the field **"enabled": true**.

If Pipelines were previously enabled for a repo, but are now disabled, you will see in the response the field **"enabled": false**.

If Pipelines were never enabled in the past for a specific repo, you will get a response like the following:

```
{
  "error": {
    "message": "Not found",
    "detail": "Repository {REPO_UUID} does not exist for account {WORKSPACE_UUID}.",
    "data": {
      "key": "account-service.repository.not-found",
      "arguments": {
        "uuid": "{REPO_UUID}"
      }
    }
  }
}
```

where REPO_UUID is the UUID of the repository you are running the API call for, and WORKSPACE_UUID is the UUID of the workspace this repo belongs to.

This is a bug and we have a bug report to fix the response in order to indicate that Pipelines is disabled: <https://jira.atlassian.com/browse/BCLOUD-22241>.

Kind regards,  
Theodora

comments: author: afernandezdecastro
body: Hi Theodora, thank you!!


author: Theodora Boudale
body: You are very welcome, Ennio. Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Edit Merged Pull Request
Asked by Eduardo Sanabia:

Is there a way to edit an already merged PR?.

We added some info we don't want to have on the PR description/instructions but PR got merge so we can't edit anymore.


Answers:
author: Baskar Annamalai
body: Hi [@Eduardo Sanabia](/t5/user/viewprofilepage/user-id/5228424)

You can try rolling back the commit related to the PR merge. This also depends on the source branch's availability and updates. I would recommend the steps in the documents:

* <https://www.atlassian.com/git/tutorials/learn-undoing-changes-with-bitbucket>
* <https://www.freecodecamp.org/news/git-undo-merge-how-to-revert-the-last-merge-commit-in-git/>

Best regards,  
Baskar Annamalai   
ServiceRocket.


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

I'm afraid that it is not possible to edit a PR's title or description after it has been merged in Bitbucket Cloud. This is the case even if you reset the merge commit.

We have a feature request for allowing such edits:

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

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

Kind regards,  
Theodora


Tags: atlassian-support

bitbucket-cloud

cloud

pull-request
Error creating a new branch via REST API
Asked by Eric Boudreau:

Hi,

I am able to perform some operations with our local server using the REST API via Postman, however, I am stuck trying to create a branch.

POST <https://bitbucket.ppp.com/rest/branch-utils/latest/projects/>\<myproject\>/repos/\<myrepo\>/branches  
Error: Exceeded maxRedirects. Probably stuck in a redirect loop <https://bitbucket.ppp.com/error400>  
?Request Headers  
Content-Type: application/json  
Accept: application/json  
Authorization: Bearer ####  
?Request Body  
name: "EricB-test-via-api"  
startPoint: "dd28c51928f"  
Any help appreciated.


Answers:
author: Eric Boudreau
body: It works after adding Host and Content-Length request headers


author: Eric Boudreau
body: I'm also seeing the same problem trying to create a Tag.


Tags: bitbucket-server

rest

server
I am getting resource not found triangle
Asked by Rinaldo Clucher:

Hi,

I am getting resource not found triangle when I log in. Are you able to assist me please?

Many thanks

Rinaldo


Answers:
author: Theodora Boudale
body: Hi Rinaldo,

If you see this page after you log in, it means that either you don't have access to the page you are trying to access or that this page does not exist.

If you see this page before you log in, you may have access to it but you may need to log in in order to view it.

What URL are you trying to access when you see this page? Are you logged in to <https://bitbucket.org/> when you see this error?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Maximum Limit Project Tokens
Asked by Felix Leonhardt:

Hello,

we have a scenario that we need to issue a project token to each developer. Unfortunately, after 25 tokens generated, we get the following message:

**Error You've reached the maximum number of tokens for this project.**

Is there a way to increase the token limit at project level?

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


Answers:
author: Patrik S
body: Hello [@Felix Leonhardt](/t5/user/viewprofilepage/user-id/5114241) and welcome to the community!

I see you have also raised an internal ticket for this issue and one of our support engineers is already working on that case. We suggest focusing the discussion on the internal support case to avoid confusion and for easier tracking.

Thank you, [@Felix Leonhardt](/t5/user/viewprofilepage/user-id/5114241) !

Patrik S


Tags: bitbucket-cloud

cloud
Workspace runner in docker desktop
Asked by S?t? ?d?m:

I want to attach a workspace runner into my workspace. I have windows with docker desktop so, i would like to run the runner in docker. Unfortunately the given command:

docker container run -it -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/containers:/var/lib/docker/containers:ro -e ........(continuing)

cannot be runnable in windows power shell, as it gives me back this error:

docker.exe : The command parameter was already specified.  
At line:1 char:1  
+ docker container run -it -v /tmp:/tmp -v /var/run/docker.sock:/var/ru ...  
+\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~  
+ CategoryInfo : InvalidArgument: (:) \[\], ParameterBindingException  
+ FullyQualifiedErrorId : ParameterSpecifiedAlready

My docker dektop is running fine, I can run other images perfectly.

Can anybody help what could be this error message?


Answers:
author: Tobias Kasper (TNG)
body: Removing the curly braces around the environment variables worked for me.

Example: *-e ACCOUNT_UUID=\<uuid\>* instead of *-e ACCOUNT_UUID={\<uuid\>}*

Now I run into the next problem, my Account UUID does not get accepted: "The value provided is not a valid uuid"

comments: author: Tobias Kasper (TNG)
body: Now its working on Windows.  
I need the curly braces and also wrap them in quotes. My variables look like this now: *-e ACCOUNT_UUID="{\<uuid\>}"*


author: Theodora Boudale
body: Hi [@S?t? ?d?m](/t5/user/viewprofilepage/user-id/5059726),

The Linux Docker runners have been developed for and tested in Linux environments only.

If you want to use a runner in Windows, you can set up a Windows runner instead.

Please keep in mind that Windows runners do not use Docker, they use PowerShell to run pipeline steps on your Windows machine (host device).

You can find more info here:

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker
Do we have an API which provides repositories along with their project names in Bitbucket?
Asked by kompal.sithta:

Hi All,

I have a requirement to get all the repositories along with their project names, so far I haven't got any API that would give me that information.

I am using the Cloud platform and require API or any near solution to that.

So far, I have tried the following API but didn't get the repos in that project, only got the project information :  
"<https://api.bitbucket.org/2.0/workspaces/{workspace-name}/projects>"  
Please let me know if we have any solution.  
Thanks,  
Kompal


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Kompal,

short answer: yes we do :)

You can make use of the 'List workspace repositories' API endpoint \[1\].

It's a paginated API so make sure you iterate through all pages to fetch all repos.

The response repo object contains project information as well under the \`project\` field.

Hope that helps.

Best, Ulrich

// [Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd)

\[1\] <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get>


author: Sachin Dhamale
body: [@kompal.sithta](/t5/user/viewprofilepage/user-id/5079083) ,

You can refer [this](https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/)

**Access to repository data**

Any access to */2.0/repositories/\** such as:

* List a user or team's repositories (/2.0/repositories/{workspace})

* List all repositories on Bitbucket (/2.0/repositories)

* List a repository's commits (/2.0/repositories/{workspace}/{slug}/commits)


Tags: bitbucket-cloud

cloud

python
Reclaim school account via SSH key
Asked by Jakub Fojt?k:

I registered using a school account and lost access since. I still have the SSH key through which I can push \& pull to/from specific repos.

Could you merge my accounts please? Or is there a way I could list my repos via the key so I can download them at least?

**Proof** : Repo git@bitbucket.org:workspace-id/repo.git  
Latest commit 4cfee7531d341fb005017d329dde1c92e37e6899  
Says: this is me: <https://community.atlassian.com/t5/Bitbucket-questions/Reclaim-school-account-via-SSH-key/qaq-p/2369946>


Answers:
author: Theodora Boudale
body: Hi Jakub,

We do not make email changes to an account when someone reaches out to us from an email that is not associated at all with said account.

If you have an app password for this account with at least **Repositories: Read** permissions, you can use it in combination with the account's username in an API call to the following endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get>

This will list all repositories in a certain workspace. I'm afraid that it is not possible to use SSH keys to retrieve the list of repos. If you want access to that account, you will need to contact the school and ask them to provide you access to that account's email address.

Just a heads up, I removed the repo details from your post to comply with our privacy policy.

Kind regards,  
Theodora


Tags: account

cloud

login
Build fails with out/doctor-alt.tar.gz: Cannot open: No such file or directory
Asked by Achala Dissanayake:

```
alt:
 - step:
   name: build (alt)
   caches:
     - node
   script:
     - echo "Building..."
     - npm install -f && npm install -g @angular/cli && mkdir -p out/
     - npm run build:alt && tar --owner=0 --group=0 --numeric-owner -czvf out/doctor-alt.tar.gz -C dist/ .
     - npm run build:training && tar --owner=0 --group=0 --numeric-owner -czvf out/doctor-training.tar.gz -C dist/ .
   artifacts:
     - out/*
 - step:
   name: upload
   script:
     - echo "Uploading artifacts to S3..."
     - pipe: atlassian/aws-s3-deploy:0.3.2
     variables:
       AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
       AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
       AWS_DEFAULT_REGION: 'eu-west-2'
       S3_BUCKET: 'build-artifacts'
       LOCAL_PATH: 'out'
```

Error

![pipeline-error.png](/t5/image/serverpage/image-id/259292i3603ED422ADA6FA7/image-size/large?v=v2&px=999 "pipeline-error.png")

This pipeline was running for a longtime without any issue. Suddenly this came up without changing anything to the bitbucket-pipelines.yml file or env variables


Answers:
author: Patrik S
body: Hello [@Achala Dissanayake](/t5/user/viewprofilepage/user-id/5227298) and welcome to the Community!

The error returned in the logs is usually related to the file in question (out/doctor-alt.tar.gz) not existing at the location or path the build process is expecting it to be in. I see you have opened an internal ticket with us related to this issue and one of our support engineers is already working on that ticket. Once the ticket is resolved, feel free to share the solution here, so other users that might face the same issue in the future can try similar steps.

Thank you, [@Achala Dissanayake](/t5/user/viewprofilepage/user-id/5227298) !  
Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Deploy PHP code to Azure App Service + sql DB
Asked by Param Ramanan:

Hi All

I am new to deployment.

I am struggling to get my pipeline working for a specific repository, the validation is not passing.

below is my yml file content

- step:  
name: Deploy Sommelier  
deployment: production  
Script:  
- pipe: atlassian/azure-web-apps-deploy:1.1.0  
variables:  
AZURE_APP_ID: $AZURE_APP_ID  
AZURE_PASSWORD: $AZURE_PASSWORD  
AZURE_TENANT_ID: $AZURE_TENANT_ID  
AZURE_RESOURCE_GROUP: 'Sommelier'  
AZURE_APP_NAME: 'sommelier'

Not sure is I am anywhere even near to getting this working

any help is appreciated

Thanks Param


Answers:
author: Igor Stoyanov
body: [@Param Ramanan](/t5/user/viewprofilepage/user-id/1943875) hi. Thanks for your question.   
Check the indentation and also change Script -\> script.  
Example:  

```
script:  - pipe: atlassian/azure-web-apps-deploy:1.1.0    variables:      AZURE_APP_ID: $AZURE_APP_ID      AZURE_PASSWORD: $AZURE_PASSWORD      AZURE_TENANT_ID: $AZURE_TENANT_ID      AZURE_RESOURCE_GROUP: $AZURE_RESOURCE_GROUP      AZURE_APP_NAME: 'my-site'      ZIP_FILE: 'my-package.zip'
```

Regards, Igor


Tags: bitbucket-cloud

cloud

yml
How can I remove Bitbucket from Atalassian account?
Asked by Determ IT:

I accidentally clicked BitBucket when I'm trying to delet an organisation because I was prompted that this organisation may have BitBucket product which blocking me from deleting it.  
Now I've confirmed that we do not use BitBucket, so how can I remove it from Atlassian?![Screenshot 2023-05-24 174947.png](https://community.atlassian.com/t5/image/serverpage/image-id/259207i38493C08EFA9302F/image-size/large?v=v2&px=999 "Screenshot 2023-05-24 174947.png")


Answers:
author: Patrik S
body: Hello [@Determ IT](/t5/user/viewprofilepage/user-id/5227055) and welcome to Community!

I've raised an internal ticket to assist you further. You should be receiving an email with the ticket link soon. In case you don't receive it, please let me know so I can share the link with you here (it will only be accessible to you and Atlassian).

Thank you, [@Determ IT](/t5/user/viewprofilepage/user-id/5227055) !

Patrik S


Tags: bitbucket-cloud

cloud
Unable to activate two steps verification
Asked by PBhatt:

I am trying to setup my bitbucket account and enabling 2FA as per steps mentioned in   
[two-step verification --- Bitbucket](https://bitbucket.org/account/settings/two-step-verification/manage)  

But Email is not receiving regarding 2FA activation.

Steps i Performed as below:

1. Login into Bitbucket Account

2. Open Two Factor Authentication menu

3. Download Authy/Window Authenticator on my Mobile

4. Scanned QR Code from Authy/Window Authenticator

5. BitBucket account added to Authy/Window Authenticator

6. Entered verification code on [two-step verification --- Bitbucket](https://bitbucket.org/account/settings/two-step-verification/manage) Page

7. It Redirect to the page with below message
> Two-step verification
>
> You're almost ready to go!  
> Check your email to finish enabling two-step verification.

**Here I didn't get email to finish Two Factor Verification.**


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

I've checked internally for the email you used to post this question, and the emails that Atlassian tried to send to your inbox were bounced with the following message :

```
554 5.7.1 [internal] recipient address was suppressed due to customer policy
```

This caused your email to be added to a suppression list. I went ahead and removed your email from the suppression list so you can try to trigger the 2FA confirmation again. I

If you are still not receiving the email, we suggest checking with your email provider, as the error message indicates there might be a policy in place blocking emails from Atlassian domain.

Thank you, [@PBhatt](/t5/user/viewprofilepage/user-id/5227045) !

Patrik S

comments: author: PBhatt
body: Thanks [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) ,  
Now I am able to get emails from Bitbucket.


Tags: bitbucket-cloud

cloud
is it possible to tie pull-requests/branches of project and its submodule(s) ?
Asked by Sharon Golan:

Hi. I am relating to a situation where I would like to submit to PR a joint change in 2 repos:  
- project repo  
- submodule repo  

is there a method to tie these 2 changes together as connected/unified pull-request ?  
if not, I will appreciate to learn about methodic alternatives.  
Thanks.


Answers:
author: Patrik S
body: Hello [@Sharon Golan](/t5/user/viewprofilepage/user-id/5227002) and welcome to Atlassian Community!

I'm afraid that pull requests are limited to the scope of a single repository, with the exception of forks, where the repositories have a relationship of parent/fork so you are allowed to create a pull request from the fork repository to the parent repo.

Unfortunately for submodules that's not available, as those are considered separate individual repositories, so you would have to create individual Pull Requests on the project repo as well as in the submodule repo.

Thank you, [@Sharon Golan](/t5/user/viewprofilepage/user-id/5227002) !

Patrik S

comments: author: Sharon Golan
body: Thank you.


Tags: bitbucket-cloud

cloud

pull-request

submodule
Unable to build and push Docker image using pipeline
Asked by Serge Asmar:

Hello everyone,

I am trying to create an automated docker image build using pipelines, but i keep running into the same error:

+ docker version  
2
bash: docker: command not found  
----------------------------------------  
i also get the following error when i try something else:  
denied: requested access to the resource is denied  
*---------------------------------------![Screenshot (205).png](https://community.atlassian.com/t5/image/serverpage/image-id/259162i9AB808890057B50B/image-size/large?v=v2&px=999 "Screenshot (205).png")  
`I'm guessing docker is either not available in bitbucket, or i have something that's off in my bitbucket-pipelines.yml`  
I will upload the error + .yml file, along with the link to my repository  
<https://bitbucket.org/sergetest97/cd-ci/src/master/>  
Any help and guidance is much appreciated![Screenshot (203).png](https://community.atlassian.com/t5/image/serverpage/image-id/259154iDE26B36593D8775E/image-size/large?v=v2&px=999 "Screenshot (203).png")![Screenshot (204).png](https://community.atlassian.com/t5/image/serverpage/image-id/259155i1C64EC8A71F3BE7D/image-size/large?v=v2&px=999 "Screenshot (204).png")


Answers:
author: Erez Maadani
body: Hi [@Serge Asmar](/t5/user/viewprofilepage/user-id/5226846)

Looks like you are missing the service definition.

Have a look here: <https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/>

comments: author: Patrik S
body: Hello [@Serge Asmar](/t5/user/viewprofilepage/user-id/5226846) ,

Just adding to [@Erez Maadani](/t5/user/viewprofilepage/user-id/5018344) 's comment, in the first pipeline screenshot I'm seeing the error :  

    The push refers to repository [http://docker.io/library/first_pipeline_img_build]
    [...]
    denied: requested access to the resource is denied

This is because when you built the docker image with **docker build** you provided the tag (-t) with just the image name but not the docker hub namespace where you want to push this image to. This makes docker default to **library** namespace, and your docker hub account doesn't seem to have access to that namespace/account.

In this case, I would recommend updating your docker build command to include the namespace/account into the tag, like the following example :

```
docker build -t mydockerhubuser/first_pipeline_img_build .
```

In the above example, we are using the docker hub account **mydockerhubuser** . This is the account under which the image will be pushed when you run a **docker push**.

Thank you, [@Serge Asmar](/t5/user/viewprofilepage/user-id/5226846) !

Patrik S!


author: Serge Asmar
body: Awesome thanks guys!


Tags: automation

bitbucket-cloud

bitbucket-pipelines

cloud

docker
scp-deploy seems to try to connect to bitbucket instead of server
Asked by 74bit:

I have the following pipeline-conf  

```
- pipe: atlassian/scp-deploy:1.2.0

variables:

USER: 'hardcoded_username'

SERVER: 'hardcoded_servername'

REMOTE_PATH: '/home/xyz/client/build'

LOCAL_PATH: 'client/build/*'

DEBUG: 'true'

EXTRA_ARGS: ["-P", "12345"]
```

<br />

However it seems the runner is trying to connect to bitbucket.org instead of my server and than it seems to fail.

```
?
```

    Status: Downloaded newer image for bitbucketpipelines/scp-deploy:1.2.1

112
DEBUG: Starting new HTTPS connection (1): [bitbucket.org:443](http://bitbucket.org:443/)

```


```

113
DEBUG: [https://bitbucket.org:443](https://bitbucket.org/) "GET /bitbucketpipelines/official-pipes/raw/master/pipes.prod.json HTTP/1.1" 200 None

```


```

114
INFO: Configuring ssh with default ssh key.

```


```

115
INFO: Adding known hosts...

```


```

116
INFO: Appending to ssh config file private key path

```


```

117
INFO: Applied file permissions to ssh directory.

```


```

118
usage: scp [-346ABCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]

```


```

119
[-J destination] [-l limit] [-o ssh_option] [-P port]

```


```

120
[-S program] source ... target  
121

    ? Deployment failed.

<br />

<br />

Can anyone help me? Thanks a lot!


Answers:
author: Igor Stoyanov
body: Hi [@74bit](/t5/user/viewprofilepage/user-id/5226842) .   
This pipe uses under the hood scp command. Please check generated by pipe scp command: is this command correct?  
Also you may try to execute it without pipe usage to understand where is the problem.  

Regards, Igor

comments: author: 74bit
body: Thanks, but it doesn't show the SCP-command, even though Debug is turned on.


author: Igor Stoyanov
body: [@74bit](/t5/user/viewprofilepage/user-id/5226842) please, check [this answer](https://community.atlassian.com/t5/Bitbucket-questions/scp-deploy-error-usage-scp/qaq-p/2045923), maybe this is your case.  

Regards, Igor


author: 74bit
body: In fact, that helped me. The react-build step before did not write to the standard-dir, and the scp missed that dir in the artifact and then stopped working.  
To bad there isn't any error-msg at all, like "file or directory not found"  

Anyhow, thanks for your help, very much appreciated.


Tags: bitbucket-cloud

cloud
I think that my account is also marked as inactive. Can it be reactivated?
Asked by Kevin Wonus:

I am unable to log into my account. It has been a while since I've been here.

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


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

Your Bitbucket Cloud account was indeed inactive, so I went ahead and reactivated it.

Could you please check if you are able to log in now?

Kind regards,  
Theodora


author: Kevin Wonus
body: .


Tags: bitbucket-cloud

cloud