youngmon/atlassian-qna huggingface dataset:
how to identify project and branches with username
Asked by velu:

I have 100 projects with 100 branches in bitbucket, in all my branches I have hard-coded my username and password, is there any solution which would help me in identifying the branches exposed with username and password automatically


Answers:
author: Ben
body: G'day!

If you need to find branch names that expose your username/password, you can combine the git branch/grep commands:

```
git branch --all | grep -i insertusernamehere
```

If you need to search your code for exposure of your username/password, we have an article for this below:

* <https://confluence.atlassian.com/bbkb/search-entire-repository-commit-history-for-a-string-1353585657.html>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Pipeline showing failed
Asked by PAZHANI:

Pipeline showing failed

\<removed_build_url\>

![Pipe.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/327474i296E98AAC3C3E5D8/image-dimensions/301x147?v=v2 "Pipe.jpg")

![Pipe.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/327474i296E98AAC3C3E5D8/image-dimensions/301x147?v=v2 "Pipe.jpg")


Answers:
author: Theodora Boudale
body: Hi [@PAZHANI](/t5/user/viewprofilepage/user-id/5511449) and welcome to the community!

Your screenshot shows that the 'git ftp push' command fails, but we can only see the beginning of the output.

Are there any errors displayed at the end of the command's output? Could you please share any errors displayed?

If there are no useful errors, could you please add the argument **-vv** in the 'git ftp push' command, run another build, and then share any errors?

Just a heads up, I removed the link to your build as this is a public forum. Please keep in mind that we cannot access your repo and the build logs.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I am using runner Autoscaler .I have a pipeline stuck on `Pulling Images` for the last 50 minutes.
Asked by sibani.das:

