youngmon/atlassian-qna huggingface dataset:
Can I use pipelines to generate doxygen documents from my source?
Asked by Wayne_Johnson:

I have a repo with "C" source, most with doxygen style tags. I would like to use pipelines to generate that code when changes are made. Is there a way to do this?  

I tried a C++ pipeline, but it does not have a doxygen command in it's image? Is there another image that does? How can I get specs on the various pipeline images?


Answers:
author: Mark C
body: Hi [@Wayne_Johnson](/t5/user/viewprofilepage/user-id/4986188),

Thank you for reaching out to the community.

Indeed, you can use Pipelines to trigger a Pipelines build when there's someone pushed to your repository.  
This is by using the [default trigger](https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/#default).  
I'm not really 100% familiar with doxygen Docker image, however, you can check Docker hub for any existing images that you can use.  

Here's what I've found so far:

* <https://hub.docker.com/r/corentinaltepe/doxygen>
* <https://hub.docker.com/r/tsgkadot/docker-doxygen>

We also encourage you to create your own Docker image so that you can easily maintain it if needed.

Hope it helps and do let me know if you have further questions.

Regards,  
Mark C

comments: author: Wayne_Johnson
body: Thanks. I was just using the standard image. Didn't realize I could use any hub image. It's working now, just need to add the steps to push the html somewhere.


author: Mark C
body: Hi [@Wayne_Johnson](/t5/user/viewprofilepage/user-id/4986188),  

Great. Glad to know it is working now.

Do let me know if you have further questions that I can help with and feel free to mark this question as answered as well.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud

doxygen
not able to log in to bitbucket
Asked by daddy cowboy:

I try to log-in using \<email_removed\> but keep getting same error status display.

tried suing different browser, chrome and edge. same result.

tried clearing browser cache. issue still there.

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


Answers:
author: Theodora Boudale
body: Hello,

Your Bitbucket Cloud account was in an inactive state, which is the reason for the error you were seeing.

I went ahead and reactivated it, so you should be able to log in now, please feel free to let me know if you are able to.

Just a heads up, I removed your email from your post to protect your privacy.

Kind regards,  
Theodora

comments: author: daddy cowboy
body: seems alright now. Thank you so much Theodora.


author: Grant.Smith
body: Can you try logging in using an incognito browser or if you are on chrome use edge and see if the issue persists?

comments: author: daddy cowboy
body: I did try both chrome and edge. same result.

tried clearing browser cache. issue still there.


author: Grant.Smith
body: Sounds like your account may have been deactivated. Try opening a ticket with customer support and see if they can re-activate it. [Atlassian Support](https://support.atlassian.com/contact/#/)

Ref: [Solved: Can't log in to my bitbucket account (atlassian.com)](https://community.atlassian.com/t5/Bitbucket-questions/Can-t-log-in-to-my-bitbucket-account/qaq-p/1971607)


Tags: bitbucket-cloud

cloud
LDAP configuration as a code
Asked by Maciej Szczesiak:

Hello, i am installing and configuring Bitbucket via Ansible and i would like to know if it is possible to configure LDAP connection as a code ? Like editing any configuration file ? There is no option like that in the bitbucket.properties file afaik. Or with API calls maybe ?


Answers:
author: Dominik
body: I've been wondering the same thing and it doesn't look like it's possible to setup an LDAP connection via configuration file or API call. Would be nice anyone could prove me wrong.

comments: author: Maciej Szczesiak
body: The only option i have found was to get a clean bitbucket installation, configure LDAP as you please and then dump its database, so you basically get a clean install with LDAP configured and you can then script out database import after new bitbucket installation which will contain LDAP config. If its dumb, and works - its not dumb.


author: Dominik
body: Another option would be to use SQL commands to insert the database objects directly. All LDAP connection related information seems to be stored in these tables:

```
bitbucket.cwd_directorybitbucket.cwd_directory_attributebitbucket.cwd_directory_operation
```


author: Maciej Szczesiak
body: This might be even better. I didn't look into that very much as i suck in databases and whatever i was doing back then was hung in the closet for some other day that didnt come yet :)


Tags: ansible

authentication

bitbucket-server

code

ldap

server
How can we add dynamic file name in ATTACHMENT variable in bitbucket/email-notify.
Asked by Nishita Agarwal:

I am sending this path to Attachments variable under email-notify:  

```
 TO: 'myemail@example.com'
```

```
           HOST: 'smtp.gmail.com'
```

```
           SUBJECT: 'Bitbucket Pipe Notification'
```

```
+          ATTACHMENTS: 'TestResults/TestReports/*.html'
```

However it gives this error.

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

I want to know if we can use glob pattern here or how can we select latest file from Downloads folder of bitbucket repository and send its name here.


Answers:
author: Mark C
body: Hi [@Nishita Agarwal](/t5/user/viewprofilepage/user-id/5096194),

Welcome to the community.

Unfortunately, the [atlassian/email-notify](https://bitbucket.org/atlassian/email-notify/src/master/) Pipes script does not support glob pattern.  
It has to be the exact file name(s) located within your cloned repository directory in Pipelines.

You mentioned selecting the latest file from the Downloads folder of your Bitbucket repository, would you be able to confirm if you're referring to an actual "downloads" folder located inside your repository or you're referring to the repository **Downloads** tab?

Regards,  
Mark C

comments: author: Nishita Agarwal
body: Hi [@Mark C](/t5/user/viewprofilepage/user-id/1210823)

Thanks for your reply.

I was referring to the repository Downloads tab.


author: Mark C
body: Hi [@Nishita Agarwal](/t5/user/viewprofilepage/user-id/5096194),

Thanks for that information.  
Unfortunately, it is not possible for you to download the latest file in your repository **Downloads** tab.  
You'll need to identify the file name you'd like to download and reference it as an attachment to the [atlassian/email-notify](https://bitbucket.org/atlassian/email-notify/src/master/) Pipes script.

Here's a sample CURL command on how to download a specific file in a repository **Downloads** tab that you can add to your YAML script:

```
curl  -u "bb_username:app_password" --location --request GET "https://api.bitbucket.org/2.0/repositories/workspace_id/repo_name/downloads/test_file.zip" --output test_file.zip
```

Once done, you can use the file **test_file.zip** as an attachment.

Hope it helps and do let me know if you have further questions.

Regards,  
Mark C


Tags: attachment

bitbucket-cloud

bitbucket-pipelines

cloud

email

notification
Using pipelines to cross-compile NXP Arm software
Asked by Wayne_Johnson:

We use a NXP MCU (Arm) CPU for our embedded equipment. It would be nice if we could build our product using pipe-lines. Is this possible?


Answers:
author: Mark C
body: Hi [@Wayne_Johnson](/t5/user/viewprofilepage/user-id/4986188),

Thank you for reaching out to the Community.

Unfortunately, we don't support building or running builds with ARM architecture at the moment.  
We do have the relevant feature requests for it that can be located through links below.

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

You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
How to get Token by make Authentication with Email and Password
Asked by Mustafa Ahmed:

I am using API in **bitbucket.org**, before I can get data with APIs, I need to make Authentication by this API

To access any api endpoint you have to setup auth in your app and ask for email and password and then call the following api:

     https://smartmenu22.com/api/auth/login

The API will return in a case of successfull login: a token that you have to save it. And then you can access any API endpoint using that token.

I try this code but it always say **Email or Password is not valid**

    var client = new RestClient("https://smartmenu22.com/api/auth/login");            var request = new RestRequest(Method.POST);             request.AddParameter("email", email);            request.AddParameter("password", password);            request.AddHeader("cache-control", "no-cache");            request.AddHeader("content-type", "application/x-www-form-urlencoded");            IRestResponse response = client.Execute(request);            dynamic resp = JObject.Parse(response.Content);            string token = resp.access_token;


Answers:
author: Theodora Boudale
body: Hi [@Mustafa Ahmed](/t5/user/viewprofilepage/user-id/5095626),

I would suggest reaching out to the developers or the support team of this API to request assistance. We can assist with any issues related to Bitbucket Cloud, but we can't offer much help with an API of a different product that is not developed by Atlassian.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Limit Branches size name using pre-hooks
Asked by Margaria Vince:

Hello, as the title says i'm looking for a way to limit the name of bitbukets branches to 50 characters. Do you know any way ? i'm trying to do a bash script using Scriptrunner to make this as a pre-hook but i can't manage to make it work.


Answers:
author: Aron Gombas _Midori_
body: With the Better Commit Policy app, you can implement a rule which matches the branch name against a regular expression. The regex can limit the number of chars to 50 (and do a million of other things).

The left-side example shows a similar use case with branch names:

![rejected-tag-branch.png](https://community.atlassian.com/t5/image/serverpage/image-id/229378i8366CEECD5E4AF3C/image-size/large?v=v2&px=999 "rejected-tag-branch.png")

See:

1. The app: [https://marketplace.atlassian.com/apps/1214430/better-commit-policy-for-bitbucket?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1214430/better-commit-policy-for-bitbucket?hosting=server&tab=overview)
2. The related doc: <https://midori-global.com/products/better-commit-policy-for-bitbucket/server/documentation/#verifying-branches-and-tags-created-in-bitbucket>
3. You have to use this condition: <https://midori-global.com/products/better-commit-policy-for-jira/server/documentation/#branch-pattern-condition>
4. Here is a sample regex that requires a text be at least N chars: <https://midori-global.com/products/better-commit-policy-for-jira/server/documentation/best-practices#commit-message-length> (you should be able to figure out yours based on this)

*(Discl. I'm a developer working on this paid and supported app.)*


Tags: bitbucket-server

script

scriptrunner
Accessing Atlassian Marketplace
Asked by Chaitrali Awasare:

I have installed Bitbucket Data Center and want to download a plugin but not able to connect to atlassian marketplace. How and where should i do the proxy settings? Please help.


Answers:
author: Aron Gombas _Midori_
body: If you want to resolve it faster, you can:

1. Download the app JAR file from the app's Marketplace listing. (See the link marked below.)
2. Upload the JAR file via the "Manage apps" screen in Bitbucket.

![Awesome-Graphs-for-Bitbucket-Atlassian-Marketplace.png](https://community.atlassian.com/t5/image/serverpage/image-id/229380iA70558DA461C70EA/image-size/large?v=v2&px=999 "Awesome-Graphs-for-Bitbucket-Atlassian-Marketplace.png")

comments: author: Chaitrali Awasare
body: Thanks i tried this and worked for me.


author: Aron Gombas _Midori_
body: Cool. Don't forget to "Accent answer" it, so that others in the future can see that it worked.


Tags: bitbucket-server

server
Curiosity about depth when cloned in pipeline
Asked by Ray:

When I ran the pipeline, I didn't set the depth separately,  

but I could see that it was running as \`git clone -n --branch {MY_BRANCH} source\` or running as \`git clone --brach {MY_BRANCH} --depth 50 source\` depending on the case.  

I would like to know about the conditions for being cloned.  


Answers:
author: Patrik S
body: Hello [@Ray](/t5/user/viewprofilepage/user-id/4851929) ,

Thank you for reaching out to Atlassian Community!

Bitbucket pipelines indeed use a shallow clone by default to clone your repository into the build container. This is implemented to reduce the time spent in cloning the repository to the build environment, especially for large repositories. Usually, your build will just need the most recent commits, so there would be no need to clone the older ones. By default, we clone only the last 50 commits.

However, it's possible to configure the depth of the clone in your pipeline in case you need to access older commits or have a full clone of the repository. This is sometimes necessary when working with other tools that do not support shallow clones.

To change the clone depth you can use the **clone:depth** attribute as in the below example:

```
clone:
 depth: full # include the full history

pipelines:
 default:
   - step:
      name: Cloning
      script:
        - echo "Clone all the things!"
```

The depth value can be a whole number greater than zero. Use **full**for a full clone.

More details in [Configure bitbucket-pipelinesyml : Clone](https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/#clone)

Hope that helps! If you have any questions, feel free to ask.

Than you, [@Ray](/t5/user/viewprofilepage/user-id/4851929) .

Patrik S


Tags: bitbucket-cloud

cloud
Angular project while build the docker image
Asked by prasanna kumar:

While building the docker image i am getting some on bitbucket pipeline.


Answers:
author: Patrik S
body: Hello [@prasanna kumar](/t5/user/viewprofilepage/user-id/5094764) ,

Welcome to Atlassian Community!

From your description, I understand you are facing issues building a docker image in your pipeline. We would need additional details to help you with the issue, so could you please share the logs with the error you are receiving and also what exact commands you are running as part of your build?

Thank you, [@prasanna kumar](/t5/user/viewprofilepage/user-id/5094764)

Patrik S


Tags: bitbucket-cloud

cloud
retreive accountID of JIRA user from Bitbucket pipeline
Asked by Junxi _John_ Li:

I would like to design a process which automatically create a JIRA issue against any merge into a specific branch.

First problem I am facing now is in the pipeline, the BITBUCKET_STEP_TRIGGERER_UUID is not same as the JIRA user accountId,
> *The person who kicked off the build ( by doing a push, merge etc), and for scheduled builds, the uuid of the pipelines user.*

for example, user A has push a commit to Branch A. pipeline of Branch A starting to run.

It will automatically create a JIRA issue which reporter is the user A.

However, as I have tested. the BITBUCKET_STEP_TRIGGERER_UUID is not same as the accountID in JIRA. so I will not know who is reporter of this issue.

<br />

Any solution to this?


Answers:
author: Junxi _John_ Li
body: #### solved, the UUID is not accountId, i have to get the account_id from calling Bitbucket API pipeline endpoint to get the full detail of the creator which shows the correct account_id. {#toc-hId-201000299}


Tags: bitbucket-cloud

cloud

jira

rest-api
can't clone repository
Asked by Stefan:

Hey, I added my SSH key (multiple times now) but since this week, I can access the repositories in my project.

Has anyone a good idea, what happend? In the last week, everything works fine. Maybe some changes in bitbucket which i did not get.

thanks, regards


Answers:
author: Patrik S
body: Hello [@Stefan](/t5/user/viewprofilepage/user-id/1451115) ,

Thank you for reaching out to Atlassian Community!

From the scenario you reported, multiple variables might be affecting your SSH authentication such as :

* SSH key not being loaded in the SSH agent
* The SSH key used is linked to an account that does not have access to the repository in question
* If having multiple keys in your local environment, the SSH agent might be trying to use the wrong key.

If the error you are receiving the following error while trying the git command :

    Permission denied (publickey).

I would suggest recommending following the steps listed in the article [KB: Permissions denied public key](https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html) that covers most of the factors that might be causing this issue.

If you are facing a different error or if after following the steps in the article you are still facing the issue, please share the error you are receiving with us.

Let me know in case you have any questions.

Thank you, [@Stefan](/t5/user/viewprofilepage/user-id/1451115) .

Patrik S


Tags: bitbucket-cloud

cloud
Error adding a remote repository to source tree for bitbucket server
Asked by Eric Beard:

When I try to add a remote repository to source tree I always get the following error. I've tried every combination of SSH, HTTPS, HTTP, all user ids I have and nothing works. Have any ideas?

![sourceTreeError.PNG](/t5/image/serverpage/image-id/17451i4114358F9F8C29AE/image-size/large?v=v2&px=999 "sourceTreeError.PNG")


Answers:
author: minnsey
body: Hi  

It looks like that Bitbucket Server is returning an error page rather than the expected REST response.  

Can you confirm where in Sourcetree you are trying to do this?  

Thanks


Tags: bitbucket-server

configuration

repository
Diff view showing the wrong files
Asked by arvz:

This has been happening for a while and normally I just close and restart Sourcetree which solves the problem temporarily.

Sourcetree is very often showing me the wrong files in the diff view (in the File Status tab). I would click on a file in the Unstaged files panel, expecting to see what changes have been made to that file, instead, it will very often show me the wrong file at the top. If I scroll all the way down, the right file will show up there - but most of the time it just says No changes in this file have been detected or it is a binary file.

If I restart Sourcetree this problem disappears momentarily, at least for a while. Then it comes back, and it comes back quite quickly.

Another problem I've been having which might be related - when I try to Discard changes to a file in the unstaged panel, the window that comes up to confirm the files you want to discard will show me that I want to discard changes in a lot more files than I selected. Again, this is fixed by restarting Sourcetree, at least for a while.

This has been happening across multiple computers, across multiple projects.

Any advice appreciated


Answers:
author: minnsey
body: Hi  

Can I ask are you using the tree view for file listing? If so can you try using the single or muclti-column views?  

Thanks

comments: author: arvz
body: [@minnsey](/t5/user/viewprofilepage/user-id/502201) Yes I am using Tree View. When it happens again I'll try switching to single and multi column and see if anything changes - but I find Tree View to be the best for me


author: arvz
body: [@minnsey](/t5/user/viewprofilepage/user-id/502201) I just tested it - switched to single column view, everything works in that view. Switching back to tree view after changing to single column view 'fixes' it also (like restarting Sourcetree), at least temporarily.

Is this a known bug or something?


author: minnsey
body: There is a known issue about TreeView selection
Can't install SourceTree due to login problems. Redirects to Microsoft online
Asked by Kornel Farkas:

I try to install Sourcetree, I have an Atlassian account. When I click "Use an existing account" It takes me to Microsoft online login. I don't have a Microsoft account. It is a dead end. If I click go to My Atlassian, than it opens a web browser where I can see my licence only. Another dead end.

Is there a way to install Sourcetree without having a Google or Microsoft account?


Answers:
author: Ana Retamal
body: Hi! You don't need a Microsoft account to use Sourcetree, all you need is an Atlassian account. During the installation process, Sourcetree should redirect you to <https://my.atlassian.com> to allow you to sign in, and that's all. One thing to note, make sure you have the latest Internet Explorer version, as Sourcetree relies on it for the authentication.

If you're still having this issue, can you please send us a screenshot of when you're redirected to the Microsoft account?

Best regards :)

Ana

comments: author: Kornel Farkas
body: We had an issue with our company account. That caused the issue. It is solved now.


Tags: install

microsoft

windows
can not install source tree
Asked by quoctran1502:

hi  
i can not install , i use Windows 7  
![image.png](/t5/image/serverpage/image-id/17351i9328D1869D3D9CCA/image-size/large?v=v2&px=999 "image.png")   
Thanks


Answers:
author: Ana Retamal
body: Hi Tran! This is usually caused by an old version of the browser. Sourcetree relies on Internet Explorer for authentication, can you make sure it's updated to the latest version?

Apart from that, IE needs to be configured at a minimum as follows:

- Cog/Internet options/Security settings need to be enabled

- Misc/Access data sources across domains

- Misc/Allow META-REFRESH

- Scripting/Active Scripting

- The browser mode set to 10

- The document mode set to 10

These can be set using the F12 developer tools.

Those are the settings that matter. It should also be able to set them indirectly by:

- making sure [https://id.atlassian.com](https://id.atlassian.com/) is NOT set to be rendered in Compatibility Mode

- Set Cog/Internet options/Security to Medium-High

Let us know if this helped you!

Kind regards,

Ana


Tags: windows
How to upload an UE4 project to a bitbucket repository with source tree?
Asked by Aspelli Marina:

Hello,

I'm new here so I'm a bit lost. I've already used source Tree but never created or uploaded a local projet. So here is my issue : I have a group project on unreal engine 4, we have an existing scene that we can't redo from the start but we would like to use versionning and allow multiple persons to work on the unreal project. I've tried to create a local repository on my project's folder but when I try to commit the modifications to upload the project on bitbucket i have the following error message :

"Another git process seems to be running in this repository, e.g.  
an editor opened by 'git commit'. Please make sure all processes  
are terminated then try again. If it still fails, a git process  
may have crashed in this repository earlier:  
remove the file manually to continue."

I think I've missed something but can't get what to do to allow the other group's members to edit the project, can anyone help me?

Sorry for my lame explanation I'm quite bad at english.

Thank you for your answers, regards.


Answers:
author: bgannin
body: There's a git.lock file you can safely remove when there are no clients (command line, IDE, Sourcetree) running Git looking at that directory. Things should clear up after that.

Brian Ganninger  
Senior Mac Developer, Sourcetree


Tags: remote