youngmon/atlassian-qna huggingface dataset:
Not Getting Invitation mail for repo access
Asked by Rishav Thakur:

My Manager is trying to give me access of the repo I am not able to get it


Answers:
author: Caroline R
body: Hi, [@Rishav Thakur](/t5/user/viewprofilepage/user-id/4853056), welcome to the community!

I reviewed your email and confirmed that it had a bounce on the server that prevented emails from being sent to you. This can occur when the system tries to send an email to the user and the account does not exist, is not activated yet, or rejects the email for some internal reason.

In this case, I have removed the block from your email. Could you please ask your team to **remove** the invitation and send you a new one? They can do this by following the next steps:

In case they have invited you to a **specific repository**:

* Access the workspace \> Go to the repo they have invited you to;

* Access the **Repository Settings** \> **User and group access;**

* Click on the "invitation pending";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add your email again to send a new invitation.

In case they have invited you to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group they have invited you to**;**

* Click on the "invitation pending";

* Select the "Cancel invitation" option to remove the invitation;

* Add your email again to send a new invitation.

Please let me know how it goes and feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: Rishav Thakur
body: working now thanks


author: Caroline R
body: Thanks for your confirmation [@Rishav Thakur](/t5/user/viewprofilepage/user-id/4853056), I'm glad to know it's working now.


Tags: bitbucket-cloud

cloud
pipeI want to use docker command in pipe.
Asked by Ray:

Hello, we are using the bitbucket pipeline.

```
- step:
    name: Build Container Image
    services:
    - docker
    script:
      - aws ecr get-login-password ...
      - pipe: docker//$ECR_REPOSIOTRY/$MY_IMAGE:latest

//Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?
```

I made an Image to use as a pipe, but I want to run docker commands in the image.

The docker command could not be executed in the following cases.

I wish there was a way to mount the host's docker daemon.


Answers:
author: Petrus Hakakoski
body: Use the image for the pipeline? <https://support.atlassian.com/bitbucket-cloud/docs/use-docker-images-as-build-environments/#Private-images-hosted-by-AWS-ECR--EC2-Container-Registry->
Can not remove repository when my account over size 4Gb
Asked by dequoc:

Dear all,

Please help in my case.

Currently, my account of Bitbucket is over size (4Gb) become read only.

I can not delete or do any action from remote.

Please help!

Thank in advance

GlobeDr


Answers:
author: dequoc
body: Dear Caroline R,

Sorry for ask you again.

After I've just updated one document include 4 pages into my Bitbucket. Now it show error for using over 4GB.

Please check and help us in this case.

Thanks in advanced,

De

GlobeDr

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

Please allow me to step in as Caroline is out of office.

I checked the repos you have access to and I found one repo over the 4 GB limit.

I ran a git gc on it and its size is 1.5 GB now. Does this agree with the size of your local repo?

Kind regards,  
Theodora


author: dequoc
body: Hi Theodora,

It is good for us. It is close same size with us in local repo.

Thanks for your support!

Best regards,

De


author: Theodora Boudale
body: Thank you for the update and you are very welcome!

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

Kind regards,  
Theodora


author: Caroline R
body: Hi [@dequoc](/t5/user/viewprofilepage/user-id/4777163), welcome to the community!

I checked the repositories you have access to and found one repo that was over 4 GB, so I ran a GC against it and was able to reduce its size. Could you please confirm if this is the repo you are referring to?

Kind regards,   
Caroline

comments: author: dequoc
body: Thank you a lot,

I fixed in my issues.

I appreciate you action!

Best regards,

GlobeDr


author: Caroline R
body: Thanks for your confirmation, [@dequoc](/t5/user/viewprofilepage/user-id/4777163), I'm glad to know everything is working now.


Tags: bitbucket-cloud

cloud
SSH Multiple Command on pipeline ssh-run
Asked by Revan Hernandy:

Hi Guys,

