youngmon/atlassian-qna huggingface dataset:
avoid global pattern in pipeline's azure cli integration
Asked by Chris Huang:

I use azure CLI pipe in pipeline, i wanna run the cli command:

az cdn endpoint purge -g $rg --profile-name $profileName -n $name --content-paths '/\*'

but \* is global pattern and it will be always compiled to ![123.png](/t5/image/serverpage/image-id/177534iC6E625F50642DC22/image-size/large?v=v2&px=999 "123.png")

based on this doc <https://support.atlassian.com/bitbucket-cloud/docs/use-glob-patterns-on-the-pipelines-yaml-file/>, i try /'\*', the result looks good:

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

but when i use it in the azure CLI pipe, it shows error:

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

i can run the CLI locally no problems at all:

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

any ideas?

cheers


Answers:
author: Naveen Kumar_Appfire
body: Hi [@Chris Huang](/t5/user/viewprofilepage/user-id/4706570)

Thanks for reaching out to us through community questions!

We have raised a supports ticket on your behalf <https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-9269>. In order to help you in the better way possible, we will need some more details

* Are you on server or cloud?
* What's the CLI version you're using?
* What's the platform version you're using?
* Can you include some screenshots of the error you're seeing?
* Please share the command you've run.
* Please share the screenshot of the error you are getting when running your command by adding the --debug parameter in the end for us to further analyze.

We are looking forward to your answers.

Thanks,  
Naveen


Tags: azure

bitbucket-cloud

bitbucket-pipelines

cli

cloud
Bitbucket pipeline fails with Serverless deploy
Asked by gerard:

Hi! I am currently running serverless deploy in our build pipeline. It launches the Cloudformation Stack update but fails during the removing of the old S3 artifacts step. This only happens on the other branch that we have, Beta. We have an Alpha branch with more lambda functions (17 in alpha, 14 in beta) and the same pipeline steps, but it completes successfully.

![Screen Shot 2022-01-13 at 1.05.41 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/177514i257285F63C0AF750/image-size/large?v=v2&px=999 "Screen Shot 2022-01-13 at 1.05.41 PM.png")

![Screen Shot 2022-01-13 at 1.27.36 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/177516i607CA2A8782699AA/image-size/large?v=v2&px=999 "Screen Shot 2022-01-13 at 1.27.36 PM.png")

I have already increased the size of the step to 2x since I'm assuming that it needs to have the more memory since the Fail message is **Container 'Build' exceeded memory limit**.

![Screen Shot 2022-01-13 at 1.08.51 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/177515iFA1EEDF4908A4F9D/image-size/large?v=v2&px=999 "Screen Shot 2022-01-13 at 1.08.51 PM.png")

The commands work on my macbook M1.

Has anyone encountered this issue?


Answers:
author: Igor Stoyanov
body: [@gerard](/t5/user/viewprofilepage/user-id/4706208) hi. Thanks for your question. Maybe these links will help you:  

