youngmon/atlassian-qna huggingface dataset:
Helping someone else get repos setup in advance
Asked by Andrew Hardy:

Sorry to trouble you - this may be a stupid question or obvious, but I just want to be sure.

<br />

I want to help get someone else setup with some repos in advance (amongst other things, local env vars, checking etc).

<br />

And I wonder if you could confirm that the following process would work

I use bitbucket ssh authentication  
so on their pc  
add my own ssh private key file to the file system  
login to bitbucket in the browser  
call the clone commands  
use my passphrase to access  
check all is working  
logout of bitbucket in browser  
delete my private key  
later get other person setup on bitbucket  
set on bitbucket their public ssh  
add their ssh private key to their file system  
they login to bitbucket in browser  
from here presumably they can...  
with the repos setup  
pull, push, etc etc from their pc

Or have I missed something?

Is there an issue of me accessing from a differnt machine / ip?


Answers:
author: Syahrul
body: Hey [@Andrew Hardy](/t5/user/viewprofilepage/user-id/3657115)

G'Day!

While you may remove your ssh key from the user machine, you may have left the [local git config](https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-config) of the clone repo un-touch which still points to your username and ssh key.

This causes the git to look for your ssh key and username when the user tries to do any git activity because the local git config still points to your config.

You can use the following commands to check user local git config:

```
git config --list?
```

Additionally, if you wish to further troubleshoot the issue you can use the following commands to check if it's using the correct ssh key or username:  

```
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -vvv" <git command>
```

I hope this helps

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
How to skip jenkins autotrigger from bitbucket for certain file changes like jenkinsfile and config
Asked by naresh2389:

HI,

How to skip jenkins autotrigger from bitbucket for certain file changes like jenkinsfile and config.

If i do any change in jenkins file or config file jenkins job is triggering automatically.


Answers:
author: Syahrul
body: Hi [@naresh2389](/t5/user/viewprofilepage/user-id/4332553)

G'Day!

When a webhook is configured, it will get triggered for all events specified in the webhook's triggers. Unfortunately, it's not possible to have an exclusion for specific file change so it doesn't trigger the webhook.

I have proceeded to raise a feature request on behalf of you at:

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

Please **Vote \& Watch**the feature request so that you'll receive an update whenever we have any.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
I cannot clone a Bitbucket repository from a Windows based Sourcetree installation.
Asked by nexgencodecamp:

Hi,

I am using Bitbucket and Sourcetree with a number of students. I found that connecting Sourcetree to Bitbucket on a Mac extremely easy and it worked 100%. Windows however was another story.

A couple of students ended up getting this ridiculous credential 'helper' with about 12 options, none of which made any sense at all. I've attached an image of a version of this dialog.

I believe the issue is oAuth was perhaps not connected. However everything seemed to be correct: We granted access to Sourcetree, the user was logged on, the remote URL was correct. It would try to clone but just give us a progress bar animation that was clearly doing nothing. Seemingly it created the .git folder but fetched no files.

There was no real error. It just hung there seemingly cloning OR the credential helper box kept coming up. We tried most if not all the options in the helper dialog, however none of them would have made any sense to any normal person. You might want to look at that from a UX point of view.

I did actually get it working on 2 or 3 windows machines, however the one that got stuck gave us no clue as to what was going on apart from the dialog

Many thanks

Pete..![Screen Shot 2021-04-29 at 8.54.43 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/141104i2751947BFF55BE2F/image-size/large?v=v2&px=999 "Screen Shot 2021-04-29 at 8.54.43 pm.png")


Answers:
author: Gonchik Tsymzhitov
body: Hi [@nexgencodecamp](/t5/user/viewprofilepage/user-id/113951) ,

Thank you for the explanation. I do agree Mac and SourceTree, (as I use as well mac and sourcetree).

Regarding windows I see the next articles quite helpful for your situation

* <https://stackoverflow.com/questions/52756305/atlassian-bitbucket-sourcetree-git-credential-manager-prompt>
* <https://community.atlassian.com/t5/Sourcetree-questions/Git-Credential-Manager-for-Windows-Popups/qaq-p/579905>

comments: author: nexgencodecamp
body: Hi Gonchik,