I have a pipeline and need to run 4 .sh files on the mode script and my pipeline as follows :  
- step:  
name: Deploy to ciamsworker01  
script:  
- pipe: atlassian/ssh-run:0.2.2  
variables:  
SSH_USER: $ciamsuser  
SERVER: $server  
PORT: $worker01port  
MODE: 'script'  
COMMAND: './deploy_worker_psr.sh'  
I need to run another command than deploy_worker_psr.sh, is it possible?  
PS : i tried using \&\& and ; and the file become unread(no such file or directory)


Answers:
author: Ben
body: Hey Revan,

Based on the ticket description, it appears you wish to run commands one after the other - if this is the case, I believe that this past community post will answer your question:  
<https://community.atlassian.com/t5/Bitbucket-questions/how-to-use-multiple-command-in-ssh-run/qaq-p/1112696>

Hope this helps.

- Ben (Bitbucket Cloud Support)

comments: author: Revan Hernandy
body: Hi Ben,

It's not working when I put more than one shell file to execute.

The scripts become No Such files or directory please find my screenshot.![SSH1.png](https://community.atlassian.com/t5/image/serverpage/image-id/191578i15B48626AE64BF6D/image-size/large?v=v2&px=999 "SSH1.png")


author: Ben
body: Hey Revan,

Are you able to ensure the path is correct? I'm noticing that there is no "./" on the other bash script listing. Can you maybe try to create a bash script in the same folder as deploy_worker_cwi.sh which echos a message and attempt to run it?

Ie ./Worker-CWI/testscript.sh \&\& ./Worker-CWI/deploy_worker_cwi.sh

By doing so, you can test if it's an issue with the path or with the command/syntax.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Only one authentication method is allowed" error while using Jfrog cli pipe
Asked by a2l:

I'm trying to access Jfrog artifactory from bitbucket pipeline and it is failing with following error. I have configured only one variable in Repository variables using \`JF_ARTIFACTORY_\` prefix and there are no other varaibles with JF_ARTIFACTORY_ prefix at workspace level.

\`\`\`  
pipe: jfrog/jfrog-setup-cli:1.0.03s  
source ./jfrog-setup-cli.sh\<1s  
+ source ./jfrog-setup-cli.sh  
Downloading version 1.37.1 of JFrog CLI...  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0  
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0  
9 19.0M 9 1790k 0 0 15.8M 0 0:00:01 --:--:-- 0:00:01 15.8M  
100 19.0M 100 19.0M 0 0 45.2M 0 --:--:-- --:--:-- --:--:-- 55.6M  
[Info] Importing server ID 'serverid'  
[Error] Only one authentication method is allowed: Username + Password/API key, RSA Token (SSH) or Access Token.  
```````````  
It seems that there are more than one authentication methods being enabled/used but I'm not aware of any other authentication method that is enabled but it is finding something (besides the access token).  
Can anyone help me identify what could be going wrong here?  
``If I use the version 2.13.0 jfrog cli version, I get following error. I could change the version using repository variable ```JFROG_CLI_VERSION`  
```````````  
source ./jfrog-setup-cli.sh1s  
+ source ./jfrog-setup-cli.sh  
Downloading version $JFROG_CLI_VERSION of JFrog CLI...  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0  
100 80 0 80 0 0 439 0 --:--:-- --:--:-- --:--:-- 439  
/usr/bin/jfrog: line 5: syntax error near unexpected token `]'  
/usr/bin/jfrog: line 5: ` } ]'```


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

I would suggest raising an issue here:

* [https://bitbucket.org/jfrog/jfrog-setup-cli/issues?status=new\&status=open](https://bitbucket.org/jfrog/jfrog-setup-cli/issues?status=new&status=open)

This pipe is developed by jfrog, and the repo's README page <https://bitbucket.org/jfrog/jfrog-setup-cli/src/master/> asks users to report issues in that issue tracker.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

jfrog
Allow azure-web-apps-deploy pipeline to deploy to Azure Government Cloud
Asked by Hunde.Keba:

Currently, azure-web-apps-deploy pipeline only deploys to the Azure public cloud. In order to use this to deploy to any other azure cloud other than an azure public cloud (AzureUSGovernment...), the cloud name should be something that could be changed in pipe.sh.   

I create a PR to alter that using an environment variable. [atlassian / azure-web-apps-deploy / Pull Request #14: Allow depploymen to none public azure clouds --- Bitbucket](https://bitbucket.org/atlassian/azure-web-apps-deploy/pull-requests/14/allow-depploymen-to-none-public-azure) Please let us know if this can be merged or if the feature can be added. Thanks


Answers:
author: Theodora Boudale
body: Hi [@Hunde.Keba](/t5/user/viewprofilepage/user-id/4852052) and welcome to the community.

Thank you for the suggestion and the PR.  
We accept contributions to Atlassian pipes, however, they require testing and review.   
We will consider your PR and evaluate it when we can.

Kind regards,  
Theodora

comments: author: Hunde.Keba
body: Thank you, [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) . I will wait to hear back from the team. FYI This is crucial for all government applications hosted on bitbucket. Our team is currently migrating applications hosted on-premise to Azure gov cloud and the current azure pipeline provided by Atlassian doesn't support deploying to Azure gov cloud. The dev team wants to keep using bitbucket for a repository but, this will be determining factor whether we need to move our repository to other services or not. Once again thank you for your support.


Tags: app

azure

bitbucket-cloud

cloud
Access variables in pipelines on Windows runners
Asked by Preethi Sabbineni:

How can we access repo/deployment variables in pipelines scheduled to run on Windows runners?

Able to access environment variables as below.

<br />

script:  
- echo "$env:BITBUCKET_BUILD_NUMBER"

Repo variables doesn't work the same way.

script:  
- echo $username

script:  
- echo "$username"

script:  
- echo '$username'


Answers:
author: Preethi Sabbineni
body: Working as $Env:Name


Tags: bitbucket-cloud

cloud
Filter commits by message via the API 2.0
Asked by Matt Phillips:

The API docs discuss filtering here: <https://developer.atlassian.com/cloud/bitbucket/rest/intro/#supported-endpoints>

However, none of these options work for commits <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commits-get>

I want to get a all commits for a repository where the commit messages matches a particular string. And I want to limit the fields to just date, message and commit hash.


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

I'm afraid that the commits endpoint does not support filtering and sorting at the moment.

It is possible to limit the fields that are returned as follows:

```
https://api.bitbucket.org/2.0/repositories/<workspace-id>/<repo-slug>/commits/?fields=values.date,values.message,values.hash
```

We have a feature request for adding filtering and sorting to the commits endpoint:

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

I would suggest adding your vote to the feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. 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.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

In the meantime, as a workaround, you could retrieve all commits and then use another tool that filters JSON data, like jq, in order to filter the results.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
You want to know how to use docker deamon in pipeline pipe.
Asked by Ray:

I am trying to create a pipe image and upload it to AWS ECR to use.  

\`\`\`

#Dockerfile

    FROM atlassian/pipelines-awscli
    RUN apk add --update docker openrcRUN rc-update add docker boot

<br />

\`\`\`  

The calling method is as follows.  

\`\`\`  
options:  
docker: true  
...  
services:  
- docker  
script:  
- pipe: docker://$ECR_REPOSITORY/$MY_PIPE_IMAGE:latest

\`\`\`

I tried to build docker inside the script created with the pipe image, but it is confirmed that the docker deamon cannot be found.  

Is there any way?


Answers:
author: Theodora Boudale
body: Hi [@Ray](/t5/user/viewprofilepage/user-id/4851929) and welcome to the community.

Which command is giving you an error that the docker daemon cannot be found?

Is it the following command where you are using the pipe?

```
pipe: docker://$ECR_REPOSITORY/$MY_PIPE_IMAGE:latest
```

Or a different command where you are building the pipe's image?

Could you please post here both the command that is failing and also the full output of the command? (Please mask/replace private/sensitive data from the output prior to sharing, if any)

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
ng build is error after using the artifacts
Asked by Chanakya:

if i ran the "npm build " in the first step. It's working fine. but if i split the "npm run" to the next step it's failing and seeing the below error:

Error Block :

```
> xdex-ui@0.0.0 build /opt/atlassian/pipelines/agent/build
> ng build

Node.js version v4.2.1 detected.
The Angular CLI requires a minimum Node.js version of either v10.13 or v12.0.
Please update your Node.js version or visit https://nodejs.org/ for additional instructions.


npm ERR! Linux 5.13.0-1017-azure
npm ERR! argv "/bin/versions/node/v4.2.1/bin/node" "/bin/versions/node/v4.2.1/bin/npm" "run" "build" "--configuration=dev" "--optimization=false"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! xdex-ui@0.0.0 build: `ng build`
npm ERR! Exit status 3
npm ERR! 
npm ERR! Failed at the xdex-ui@0.0.0 build script 'ng build'.
npm ERR! This is most likely a problem with the xdex-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ng build
npm ERR! You can get their info via:
npm ERR! npm owner ls xdex-ui
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/atlassian/pipelines/agent/build/npm-debug.log

```

My pipeline.yml

```
pipelines:    branches:     feature/cicd-test:       - step:          name: install          image: node:14.17.1           caches:            - node          script:            - npm install            artifacts:            - node_modules/**      - step:          name: deploy          deployment: Dev          trigger: manual          script:            - npm run build ## environment specific             - python3 deploy.py
```

please advise.


Answers:
author: Theodora Boudale
body: Hi [@Chanakya](/t5/user/viewprofilepage/user-id/4649435) and welcome to the community.

For every step of your bitbucket-pipelines.yml file, a Docker container starts, the repo gets cloned, the commands of that step's script are executed, and then the container gets destroyed.

For the first step, you have defined an image, *node:14.17.1* . However, since no image is defined for the second step, the second step will use *atlassian/default-image:latest* as a build container that has an older version of node.

What you can do is either add *image: node:14.17.1* in the definition of the second step as well, or add it at the top of your bitbucket-pipelines.yml file.

If you add it at the top of the yml file as follows:

```
image: node:14.17.1

pipelines: 
  branches: 
    feature/cicd-test: 
      [...]
```

then all the steps of your bitbucket-pipelines.yml file will use that image as a build container.

Kind regards,  
Theodora

comments: author: Chanakya
body: Thanks Theodora, it worked. after using the image: in second step.

Also, my command is incorrect.


Tags: bitbucket-cloud

bitbucket-pipelines

build

cloud

node
Publishing a React Website on Bitbucket Cloud
Asked by Kenneth Mulhern:

Hi guys,

Im trying to Publish/Host a ReactJS project on Bitbucket. The project was bootstrapped using create react app therefore the index.html file is within a public folder I.e. root/public/index.html.

I followed the instruction on <https://support.atlassian.com/bitbucket-cloud/docs/publishing-a-website-on-bitbucket-cloud/> but I can't seem to get the site to show.

The url that Ive tried is \[workspaceID\]/[ui-library.bitbucket.io](http://ui-library.bitbucket.io) and \[workspaceID\]/[ui-library.bitbucket.io/public](http://ui-library.bitbucket.io/public) (ui-library being the repo name). Both of these just return 'repo not found' or google search results.

Am I doing something wrong here? I'm new to Bitbucket, I previously use GitHub and GitHub Pages for things like this.

Thanks....


Answers:
author: seanaty
body: It's a bit confusing... to host a public site the workspace name essentially needs to **be a part of** the repository name :)

If my workspace slug (what you see in the URL) is "foo" then I need to create a repository with the exact name "foo.bitbucket.io". It looks like a URL and it is a URL but the same string of text is also the name of the repository.

In summary:

workspace name: foo

repository name (and slug): foo.bitbucket.io

How to access the site <http://foo.bitbucket.io/>

comments: author: seanaty
body: [@Kenneth Mulhern](/t5/user/viewprofilepage/user-id/4851180) please accept this answer if it helps you :)


Tags: bitbucket-cloud

cloud

github

host

publish

react.js
Not receiving transfer emails
Asked by TheDrivingForce:

I've seen a few posts about this and am having the same issue.  

I have initiated transfers of 2 repositories and the new owners are not receiving the transfer emails to approve.

I have double checked the details and am sure they are correct.

[@Caroline](/t5/user/viewprofilepage/user-id/4171250) I believe you assisted someone with a similar issues recently.


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

My first suggestion would be that the new owners check their Spam folder, in case the transfer emails ended up there. Repository transfer emails are sent from notifications-noreply@bitbucket.org

If the transfer emails are not there, please ask the new owners to

1. Log in to <https://community.atlassian.com/> with the same email they use to log in to Bitbucket Cloud
2. Leave a reply here, in this post of yours

I will then be able to view the email of their account and check if that email address is in any of our suppression lists.

Kind regards,  
Theodora

comments: author: TheDrivingForce
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

This is the "other" Derek Hughes that is supposed to be the recipient of the repository transfer but did not get the email.  

The new owner is also me using a different email as we have split the business into two companies. And I am tryingto transfer the repos over to the right company.

I have two totally independent user profiles, one for each company.

I did check and there was nothing in Spam or anywhere else that I could find.

Warm Regards

Derek


author: Derek Hughes
body: Looks like both my BitBucket accounts are linked to ONE Atlassian account...


author: Derek Hughes
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

I have now sorted out my two accounts. In fact the one I posted from originally [@TheDrivingForce](/t5/user/viewprofilepage/user-id/3495134) is the intended new owner of the transfer and this account [@Derek Hughes](/t5/user/viewprofilepage/user-id/4853610) is the current owner that initiated the transfer.

I have still not be able to receive any transfer approval emails.

Any ideas?  

Thanks in advance

Derek


author: Theodora Boudale
body: Hi Derek,

Thank you for the info.

The email address of [@TheDrivingForce](/t5/user/viewprofilepage/user-id/3495134) (who is the intended new owner) is not in any of our suppression lists.

I also checked our email logs and I can see that several emails regarding repository transfer have been sent to the email address of [@TheDrivingForce](/t5/user/viewprofilepage/user-id/3495134), all of them show to have been delivered to your mail server.

I would suggest reaching out to the administrator of your mail server to investigate why the emails don't make it from the mail server to your inbox.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Need git gc on remote repo
Asked by otfsystems:

We are blocked by the 4 GB limit.  

We tried everything here <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/> but the "Delete dangling commits when over size limit" does not do the trick.

How can we get a git gc on our repo?

Thanks


Answers:
author: Caroline R
body: Hi, [@otfsystems](/t5/user/viewprofilepage/user-id/2808100),

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Create app password for another user
Asked by Videstra:

How do I create an app password for a user for a particular repo on my account?

I have several repos, with with different users and need to set them up with the app passwords to push their updates to the repos via GIT bash.

I am the only administrator on the account.


Answers:
author: Karthick S
body: Hello [@Videstra](/t5/user/viewprofilepage/user-id/889942)  

Currently, Bitbucket user management can either be done via groups for workspace or via direct access to a repository. You may create a group in the workspace, add members, add repositories, and set permissions. You may check more about it in [User management for a workspace](https://support.atlassian.com/bitbucket-cloud/docs/grant-access-to-a-workspace/)   

You can also add members for direct access to the repository. You may check more about it in [User management within a repository](https://support.atlassian.com/bitbucket-cloud/docs/grant-repository-access-to-users-and-groups/)   

App passwords are meant to substitute your real account password and are designed to be used for a specific purpose and limited permissions. They can be easily created and revoked when needed. You can reference this [documentation](https://bitbucket.org/account/settings/app-passwords/) for more information.  

I hope this helps.

Kind regards,  
Karthick S


Tags: bitbucket-cloud

cloud