[bitbucket-pipeline-container-build-exceeded-memory-limit](https://stackoverflow.com/questions/69567808/bitbucket-pipeline-container-build-exceeded-memory-limit)   

[how-can-i-fix-bitbucket-pipelines-from-crashing-when-running-out-of-memory](https://stackoverflow.com/questions/67081755/how-can-i-fix-bitbucket-pipelines-from-crashing-when-running-out-of-memory)

Regards, Igor

comments: author: gerard
body: Hi [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492)

Thanks for the feedback. I have already applied the things that are in the link you gave before. But I still had the same issue. Though I was able to fix my pipeline by changing my node image version from 10.0.0 to 14.17.0


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Workspace with multiple projects, can specific user groups be added to new repos
Asked by Benjamin Adcock:

We have a Bitbucket Cloud Workspace shared between multiple Teams via Projects.  
For example lets have a Frontend Project and a Backend Project.  

For each new repo created in either Project, we would like a specific group of users added by default.  

Is this possible at all within Bitbucket Cloud?  


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

Currently, it's possible to set a group to be added by default to new repositories in a workspace. In this case, you can add all the users who need access to these repositories to groups and assign this default permission to this group.

You can add this default permission to a group by following the next steps:

* Open the workspace \> Go to **Settings** \> **User groups**

* Open the group you want to be added by default to new repositories

* Click **Edit**

* Under **Automatically assign permissions for new repositories**, select the type of permission you want to this group

* Repositories added to this workspace will automatically receive this permission

However, in this case, this group will be added to all the new repositories. As you mentioned you have 2 different groups and they need different accesses, I believe this wouldn't solve your problem.

#### What would solve this case would be the Bitbucket project-level permissions, which is in our roadmap for this year as you can see here: {#toc-hId--485439154}

* <https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket>

We also have a feature request in progress to allow users to manage repositories access with Project Permissions as you can see here:

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

I would suggest that you add yourself as a watcher (by selecting the **Start watching this issue** link) if you would like to be notified by email about any updates.

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
I want to rename a repository but cannot access settings!
Asked by Paul Gigliotti:

I want to rename a repository to move it out of the way so I can create a new repositry with the original name. All the solutions talk about accessing the setting to rename the repo, but I cannot find how access a settings option!!


Answers:
author: R Arda Duman
body: Hello [@Paul Gigliotti](/t5/user/viewprofilepage/user-id/4706116)

Welcome to the community.

You can change your repository name by following the below steps:

* Go to your repository.
* On the left side click on the ![gear.png](https://community.atlassian.com/t5/image/serverpage/image-id/177497i8577804E478C7712/image-dimensions/20x15?v=v2 "gear.png")**Repository Settings**. If you can not see this option it means you don't have admin right for the repository. You first need admin right to be able to change the repository name.
* On**Repository details** page change the **Name** field and click **Save** button.

<br />

Do let us know if you have further questions.

Regards.  
Arda Duman


Tags: bitbucket-server

server
pipeline mvn build stopped working on makensis
Asked by Volker Vo?k?mper:

my existing pipeline stopped working on building windows setup with makensis for no understanable reason.

<https://bitbucket.org/cenote/jasperstarter/addon/pipelines/home#!/results/127>

with error:

\`\`\`

\[INFO\] --- exec-maven-plugin:1.3.1:exec (windows-setup-compile) @ jasperstarter ---  
/opt/nsis-2.46/bin/makensis: 1: /opt/nsis-2.46/bin/makensis: Syntax error: word unexpected (expecting ")")

\`\`\`

The build uses my own docker image which did not change since 3 years:

<https://hub.docker.com/repository/docker/cenote/jasperstarter-env>

Using the same docker image localy works fine.

What's wrong? What can I do?


Answers:
author: Theodora Boudale
body: Hi [@Volker Vo?k?mper](/t5/user/viewprofilepage/user-id/1110566),

Since your repo is public, I cloned it, reset to the commit of the failed build, and debugged it locally with Docker using your image. I can also see that the build succeeds locally but fails in Pipelines.

I went ahead and created a support ticket for this issue so we can investigate further, you should have received an email with a link to the support ticket. The engineer working on your issue will reply to that ticket.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora

comments: author: Volker Vo?k?mper
body: Hi Theodora,

I was really a bit desperate about that I cannot open an issue for this.

So I am very happy to see, that it takes its way here and I get a support ticket.

Thank you very much.

Volker


author: Theodora Boudale
body: Hi Volker,

You are very welcome. When the issue gets resolved, you can post the solution here if you have time, for any other users with a similar issue who may come across your post.

Regarding the ability to create a support ticket, Bitbucket Cloud support has aligned our support offering for free licenses to our other Cloud products - see <https://confluence.atlassian.com/support/atlassian-support-offerings-193299636.html>. As of 1st July 2021, we provide support for workspaces on the free plan in community, we have support staff checking in regularly to help.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

maven
No understanding of bitbucket. Just want to report bugs on Someone Else's project. How?
Asked by Hogwild:

Hi:

I have zero understanding of coding or change management.

I created an account here to be able to report bugs in SOMEONE ELSE'S project:

[pedro311 / freshtomato-arm / issues --- Bitbucket](https://bitbucket.org/pedro311/freshtomato-arm/issues?status=new&status=open)

But if I log on to my account from that page, it takes me to to my own project page. How do I logon to Bitbucket, but post bug reports to the above particular project (again, not my project, as I have no coding skills).

Thanks


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

I understand that when you log in to Bitbucket (while accessing the issue tracker page you linked here), you get redirected to the Bitbucket Overview page after logging in, instead of to the page you were previously viewing, is that correct? If that's the case, you can just access the issue tracker page again after you have logged into your Bitbucket account.

I also tested accessing it using an Incognito window and when opening the issue tracker, then log in, after going to the issue tracker page again, the "Create issue" is missing, probably because of cache, so I need to do a hard refresh for it to show.

I'm not sure if you are facing this issue, but if you are, you can open the link of the issue tracker after you log in, and if you don't see the "Create issue", you can just do a hard refresh in the page.

In case you are facing a different problem, please let me know exactly what happens, so we can further investigate this issue.

Looking forward to hearing from you.

Kind regards,  
Caroline


author: Ulrich Kuhnhardt _IzymesCo_
body: The other party's workspace/project/repository issue tracker must be public to allow you to create tickets there. Check with the other party and get the link to their issue tracker.

comments: author: Hogwild
body: It's public. I know this because I've posted there before, and it's common knowledge.

Thanks for the idea, though.


Tags: bitbucket-cloud

cloud
How does two-factor authentication affect authentication for scripts running in pipelines?
Asked by BSYF:

Hello,

We have a question about how turning on two-factor authentication in Bitbucket accounts will affect our pipeline scripts.

First, in the Build Setup section (which is BitBucket's code) there is a line that runs git clone with "https://x-token-auth:..." access.

git clone --branch="master" --depth 50 <https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git> $BUILD_DIR

In the documentation for turning on two-step verification (2FA), it says "Enabling two-step verification will disable all remote HTTPS actions for Git and the Bitbucket API. Any applications which use HTTPS to access Bitbucket will be impacted."

I'm imagining that the above clone action will not be impacted, but want to be sure I understand why.

And, I have the same question about scripts that we run in our pipelines. Do we have initiate an SSH session before running git clone in our scripts, or are we already running in SSH?

Thanks and Best Regards,  
Josh


Answers:
author: Syahrul
body: Hey [@BSYF](/t5/user/viewprofilepage/user-id/1094956)

G'DAy!

The pipeline build setup uses internal authentication and not your personal authentication, so any changes on your account will not affect the build setup.

As for your script, you don't need to initiate SSH sessions before running the git clone. Git clone will automatically look for what your git config is before cloning via HTTPS or SSH.

Please check our guide below on how to clone/push back to your repositories via HTTPS or SSH at:

* [Push Back to your repositories.](https://support.atlassian.com/bitbucket-cloud/docs/push-back-to-your-repository/)

I hope this helps, please let me know if you have any additional questions.

Cheers,  
Syahrul

comments: author: BSYF
body: Thank you Syahrul, very helpful to know this.

With Best Regards,  
Josh


Tags: 2-factor-authentication

bitbucket-cloud

bitbucket-pipelines

cloud

ssh
Access Jira issues from bitbucket - Jira server with Bitbucket Cloud
Asked by Kasper:

In our company we have a Jira server solution combined with Bitbucket cloud.  
These are linked together, and from Jira side the integration works, I can view the status of Bitbucket PRs and click them to directly navigate to the relevant page. But in our Bitbucket project the integration with Jira does not work. When clicking the Jira issues menu option I see a generic 'try out Jira' page. The connection is setup in Bitbucket, because Jira has access to all Bitbucket data. But I can not figure out which setting to change to gain access to Jira issues from Bitbucket. I have admin access for the project and repositories in it.

Kind regards,

Kasper


Answers:
author: Caroline R
body: Hi, [@Kasper](/t5/user/viewprofilepage/user-id/4705440)! Welcome to the community!

Currently, Jira issues tab only renders issues from Jira Cloud instance and not Server. We already have a feature request to render issues from Jira Software Server as well:

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

I would suggest that you add your vote there (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.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
I stopped receiving bitbucket email notifications since one month
Asked by Sarvagya Dixit:

I have been using my bitbucket account with  
credentials : \<email removed due to privacy reasons\> since 2 years but since few weeks i am not getting any notification or email from bitbucket merge/ pull or repo invite emails .

I already check with client \& administrator but nothing has changed on their end.

<br />

<br />

<br />

<br />


Answers:
author: Caroline R
body: Hi, [@Sarvagya Dixit](/t5/user/viewprofilepage/user-id/4705307)! Welcome to the community!

I checked our logs and confirmed your email is not on any suppression list. In this case, could you please check if your profile if the notifications are enabled? You can access the following link to confirm that:

* <https://bitbucket.org/account/settings/notifications/>

Also, you mentioned you are not receiving invitations either, so I understand someone has invited you to join a workspace/repository, is that correct? If that's the case, you or the admin who invited you can open a support ticket with us using this link <https://support.atlassian.com/contact/> \> select **Technical issues and bugs** \> **Bitbucket** \> and select the option **Yes** under "Are you having an issue with Bitbucket workspace invitations?", so we can further investigate this case.

Kind regards,  
Caroline

comments: author: Sarvagya Dixit
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)   

I have one more email id : \<email removed due to privacy reasons\> which is of different entity of my organisation and when i am trying to add this as Email aliases or trying   
to sign up with this mail , i am not able to receive verification/confirmation email .   

Neither i am able to add this as Email aliases nor able to sign up .  

Please help to get this checked


author: Caroline R
body: Hi, [@Sarvagya Dixit](/t5/user/viewprofilepage/user-id/4705307).

This second email had a block on the server that prevented emails from being sent to them, so I removed this address from the suppression list. Could you please test it now and confirm if you receive the emails?

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Can't receive invitation email
Asked by Kasper Vandermaesen:

We are trying to add a new member to our (free) Bitbucket account, but the invitation mail does not seem to get delivered.

I discovered we had already 5 member, so I removed one, but the result seems the same. Even after cancelling the invitation and creating a new invitation (as I read in other questions), no success.


Answers:
author: Caroline R
body: Hi, [@Kasper Vandermaesen](/t5/user/viewprofilepage/user-id/455350)!

Thank you for reaching out to Atlassian Community!

I checked the pending invitations sent on the workspace you have access to and confirmed that one of the users who hasn't accepted the invitation yet had a block on the server that prevented emails from being sent to them, so I removed this email from the suppression list.

Just to give you some context around this issue, it can occur when the system tries to send an email to the user and the account does not exist yet, is not activated, or it rejects the email for some internal reason.

Now, could you please remove the invitation and send them a new one? You can do this by following the next steps:

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

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

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

* Click on the "**invitation pending**";

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

* Add the email again to send a new invitation.

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

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

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

* Click on the "**invitation pending**";

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

* Add the email again to send a new invitation.

In case they still don't receive the email, could you please check if there are any quarantined emails on the server?

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
How to pass flags to a script using script mode with ssh-run?
Asked by Emptyfruit:

How can i pass some flags to a script using script mode with ssh-run?

```
- step:
    name: test script
    script:
      - pipe: atlassian/ssh-run:0.4.0
        variables:
          SSH_USER: ...some_users...
          SERVER: ...some_ip...
          MODE: 'script'
          COMMAND: 'test.sh'
```


Answers:
author: Norbert C
body: Hi [@Emptyfruit](/t5/user/viewprofilepage/user-id/604094)

Thank you for contacting Atlassian Community. My name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet you!

I'd like to inform you that unfortunately it's not possible to pass flags to a script, once you run it in a script mode. In case you wish to run a script and passing a flag, I'd like to recommend you to copy the script to the server and switch to "command" mode instead of "script"

Please let us know if you have any further question?

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

ssh

ssh-run
JFrog support
Asked by Andrew Zyman:

Hi,

does Atlassian supports jfrog in pipelines?

There are dead links, outdated documentation ( github has v2 of cli) and unassigned tickets for almost a year...


Answers:
author: Theodora Boudale
body: Hi [@Andrew Zyman](/t5/user/viewprofilepage/user-id/4703729),

This pipe

* <https://bitbucket.org/jfrog/jfrog-setup-cli/src/master/>

is not developed by Atlassian, it is developed by Jfrog team.

I would suggest reaching out to them to ask about their plans with the pipe.

Since their issue tracker seems to be inactive, you could try one of the contact options mentioned here:

* <https://jfrog.com/contact-us/>

Kind regards,  
Theodora


author: Pramodh M
body: Hi [@Andrew Zyman](/t5/user/viewprofilepage/user-id/4703729)

Here is link for Bitbucket Pipe to setup Jfrog CLI

<https://bitbucket.org/product/features/pipelines/integrations?p=jfrog/jfrog-setup-cli>

This will install jfrog CLI on your runner

For commands reference, please find the link here

<https://www.jfrog.com/confluence/display/CLI/JFrog+CLI>

Thanks,  
Pramodh

comments: author: Andrew Zyman
body: Pramodh,

thank you. These are the exact links i've been working off .

Im probably confused, but:

[https://bitbucket.org/jfrog/jfrog-setup-cli/issues?status=new\&status=open](https://bitbucket.org/jfrog/jfrog-setup-cli/issues?status=new&status=open) - no tickets have been worked on for a year. And there seemed to be issues with v2/v1 compatibilities?

<https://github.com/jfrog/setup-jfrog-cli> - has been updated to V2 already.

JFROG_CLI_VERSION - mentioned in the cli [pipe](https://bitbucket.org/product/features/pipelines/integrations?p=jfrog/jfrog-setup-cli) doc, but not in the [confluence](https://www.jfrog.com/confluence/display/CLI/JFrog+CLI)

Id like to know:

is the product is been maintained?

what is the expected delivery for pipe V2?


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

jfrog