I am using runner Autoscaler .I have a pipeline stuck on \`Pulling Images\` for the last 50 minutes.

Its happening multiple times and there are no logs


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

* Does this issue occur consistently with all Pipelines builds or only with some of them?  

* If the server where the runners are running is behind a firewall, have you whitelisted the IP addresses needed for runners to run?
  * <https://support.atlassian.com/bitbucket-cloud/docs/ip-addresses-for-runners-behind-corporate-firewalls/>  

* We would also need to see some logs to better understand what is happening. Could you please get the pod logs when there is a stuck build with the following commands:  

  ```
  kubectl logs pods <pod-name> > runner.log

  kubectl describe pods <pod-name> > runner-describe.txt
  ```

  <br />

  and then post the content of these two files here? Please make sure you sanitize any private/sensitive data (including UUIDs) in the logs before sharing.

Since you have access to a workspace on a paid billing plan, you can also create a ticket with the support team and share the logs in the ticket instead of posting them here publicly. The support ticket will be visible only to you and Atlassian staff.

You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Kind regards,  
Theodora

comments: author: sibani.das
body: Upgrading the image helped also tuning resources .

Instead of docker repo now I hosted image on ecr.  

Thanks [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) for suggestion


author: Theodora Boudale
body: Thank you for the update, it's good to hear that the issue is resolved.


Tags: bitbucket-cloud

cloud
How could we implement customize password policy for Bitbucket?
Asked by Gautam Shangari:

How could we implement customize password policy for Bitbucket. In case we want to have complex password policy like 4 numeric and 4 alphanumeric and be in line of our password policy ? We are using Bitbucket Data Centre version and self managing the Bitbucket product.


Answers:
author: Christian Glockner
body: Hi Gautam,

Bitbucket Server does not support this, but you can implement these kinds of restrictions in an external user directory (such as LDAP or Active Directory) and then use the user directory in Bitbucket Server.

Cheers,  
Christian  

Premier Support Engineer  
Atlassian


Tags: bitbucket-data-center

bitbucket-server

data-center

server
Link Jira ticket to Merged PR
Asked by Eran Cohen:

Hey guys,

I would like to add Jira Issue for my merged PRs

Is there a way possible to doing this?


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

Pull requests cannot be changed once they are merged, so I'm afraid that it is not possible to add a Jira ticket to a merged PR.

We have a feature request for the ability to edit the title and description of merged PRs (so that Jira tickets can be added):

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

You can add your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the product managers better understand the demand for features. You are more than welcome to leave 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 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,  
Theodora


author: Ash Yadav
body: Hi [@Eran Cohen](/t5/user/viewprofilepage/user-id/5510933) welcome to the Atlassian Community :)

Head over to your Bitbucket repository and go to Repository Settings -\> Links -\> Add New Link -\> (Fill out your Jira instance details) and enable it.

That should now require a Jira issue for every new commit or PR that comes through.

Hope this helps.

Ash

comments: author: Eran Cohen
body: Thanks!

Though I need to fix my past PR to have link to Jira tickets,   
is it possible?


Tags: bitbucket-cloud

cloud

merge

pr
How to get value "branched from" via REST API
Asked by Baa Dg:

Hello!

We use Crucible (as another product - JIRA) for many years, and now I'm doing some automation... I need to get the same value which is shown in Crucible UI in detailed review info under the field name "Branched from" but with Crucible REST API. I know CSID of review. Even branch (when review is branch-based). But how to find branch from which review's branch was cloned? Usually it's "master" (I'm talking about Git only), but not always, sure.

I tried "rest-service-fe/commit-graph-v1/slice/" REST API call but it does not help.

1. I don't know how deeply I must to dig into the history? ("size" parameter)
2. When I find "point of cloning" (i.e. "branches" list length is more than one item) - I don't know which branch to get as "branched from" value from this list. There are several branches in this list
3. Will this method work if I rename branch... I can rename branch remotely, right?

How Crucible find this value, i.e. "Branched from"? How to do the same with REST?


Answers:
author: shukron
body: I wonder the same thing... How did you get the branch name itself though? I can't figure out even that...


Tags: crucible-development

developer

rest

rest-api
Doc links for fisheye
Asked by Gonchik Tsymzhitov:

Hi team!

Could you update a links for Fisheye 4.3 and 4.2 on this page

[https://confluence.atlassian.com/fisheye/fisheye-releases-298976966.html](https://confluence.atlassian.com/fisheye/fisheye-releases-298976966.html#)

If you click on links like these on [main page:](https://confluence.atlassian.com/fisheye/fisheye-releases-298976966.html#)

[FishEye 4.3 release notes and changelog](https://confluence.atlassian.com/fisheye/fisheye-releases-298976966.html#).

[FishEye 4.2 release notes and changelog](https://confluence.atlassian.com/fisheye/fisheye-releases-298976966.html).

you can see the same page. But on sidebar links work fine.

It will be nice, if I click on changelog I will see a changelog.

These pages:

<https://confluence.atlassian.com/fisheye/fisheye-4-2-release-notes-847744893.html>

<https://confluence.atlassian.com/fisheye/fisheye-4-3-release-notes-869176245.html>

Thanks

Cheers,

Gonchik Tsymzhitov


Answers:
author: Gonchik Tsymzhitov
body: Is it for you ? [@Mateusz Miara](/t5/user/viewprofilepage/user-id/332756)


Tags: documentation
can not setup email smtp server
Asked by feng.jiang@grifols.com:

Jira, Bitbucket, and confluence are all working when setup smtp server to send email. But when same account information is entered to crucible and fisheye email smtp, the message is connection is not authorized. any idea?


Answers:
author: Shannon S
body: Hi Feng,

Can you show us the message in your error log so we can see the exact error? What email provider are you using, or is it a personal server?

Kind Regards,  
Shannon

comments: author: feng.jiang@grifols.com
body: Hi Shannon, seems I can not attach the log file to this message or paste the whole text here, any suggestions? I am using the Grifols mail server and I also tried Gmail, none of them are working.

<br />

problem sending email  
530 5.7.1 Client was not authenticated

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)  
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)  
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)  
at javax.mail.Transport.send0(Transport.java:169)  
at javax.mail.Transport.send(Transport.java:98)


author: Shannon S
body: Hi Feng,

The logs you sent were sufficient.

Can you send me a screenshot of what your current SMTP settings are? You'll be able to attach that to the case. Do you know what service Grifols uses for mail? Perhaps Exchange?

Kind Regards,  
Shannon
enforce pre-commit code review
Asked by jannachang:

Dear Sirs/Madam:

This is consulting you how to let Crucible (or with FishEye/Bitbucket/Jira Software help) to enforce a code review process, when a developer attempt to issue a "git commit" command ?

So far, it seems that a developer needs to go to Crucible initiate a code review to get a code review process start.

Could you please shed the light ?

Thanks,

Janna


Answers:
author: Marek Parfianowicz
body: You can configure Git commit hooks to automatically create code reviews in Crucible, for example. See these articles:

<https://confluence.atlassian.com/crucible/creating-patch-files-for-pre-commit-reviews-298977458.html>

<https://confluence.atlassian.com/crucible/creating-reviews-from-the-command-line-335479612.html>
Exceeded the maximum number of users for Crucible
Asked by Main Account Lee Hsiao:

Hi

We just brought 5 users license. But we updated the license to Crucible, we got the error. Please check from the attachments.

I just check the user directories, Seems it use same directories with our jira server. But for our dev team, we just need five accounts for Crucible.

Could you give some suggestions about that ?

Best

Changyong

![crucible.PNG](/t5/image/serverpage/image-id/7488i0AC9684775CDB2CB/image-size/large?v=v2&px=999 "crucible.PNG")![crucible2.PNG](/t5/image/serverpage/image-id/7489i8C9195F4B23C6F39/image-size/large?v=v2&px=999 "crucible2.PNG")


Answers:
author: Mikael Sandberg
body: Check which groups have Fisheye access under Global permissions. From the screenshot it looks like your jira-users group was given access, instead of a fisheye group that only contains the users that should have the access.

comments: author: Main Account Lee Hsiao
body: Hi Mikael,

That is really helpful. we solved this issue.

Thanks
Visual studio 2017 and Crucible integration
Asked by Kamil Beer [Onlio]:

Hello,

is there an integration with VS2017 and Crucible?

I am talking about a scenario when a reviewer looks into a code in VS and sees a flaw -- so far we took care of it through various notes // @TODOs, but we'd like to have a task as a part of the review.

Thanks!


Answers:
author: Marek Parfianowicz
body: Few years ago we had "IDE Connectors" for Visual Studio, but Atlassian stopped development and open-sourced them. The plugin was compatible with VS 2012, so there's no guarantee that it will still work with VS 2017. But you can give a try (or fix the code yourself :) ).

You can find documentation here:

<https://atlassian-docs.bitbucket.io/IDEPLUGIN-VS/>

and sources here:

<https://bitbucket.org/atlassian/connector-vs>


Tags: integration

visual-studio
FishEye won't load after migrating the database to PostGreSQL
Asked by Gabriel Henton:

It says the migration was successful but FishEye won't load now. I did connect it to JIRA as well when following the setup wizard prompts. I'm getting 500 errors.


Answers:
author: Marek Parfianowicz
body: Please create a ticket on getsupport.atlassian.com.

comments: author: Marijus Sugajevas
body: Any solution you are willing to share?
Adding CVSNT repository to fisheye.
Asked by Salman_Raza:

Hi, I am adding CVSNT(hosted on windows) repository in FishEye4.4 (hosted on windows), my CVS is on other machine I have mapped network drive, but fisheye unable to add windows base path z:\\cvs... .


Answers:
author: Marek Parfianowicz
body: Could you provide more details, please?


Tags: cvs

windows
How to get Fisheye to only offer up files from only 1 of 2 projects in 1 SVN repository?
Asked by rick stuart:

I have 1 SVN repository with 2 projects. When I point Fisheye at this SVN repository it always offers up all file differences for both projects. Recently I have had the administrator create 2 new Fisheye projects. I though the administrator pointed each of the new Fisheye projects to one or the other projects in the 1 SVN repository.

But, when I ask Fisheye to create a review, it does not offer me up the names of the 2 new Fisheye projects. Only the old Fisheye project. As such, I am offered all the changed files in both project. Not just the files of the 1 project of interest.


Answers:
author: Marek Parfianowicz
body: Ask your admin to configure two repositories in FishEye - one for each project you have - you can use include/exclude certain paths to be scanned.

See [https://confluence.atlassian.com/crucible/setting-up-a-repository-via-fisheye-298977502.html](https://confluence.atlassian.com/crucible/setting-up-a-repository-via-fisheye-298977502.html?)


Tags: svn
Running a crucible report by year
Asked by ryan o_sullivan:

Is there a way to use the crucible data to show how many code reviews were performed per repo per year


Answers:
author: Marek Parfianowicz
body: Did you try using REST API to query for reviews?

<https://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.html>

comments: author: ryan o_sullivan
body: Thanks marek

I haven't looked at that , i would need some technical resource to facilitate that
Can Crucible return a search of type 'Branches not merged back to Trunk'
Asked by Christopher Mcadams:

Hi there,

We follow the following development flow within our company:

For a new requirement implementation or a bug fix:

1) Create a new branch from trunk.

2) Conduct all development in isolation in the branch.

3) Integration test the fix in isolation in the branch.

4) Review the branch (and integration test).

5) Lead engineer then merges branch back to trunk.

We need the ability to search for a few things in the review tool that we choose:

1) Branch revisions that have not been merged to trunk. (e.g. on-going development, someone may have forgotten to merge a branch back to trunk).

2) Status of Reviews on every line of code in the trunk followed through from the branch review.

- Note: We do not intend to review anything on the trunk, all reviews are conducted in a branch, however the code review metrics of 'Has the LOC been reviewed in the history of the project?' needs to be available on the trunk.

Can crucible perform as we require?


Answers:
author: Marek Parfianowicz
body: Please have a look at Fisheye's EyeQL:

<https://confluence.atlassian.com/fisheye/eyeql-reference-guide-298976796.html>

Although it does perform exactly what you requested, maybe some of queries will be helpful for you.


Tags: developer
Dragons Repository. What does this mean?
Asked by Gabriel Henton:

Fri Sep 29 16:28:56 PDT 2017: Repository index failed due to error com.cenqua.fisheye.rep.RepositoryClientException: com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: \*\*\* failed to import extension felog from D:\\fisheyecrucible-3.7.0\\fecru-3.7.0\\python\\hg\\hgfelog\\hgfelog.py: missing attributes: norepo, optionalrepo, inferrepo \*\*\* (use @command decorator to register 'fecheck') hg: unknown command 'felog' (did you mean log?) com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: \*\*\* failed to import extension felog from D:\\fisheyecrucible-3.7.0\\fecru-3.7.0\\python\\hg\\hgfelog\\hgfelog.py: missing attributes: norepo, optionalrepo, inferrepo \*\*\* (use @command decorator to register 'fecheck') hg: unknown command 'felog' (did you mean log?) com.atlassian.utils.process.ProcessException: While executing: "C:\\Program Files\\TortoiseHg\\hg.exe --config extensions.felog=D:\\fisheyecrucible-3.7.0\\fecru-3.7.0\\python\\hg\\hgfelog\\hgfelog.py --config ui.verbose=false felog 922fd9308885467fcb3ed0a3a185d8e661bedcc9 -p -m" in \[D:\\data\\fisheyecrucible\\var\\cache\\Dragons\\clone\] com.atlassian.utils.process.ProcessException: java.lang.NullPointerException java.lang.NullPointerException: null


Answers:
author: Gabriel Henton
body: I just had a version of Mercurial that was too new for Fishey 3.7.0. Installed the correct, supported version and now it works.

comments: author: Shawn Wallack
body: Downgrading resolve the problem. Thanks.


author: Gabriel Henton
body: Nothing shows up in fisheye recent changesets either.

comments: author: Gabriel Henton
body: in JIRA


author: Gabriel Henton
body: This is what it says on my JIRA dashboard:

There are problems with the current configuration for this gadget. The errors below may have been caused by the deletion of entities required by the gadget or by changes to your permissions.

* **Problem communicating with FishEye**


author: Christopher Levine
body: Thank you, I ran into this error and other errors like it when the version of Mercurial was either too old/new. This version of Fisheye is very picky. I included the exact version of Mercurial needed at the link below.   

<https://community.atlassian.com/t5/Fisheye-Crucible-questions/Trouble-at-Dragon-Stage-7-Step-2/qaq-p/844629>
Moving Fisheye/Crucible from Linux to Window
Asked by Brian Paulick:

I would like to move our Fisheye instance (from a backup resource) from a linux server to a windows server due to a hardware failure on the linux server . Would I just install Fisheye on the windows server, restore from backup the Fisheye data folder to the windows server and then configure FIsheye to use the new data location?

Thank you in advance.


Answers:
author: Grzegorz Lewandowski
body: I believe you should be fine by doing a Fisheye\&Crucible backup on Linux machine and just restoring it on Windows one.
From Date and To Date doesn't work in Crucible API reviewService.getCustomFilterReviews()
Asked by sam guo:

Here is our scenario: we want to caputre all the review records by using the date range. So I choose to use the reviewService.getCustomFilterReviews(filter,false);

We set project name, from date and to date to the customFilter. But the wired thing is I set date range from 08/01/2017 to 08/02/2017. But it captured the records in March. Is there any limition of the customFilter or it is a defect of the API. By the way we use fisheye API 4.3.0.

Thanks

Sam


Answers:
author: Grzegorz Lewandowski
body: I think there may be couple of causes for your problem:

* Review lucene index holds date of last modification for given review so if you set a range between 08/01/2017 and 08/02/2017 it'll look for reviews which have last modification timestamp within given range
* Custom filter use Lucene indexes thus make sure yours are not corrupted.

comments: author: sam guo
body: Yes. I just decomplie the codes then I find they use lucen search in this method findIds(Query, idFieldName).  
Is there any way that we can avoid this issue or Could you please tell me how to validate the lucene indexes are works? The files which Lucene generated should be on the server, right?

Thanks!  
Sam
Can Jira be Updated by Fisheye on SVN
Asked by Rob Honiball:

Ideally when I commit a change to SVN with a post commit hook that changes the status of a project, I would like my card in Jira to be updated dynamically to reflect that status change. Is this possible?

Sorry if this has an obvious answer, I am new to all this SVN / Jira stuff.

Thanks, Rob


Answers:
author: Grzegorz Lewandowski
body: You can use [Smart Commits](https://confluence.atlassian.com/fisheye/using-smart-commits-298976812.html#id-_smart_commits_commands-transition) for that purpose.

comments: author: Rob Honiball
body: Sounds legit, thank you very much for the recommendation, we will try it out.

Regards,

Rob


Tags: jira

svn
How do I do a code review after it has expired?
Asked by Jim:

So the review was posted and I didn't get to it. I have time now though and would like to do it... except I can't re-open it or anything as far as I know.

Is there any way to do this?


Answers:
author: Marek Parfianowicz
body: You should re-open code review in such case. It depends how your workflow is configured. See:

<https://confluence.atlassian.com/crucible/the-crucible-workflow-298977485.html>
Unable to view the content when rebase children interactively
Asked by sun paul:

When rebase children interactively, the background is black, and i am not able to view the content.

A workaround, I need switch it to dark mode.

I am using osx 12.4, sourcetree version 4.1.8

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


Answers:
author: Leslie
body: [@Carlos Garcia Navarro](/t5/user/viewprofilepage/user-id/1031232) Hello there, Cloud u plz take a look of this issue. :)
Sourcetree latest version for mac os
Asked by Dmitrii Shelobkov:

I've got a strange issue with trying to find the latest version package. I have version 4.1.6.242 installed and this version is available for downloading on sourcetreeapp.com.

When running and checking for update Sourcetree shows that v. 4.1.8 is available. JamF Patch Management shows 4.1.7 as the latest version.

So, the question to Atlassian - where is the 4.1.8. distribution package for downloading can be found?

Also I'd like to know what is exactly the latest version of the product if it shows different options in different sources?


Answers:
author: Alex Hills
body: Hi. Have you already tried searching for the new version just by google name and version number? I think you should be shown a link to a direct download from the official Sourcetree website, as I was. I found the right link right away. Although I think now, even version 4.1.6.242 works fine on Windows, Linux, and Mac. Do you get errors while using this software? Maybe you are getting errors because your [disk](https://cleanmymac.com/fix-mac-startup-disk-full-error) needs to be cleared of unnecessary cache and temporary files? Temporary files often fill up a lot of your hard drive and make it hard for the system to use the programs and function normally. Try to get your computer to a good speed first, then find a new version if necessary.


Tags: mac

version