Thanks for your reply. I took a look at the articles. The first one might be the answer. Either way, we'll have to 'clear out' the existing setup and start again. I think the student may have clicked something inadvertently that stuffed us - neither windows nor sourcetree was good enough to redeem that 'click'

Cheers

Pete...


author: nexgencodecamp
body: Hi Gonchik,

I tried this today in class with the 2 students concerned. Windows Network Credential Manager was not relevant as there were no windows credentials stored. After banging my proverbial against the wall several times we decided to download Git for Windows and use the command line.

This worked!

I tried to setup the other student and same issue with Sourcetree: credential manager keeps coming up. The command line worked for him as well.

Others using Windows are fine - just can't fix Sourcetree on these 2 machines. Nevertheless, I found the workaround

Pete...


Tags: bitbucket-cloud

cloud

oauth

sourcetree
I am unable to see the anything in the pipeline window after creating a project in C language
Asked by Deepu Chandran:

Created a C language repository and trying to add a batch script in the pipeline to automate static analysis using a third-party tool. Unfortunately, I am not seeing any option/template (an empty window) in the pipeline window to start a new action.


Answers:
author: Justin Thomas
body: [@Deepu Chandran](/t5/user/viewprofilepage/user-id/4372203) This shouldn't be happening, can you please raise a [support ticket](https://support.atlassian.com/contact)?


Tags: bitbucket-pipelines
Bitbucket cloud to Jira server refresh sync failes
Asked by Viktor Kuzmychov:

I have successfully synced Bitbucket cloud to my on-prem Jira server.

The only thing is not working - automatic update in Jira after changes in Bitbucket e.g. commit, PR, new branch.

I have to go to DVCS accounts and manually refresh repository

Anyone could help with that?

Connection was using this guide:

<https://confluence.atlassian.com/bitbucket/connect-bitbucket-cloud-to-jira-server-applications-814208991.html>


Answers:
author: Syahrul
body: Hey [@Viktor Kuzmychov](/t5/user/viewprofilepage/user-id/212780)

G'Day!

Looking at the behavior you mention this usually happens when the Jira server is behind a firewall and unable to communicate to part of our webhook hence only some feature that is working.

Logs would further verify this issue by generating the Support.zip log to further investigate and if it's an issue with the network I suggest checking our guide below on the list of IPs to whitelist to make sure your integration is working properly at:

* [What are the IP addresses to configure a corporate firewall?](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/)

If you are getting different errors in the logs feel free to share it here so we can troubleshoot further.

I hope this helps

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud

jira-server
Which region the pipeline run the docker
Asked by emanuel:

Hello,

We have a specific pipeline that we must run from us-east-x.  
Is there a way to limit this specific pipeline to run from this region?

Thank you


Answers:
author: Justin Thomas
body: [@emanuel](/t5/user/viewprofilepage/user-id/4170786) Have you considered using [Bitbucket Pipelines Runners](https://support.atlassian.com/bitbucket-cloud/docs/runners/) for executing your pipeline?

Bitbucket Pipelines Runners allows you to execute a pipeline on your own infrastructure.


author: emanuel
body: \^ someone?


Tags: bitbucket-pipelines

cloud
HTTP/1.1 404 when using the POST method creating new Bitbucket repos
Asked by tekknj214:

I have successfully created host repos using the 2.0 version of the API on Bitbucket Cloud.

The following is the curl command used.

curl -u username:password -X POST -H "Content-Type: application/json" -d '{"scm": "git", "is_private": "true"}' <https://api.bitbucket.org/2.0/repositories/userspace/testreponame>

However, using basically the same command string on Bitbucket v7.8.1 Server, I receive HTTP/1.1 404 errors. All I did is replace the domain name and add the project key.

curl -u username:password -X POST -H "Content-Type: application/json" -d '{"scm": "git", "is_private": "true", "project": {"key": "PROJ"}}' [https://bitbucket.\<domainname\>.com/2.0/repositories/userspace/testreponame]()

What is the solution to this error? I can ping the host name. So it doesn't make sense why the curl error message reads: curl: Couldn't resolve host 'POST'.

Update: The "Couldn't resolve host 'POST' resolved by not using the git-bash shell. Instead, using CentOS 7 gnome-terminal. With that said, I haven't resolve the original issue. Still receiving the 404s. Maybe the \<userspace\> is not right? Cloud vs. Server versions are doing something different.


Answers:
author: tekknj214
body: While looking for one answer, I discovered two. Question, why must the format of the command have to be different between the two versions of the API. Very confusing.

This part of the command string is same between the two API versions:  
**curl -u username:passowrd POST -H "Content-Type: application/json"**

The values in the \<...\> brackets are the user defined variables.

API v2.0 which I used with Bitbucket Cloud  
**-d '{"scm": "git", "is_private": "true", "key": "\<projectkey\>"}' \\**   
**[https://api.bitbucket.org/2.0/repositories/\<userspace\>/reponame]()**

API v1.0 which I used with Bitbucket Server v7.8.1  
**-d '{"name": "\<reponame\>", scm": "git", "is_private": "true", "key": "\<projectkey\>"}' \\**   
**[https://bitbucket.\<domainname\>.com/rest/api/1.0/projects/\<projectkey\>/repos]()**


author: tekknj214
body: .


Tags: bitbucket-server

server
Is bitbucket-pipelines.yml triggered only in specific branch?
Asked by alstaroverov:

can bitbucket-pipelines.yml be in any branch? Suppose I have a repo with multiple branches ( master, develop, feature_cool_feature_1, etc.) and have bitbucket-pipelines.yml in every, contains:
> pipelines:  
> default:  
> - step:  
> {unittests running}

Will they work altogether when merge any branch? Or only 1 bitbucket-pipelines.yml will work according to branch where code is merged?


Answers:
author: Justin Thomas
body: [@alstaroverov](/t5/user/viewprofilepage/user-id/4370482) The Bitbucket Pipelines definition is based on the branch that has changed.

For example: If I push a commit to the *development* branch, then *bitbucket-pipelines.yml* from the *development* branch is used as the Bitbucket Pipelines definition. Please let me know if you have further questions.


Tags: bitbucket-cloud

cloud
Can I run and check the output of a git hook in a merge check script?
Asked by Ionut Eduard Oprescu:

Hello,

I am trying to set up a merge check script that will reuse an existing pre-commit git hook in my repository(from the ".git/hooks" folder) and if the hook returns the ok status I will allow the merge.

From my understanding the ".git/hooks" folder is only local so I will upload the hook somewhere in the repo if that is needed.

My main goal is to check if that hook returns OK when someone is trying to merge into the main branch because that will be easier for newcomers that do not have the hook setup locally.

Also some way of checking the hook on the server side when they are pushing would help.

Is there any way to achieve this behavior using Scriptrunner or maybe other basic git functionalities?

Thank you!


Answers:
author: Robert Giddings [Adaptavist]
body: Hi [@Ionut Eduard Oprescu](/t5/user/viewprofilepage/user-id/4368084) ,

Firstly I'd like to clarify if you are using Bitbucket Cloud or Bitbucket Server/DC?

I ask, because the tags for this Community question are for both Bitbucket Cloud and ScriptRunner. However ScriptRunner is currently only compatible with Bitbucket Server/DC.

If you are using Bitbucket Server/DC, then the ScriptRunner for Bitbucket team would first recommend you try and rewrite your local pre-hook as either a server-side custom pre-hook or merge-check using ScriptRunner.

The documentation for a custom pre-hook can be found here: [https://docs.adaptavist.com/sr4bib/6.25.0/features/script-pre-receive-hooks/custom-pre-receive-hooks](https://docs.adaptavist.com/sr4bib/6.24.0/features/script-pre-receive-hooks/custom-pre-receive-hooks)

And the documentation for a custom merge-check can be found here: <https://docs.adaptavist.com/sr4bib/6.24.0/features/script-merge-checks/custom-merge-check>

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket

comments: author: Ionut Eduard Oprescu
body: Hello,

I do have ScriptRunner in my repository settings so using the pre-hook or merge-check is the way to go, but at the same time I am looking for a way to reuse my existing local hooks in those scripts.

Maybe that could be a good addition to ScriptRunner functionalities.

Thank you for your answer!


author: Robert Giddings [Adaptavist]
body: [@Ionut Eduard Oprescu](/t5/user/viewprofilepage/user-id/4368084) ,

Thank you for your answer.

I'm guessing that currently the issue is that your local hooks are written in a language other than Groovy? And hence require re-writing for ScriptRunner.

It is something we will consider. But for now is not something we currently support.

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket


author: Ionut Eduard Oprescu
body: That is the case, my scripts are in bash/sh.

I marked the question as answered since I got the info I needed.

Thank you for your replies!


Tags: addon-com.onresolve.stash.groovy.groovyrunner

bitbucket-cloud

cloud

scriptrunner
How to use SSO on Bitbucket Cloud
Asked by bgrajower:

I need to add SSO with provisioning to Bitbucket Cloud.

I have Okta as IdP.

Thanks


Answers:
author: Gonchik Tsymzhitov
body: Hi [@bgrajower](/t5/user/viewprofilepage/user-id/4169781) ,

Please, use the Atlassian access and SAML to connect okta

<https://saml-doc.okta.com/SAML_Docs/How-to-Configure-SAML-2.0-for-Atlassian-Cloud.html>

<https://support.atlassian.com/provisioning-users/docs/configure-user-provisioning-with-okta/>

comments: author: Poat
body: this doesn't explain the Bitbucket piece - Atlassian sure


author: bgrajower
body: This does apply to Bitbucket.


Tags: bitbucket-cloud

cloud
Default access to private repositories
Asked by v-hleb.v:

Good day!

We are using a private workspace with a lot of repositories, groups and users. We want to grant read access to all repositories for all our users and probably write access to some of repositories. I have had imagination that if we grant read default repository access ("Members have this access to new workspace repositories") to a group then the group members should have read access to all repositories created after the group. But it seems that works differently.

So the question is are there any way to grant access to all members except that we add new group and add it with required privileges to every single repository?


Answers:
author: Syahrul
body: Hi [@v-hleb.v](/t5/user/viewprofilepage/user-id/4080990)

G'Day!

With the new Bitbucket user management interface, you can now update repositories access directly from the Groups tabs without re-creating and transferring users into new groups or onto each repository.

![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) This can only work if you have already pre-configure your user into an existing group. The user that is not in any of the groups will not have their access updated.

You can navigate to **Workspace settings** \> **User Groups** \> Select the group you wish to update their access on this example (**Developer**) group:

1. Update the group repositories access by clicking **Add repositories** on the top right corner and select all repositories to add into the groups if you wish to add all, otherwise, just select which repositories to be added into the group. (You can configure the repositories access from here as well)![Screenshot 2022-01-11 at 3.31.36 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/177165iD2E5F3B355C09C54/image-size/large?v=v2&px=999 "Screenshot 2022-01-11 at 3.31.36 PM.png")
2. Click the repositories tab ![Screenshot 2022-01-11 at 3.20.15 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/177166i40F2EDCB6CF91138/image-size/large?v=v2&px=999 "Screenshot 2022-01-11 at 3.20.15 PM.png")
3. Select the tickbox beside the name to select the first 20 repositories in your list and click **Edit Permission** to update the current all 20 repositories access on that groups, you can select from read, write, admin. Clicking **Confirm** will change all the repositories access.![Screenshot 2022-01-11 at 3.24.07 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/177164i177963123C245C1B/image-size/large?v=v2&px=999 "Screenshot 2022-01-11 at 3.24.07 PM.png")
4. Repeat Step two again on the next page for all the repositories you wish to update the group permission

This should speed up the process to update the user access. Let me know if you have any additional questions.

I hope this helps.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Space and Page level permissions
Asked by Wendy M:

Hi there,

I am a little (or a lot) confused by the space permissions and page-level restrictions on Confluence cloud. I really thought I understood it all, but apparently not.

In our space permissions, we have a group called "General Users", which gives general access to all employees with view and add permissions. User A is part of this group.

On a particular page, I have set restrictions so that the "General Users" only has view permissions and other user groups are granted edit permissions. In my understanding since on this specific page "General Users" only has view permissions, User A should not be able to edit the page, but he can.

User A is not included in any of the groups that have edit permissions on the page.

What am I missing?

Thanks


Answers:
author: Dave Mathijs
body: Hi [@Wendy M](/t5/user/viewprofilepage/user-id/1007070) Is User A member of any groups who have edit permissions?

comments: author: Wendy M
body: Hi [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590)

No. He is not, that is exactly what is confusing me.


Tags: cloud

confluence-cloud

permission

restriction
mass export of labels used in confluence
Asked by Manuela Tabares Acevedo:

You can massively export the tags used in confluence


Answers:
author: Manon Soubies-Camy
body: Hi [@Manuela Tabares Acevedo](/t5/user/viewprofilepage/user-id/4728982),

You can go here to get the list of all labels used in your Confluence site:

```
https://yourConfluenceName.atlassian.net/wiki/labels/listlabels-alphaview.action
```

Hope this helps,

- Manon

comments: author: Manuela Tabares Acevedo
body: Hello, I don't see this link


author: Manon Soubies-Camy
body: You need to replace yourConfluenceName with your Confluence name. For example:

* If you access Confluence on <https://aclsandbox.atlassian.net/wiki/home>
* Then your Confluence name is aclsandbox
* And you can see here the list of your labels: <https://aclsandbox.atlassian.net/wiki/labels/listlabels-alphaview.action>


author: Manuela Tabares Acevedo
body: Thank you very much, I managed to enter and this can be exported in an Excel?


author: Manon Soubies-Camy
body: Glad it helped! I'm not aware of an Excel export feature unfortunately.


author: Manuela Tabares Acevedo
body: Ah ok, Thank you very much for your help!!


author: Manuela Tabares Acevedo
body: And can I ask you a different question, do you know how to export all the spaces I have created?


Tags: cloud

confluence-cloud

label
Various
Asked by Caroline Lesoing:

Hello,

We want to take a knowledge base tool, but we have many questions

- If tomorrow we have to stop, can we recover the data easily?

- Is it possible to search for documents shared in Sharepoint?

- Can we easily add additional licenses?

Thanks


Answers:
author: Juan Carlos Vera
body: Hi [@Caroline Lesoing](/t5/user/viewprofilepage/user-id/5186812) ,

Answering to your questions ;)

* If tomorrow you had to stop using Atlassian Confluence, it is possible to easily recover your data. Confluence has a built-in data backup feature that allows you to backup your data on a regular basis. You can also export all of your content and attachments from Confluence in a variety of formats including HTML, XML, and PDF, which can be used to import your data into other systems if needed.
* While Confluence does not have native integration with Microsoft SharePoint, it is possible to search for documents shared in SharePoint by using Confluence's search functionality.
* And the last... Yes, adding additional licenses to Confluence is a straightforward process. You can purchase additional licenses through Atlassian's website or through an Atlassian partner, and then easily add the new licenses to your Confluence instance through the administration settings.


author: Sam Nadarajan
body: Hello [@Caroline Lesoing](/t5/user/viewprofilepage/user-id/5186812) and welcome to the Community!

Based on my understanding of you questions:

1. Confluence does offer export functionality so you wouldn't lose your data unexpectedly: <https://support.atlassian.com/confluence-cloud/docs/export-content-to-word-pdf-html-and-xml/>
2. This isn't currently available through Confluence search as it's an external tool. You can add links to sharepoint in Confluence pages to quickly reference specific content there.
3. Yes! This is very straightforward and is as simple as adding a user to a group or granting the user a license individually.

Hope this helps!


Tags: cloud

confluence-cloud
Can I add a banner to a site and all its subsites?
Asked by Diana Br?ndle:

Is it possible to enter a banner or info on a site and all its subsites?

Examle:

**Site 1 Latest news**   
-\> automatic tranfer to child sites:

Site 1.1 Latest news  
Site: 1.1.1 Latest news   
...  
Site 1.9.9.9 Latest news

I am not an administrator...


Answers:
author: PJ Dal Pozzo
body: Hi yes you can add text in the header and footer on every page! See <https://support.atlassian.com/confluence-cloud/docs/insert-confluence-wiki-markup/>

comments: author: Diana Br?ndle
body: Thank you!


author: Dave Mathijs
body: Hi [@Diana Br?ndle](/t5/user/viewprofilepage/user-id/5186809) welcome to the Atlassian Community!

When you're talking about a site, do you mean a Confluence Site, a Confluence Space or a Confluence Page?

comments: author: Diana Br?ndle
body: Hi [@Dave Mathijs](/t5/user/viewprofilepage/user-id/5115728) ,   
Thank you!   
I think I am talking about Confluence pages and its subpages.   


Tags: cloud

confluence-cloud