youngmon/atlassian-qna huggingface dataset:
Push to another Bitbucket repo with pipeline
Asked by Carlos Gallardo:

HI, i got 2 bitbucket repos in different accounts that need to sync when pushing into a staging branch in the first one it needs to push into the second repo, created the SSH key in the first one and added in the second one

this is my pipeline

branches:  
branch-stg:  
- step:  
name: Push to STG  
script:  
- git remote add staging git@bitbucket.org:target-account/target-repo.git  
- echo $'Host \*.bitbucket.org\\n\\tStrictHostKeyChecking no' \>\> \~/.ssh/config  
- git push staging branch-stg -f


Answers:
author: Patrik S
body: Hello [@Carlos Gallardo](/t5/user/viewprofilepage/user-id/5292998) and welcome to the Community!

It seems like you have also opened an internal ticket about the same topic and one of our support engineers is already working on that case.

With that in mind, I would suggest focusing the discussion on the internal ticket to avoid any confusion that may arise from discussing the same issue in multiple places.

Once the ticket is resolved, if you feel comfortable, you can also share the resolution here in Community, so other users can try using the same solution in case they come across a similar scenario.

Thank you, [@Carlos Gallardo](/t5/user/viewprofilepage/user-id/5292998) !

Patrik S

comments: author: Carlos Gallardo
body: Thanks Patrik


author: Carmelo Francisco Gonzalez
body: cfg


Tags: bitbucket-cloud

cloud
Can`t acess repository after failed error on import
Asked by pedro_henrique:

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

i\`m having this errors on the following repositories that falied when i was trying to import:

\<redacted\>


Answers:
author: Patrik S
body: Hello [@pedro_henrique](/t5/user/viewprofilepage/user-id/5292898) and welcome to the Community!  

Looks like those repositories were stuck in the "Importing" state. I went ahead and deleted the repositories you shared that were locked in that state, so you can now **try to import again** .  

Let us know in case you run into any issues.

Note: I've edited your questions' description to hide the repository name in order to protect your privacy.

Thank you, [@pedro_henrique](/t5/user/viewprofilepage/user-id/5292898) !  
Patrik S


Tags: bitbucket-cloud

cloud
Missing create repository in workspace page
Asked by David Swift:

Trying to add a workspace but it says it's already taken. When I go to that workspace, I can not see the ability to add a repository, and the workspace itself does not appear in the All Workspace list.

Can someone shed some light on this please?


Answers:
author: Syahrul
body: G'day, [@David Swift](/t5/user/viewprofilepage/user-id/5293037) and welcome to the community.

If you can't create a workspace with your desired name, the name may have already been taken. In that case, please choose a different name.

As for why you can't create a repository, I believe that you might be trying to use a workspace you don't have access to, causing the issue with creating a repository.

If you navigate from the top right corner of your avatar \> All workspace, then you'll be able to see the workspace you have access to and opening that should allow you to create a repository

I hope this helps.

Regards,  
Syahrul.

comments: author: David Swift
body: Yes, I know it is already taken, but the problems are:

1. If I navigate to All Workspaces it does not show up. It's not listed.

2. If I navigate to the workspace manually, I can not see the ability to create a repo.

Either something is wrong, or I am missing something completely.


author: Syahrul
body: Hi David,

Interesting, I suspect it was because you previously deleted the workspace you created earlier; hence it's not showing in the list.

I can also see that you've created another workspace with some repository in it so can you confirm with me if you still faced the same issue?

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
BB pipeline - can I run it from develop branch
Asked by Angel Todorov:

Hello everyone!

I would like to automate company repo by adding BB pipeline.

Since I would like to experiment, I created locally `bitbucket-pipelines.yml with "custom" set of tasks only (so I can run the pipeline manually) and merged this PR to develop branch.`

`However, I cannot see the pipeline being available, when I go to "Pipelines" menu option for the specific repo. I only see pipeline wizard options to start building visually pipeline.`

`Do I need to merge bitbucket-pipelines.yml to master as well to make it available to the repo pipelines menu?`


Answers:
author: Angel Todorov
body: Actually, you can run **bitbucket-pipelines.yml** from \`develop\` branch as well. The caveat is - if you want to do that from develop branch, you need to add also branches: develop: section in the YML file. Then when you merge PR to develop branch, BB will trigger the pipeline and it will make your **bitbucket-pipelines.yml**available for further executions, including manual/custom ones.


author: Mark C
body: Hi [@Angel Todorov](/t5/user/viewprofilepage/user-id/5292775),  

Welcome to the community.  

That's correct, you'll need to push the file **bitbucket-pipelines.yml**in your main branch as well.

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
need help. ssh bitbucket.org require password.
Asked by Johnny Cai:

johnny@johnny-virtual-machine:\~$ ssh -T git@bitbucket.org  
git@bitbucket.org's password:  
Permission denied, please try again.  

1. don't know why need password in this case. never happen before.  
2. enter my bitbucket webside password. seems not correct and denied.

3. other op like git push git pull in my project all require password.  

public key already added. private key already added.  

<br />

using: ssh -v -T bitbucket.org

debug1: Next authentication method: publickey  
debug1: Offering public key: /home/johnny/.ssh/id_rsa_new ED25519 SHA256:QNe2WJtSuGd3padoV6wBCKNxuY3kDmhXWs1zl//Hi7c explicit agent  
debug1: Authentications that can continue: publickey,password  
debug1: Next authentication method: password  
johnny@bitbucket.org's password:  
debug1: Authentications that can continue: publickey,password  
Permission denied, please try again.


Answers:
author: Syahrul
body: G'day, [@Johnny Cai](/t5/user/viewprofilepage/user-id/5292759) and welcome to the community.

When prompted to enter a password for an SSH connection, your SSH key is protected by a passphrase configured during your SSH setup.

If you can't recall this passphrase, I recommend following the steps outlined in the provided documentation once more to reconfigure your SSH key. You can find detailed instructions here:

<https://support.atlassian.com/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/>

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Help deleting repositories after failed import
Asked by Charles Cassel:

Hello, I need support assistance deleting two repositories in this workspace that are unusable in the UI or REST API after a failed import operation.


Answers:
author: Mark C
body: Hi [@Charles Cassel](/t5/user/viewprofilepage/user-id/5292471),  

Welcome to the community.  

It seems that those repositories were stuck in the "Importing" state.  
I went ahead and deleted those two repositories.  
You can now try to import again.  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Review change between 2 baseline in Clearcase
Asked by Joshua Huang:

Is there any way that I can easily to create a review for the difference beween 2 baselins in Clearcase ?


Answers:
author: seb
body: There is no way to review differences between two baselines in Crucible. Also please be aware that Atlassian is dropping support for Clearcase from FishEye in April 2012. Please see the [EOL announcement](http://confluence.atlassian.com/display/FISHEYE/End+of+Support+Announcements+for+FishEye#EndofSupportAnnouncementsforFishEye-20110321repository).
Crucible functionality configurable but missing in IDEA 10.5
Asked by ritchiem:

Hi I have a Crucible server added in the Connector but I get no additional functionality.

The 'Create Review' button does not appear on the task bar.

Also there is no Crucible tab in the Atlassian connector panel only Jira and Bamboo.

I'm using :

Atlassian [FishEye repository viewer](http://www.atlassian.com/software/fisheye/)with [Crucible code review](http://www.atlassian.com/software/crucible/). (Version:2.5.4 Build:20110408064401 2011-04-08)

Atlassian Connector : 3.0.1 SVN:1105240345

Any thoughts on what I'm doing wrong?

The connector 'Test Connection' works and the Jira/Bamboo integration works fine.

Cheers

Martin


Answers:
author: PiotrP
body: Martin,

Starting from version 3.0 Connector do not fully support Crucible and FishEye.

The behaviour you are expecting in 3.0.1 is dropped. Read more about dropped functionality here [http://blogs.atlassian.com/devtools/2011/02/atlassian-ide-connector-30.html\</p\<\>\>](http://blogs.atlassian.com/devtools/2011/02/atlassian-ide-connector-30.html%3C/p)


author: PiotrP
body: Martin,

Starting from version 3.0 Connector do not fully support Crucible and FishEye.

The behaviour you are expecting in 3.0.1 is dropped. Read more about dropped functionality here <http://blogs.atlassian.com/devtools/2011/02/atlassian-ide-connector-30.html>


author: Jens Schumacher [Atlassian]
body: This is likeley a bug. The Crucible configuration is not supposed to appear. Our developers will look into it. Thanks for pointing it out.


Tags: ide-connector
Crucible how to create a review where I am the moderator and reviewer and someone else is the author?
Asked by Brad Rymer:

Hi,

We are using crucible 2.4.1.

Can crucible be setup to let me create a review where I am the moderator and reviewer and someone else is the author?

I found [http://forums.atlassian.com/thread.jspa?messageID=257320164\&#257320164](http://forums.atlassian.com/thread.jspa?messageID=257320164%3F) which is someone asking for the same thing in 2009 and the updates imply it's possible.

I guess it may be related to Crucible 'Permission schemes' but if so I don't know what needs to be done. We're using the default permissions scheme.

Thanks,

Brad.


Answers:
author: Yehosef Shapiro
body: using FE 2.7 -- why then does it say when creating a reviews without a reviewer "If there are only two people in this review, it is best to make one of them a Reviewer and the other Moderator and Author."

The problem with this advice is that the control of "starting" the review falls on the author, who is being reviewed - it seems to put them in the driver seat of the review which seems odd.

I'm new to crucible - maybe I'm missing something.

comments: author: seb
body: By default, Crucible assumes the author of the review is in control. That is, they are the user who puts the code up for review, rather than an external party coming in and running the show.

You can switch this logic around by changing your permission scheme to disallow the author from starting/closing the review and leaving that to the reviewer.


author: seb
body: Hi Brad,

A Crucible review has the following participant fields:

* Creator
* Author
* Moderator
* Reviwers

The "creator" is the only field which cannot be set - it is implied by the user actioning the create review operation. All other fields may be set by whoever is allowed; dictated by the permission scheme which has been configured for the project.

Infact, when you create a review directly from a FishEye changeset, Crucible is clever enough to determine that the author of the review should be the original author of the changeset which has been committed to the repository.

You will be able to change the Author of a review from the edit review details screen. Simply click on the "Edit Review" button (will only show up if you have permission).

However, it is currently not possible for one user to be both a "moderator" as well as a "reviewer", however this is usually not necessary as the Moderator can usually perform the same operations (and more) than a reviewer.

Cheers,

Seb

comments: author: david.humeniuk@udri.udayton.edu
body: I also would like for a moderator to be a reviewer. Sure a moderator can review the code, but there isn't an easy way to track whether a moderator has reviewed all the code (the % complete isn't displayed). Also, a moderator isn't notified of a review being created, only that a reviewer has completed reviewing a changeset.
How to search range of revisions
Asked by Gangadharan Ramakrishnan:

Hi.. I would like to know how can we search range of revisions using fisheye..

basically, list the changes (not diff) between revision 10 to 20

http://fisheye.xxx.com/\<module\>/\<trunk or tags or branches\>/,revision range\>


Answers:
author: Tom Cramer
body: I'm looking for an answer here too. I can do this via EyeQL, but need a way to have a generic URL clickable from our build sytem/emails that shows only changes made between revision X and Y.

I've tried:

[http://fisheye.int/changelog/\~revision=41841,41843/src/path/trunk](http://fisheye.int/changelog/~revision=41841,41843/src/path//trunk)

[http://fisheye.int/changelog/\~r=41841,41843/src/path/trunk](http://fisheye.int/changelog/~revision=41841,41843/src/path//trunk)

[http://fisheye.int/changelog/\~rev=41841,41843/src/path/trunk](http://fisheye.int/changelog/~rev=41841,41843/src/path/trunk)

[http://fisheye.int/changelog/src/path/trunk](http://fisheye.int/changelog/~rev=41841,41843/src/path/trunk)?showid=41841,41834

No luck with any of these


author: Gangadharan Ramakrishnan
body: I was looking for somethign like

[http://fisheye.xxx.com:8060/search/module/trunk?head=true\&comment=\&contents=\&addedText=\&deletedText=\&filename=\&branch=\&tag=\&fromrev=256\&torev=220\&datesortorder=DESCENDING\&groupby=revision\&col=path\&col=author\&col=date\&col=csid\&refresh=y](http://fisheye.etrade.com:8060/search/rtxlibs/trunk?head=true&comment=&contents=&addedText=&deletedText=&filename=&branch=&tag=&fromrev=256&torev=220&datesortorder=DESCENDING&groupby=revision&col=path&col=author&col=date&col=csid&refresh=y)
Is there an easy way to populate user avatars in FishEye?
Asked by David Yu:

I noticed a folder containing avatars in my FishEye data dir. Can I easily just copy JPGS into that directory so I can create avatars for users quickly? The filenames appear hashed.


Answers:
author: David Yu
body: I think I found a way. The images are saved by md5 of the fisheye username. They are then saved under the first two characters of the hash:

var/data/avatars/XX/md5hash.image

Can anyone confirm or deny this is OK to do as long as the image is under 2MB?


author: seb
body: Hi David,

Although this is not supported (and hence not documented), yes, this procedure should work to populate the avatars.

You will need to ensure that all images are square as I cannot guarrantee how FishEye will render the images otherwise (we sanitize avatars when they are uploaded).

Regards,  
Seb
Disable loc counter in Fisheye sources tab
Asked by Pini Reznik:

is it possible to disable LOC counter in Fisheye?


Answers:
author: Daniel R
body: As of version 3.4 you can turn off LOC calculation using the `fisheye.blame.calc.enable `[System Property](https://confluence.atlassian.com/display/FISHEYE/System+Properties#SystemProperties-Generalproperties).


author: Azwandi Mohd Aris
body: It does not seem to be possible at the moment, however, you might want to keep an eye on [FE-1533](https://jira.atlassian.com/browse/FE-1533).
How do you get Fisheye to recognize a heirarchy of branches?
Asked by Rob Wiskow:

In our SVN setup, we use a heirarchy of branches, where the actual branches appear several levels deeper than just "branches".

For instance, within our "branches" directory, we have a "users" directory, and within that a separate directory for each developer, and then the developers create their own branches within their own directories.

The problem is that Fisheye treats all of that as just a "users" branch. Is there some way to get Fisheye to recognize the actual branches? Is this something I should be opening an issue for?


Answers:
author: Jason Jason
body: Have you tried modifying the Custom Symbolic Rules in the repository definition?

Look for Symbolic section and hit edit details then use the drop down to select custom and use a custom branches pattern.

Something like

Pattern: branches/users/(\[\^/\]+)/(\[\^/\]+) Name: "${1}-${2}"

This should import each users multiple branches as USERNAME-BRANCHNAME
What is the best way to add all files of a branch to a review
Asked by francis:

We want to do a full code review of all the files of a small project.  
What approach should I use to add all the files under a certain branch ?

When I use the 'search for files in repository', I can add all revisitions. Doing this will also add all files which have been deleted.

Francis


Answers:
author: AjayA
body: Hi Francis,

Yeah, unfortunately this is currently not possible and there is a feature request for this;

<https://jira.atlassian.com/browse/CRUC-4971>

You can still reiview the branch by [browsing to the location in Crucible and removing the deleted](http://confluence.atlassian.com/display/CRUCIBLE/Selecting+the+Files+for+the+Review#SelectingtheFilesfortheReview-SelectingFilesforReviewbyExploringRepositories) files manually

(but you probably knew this already)

Regards,

Ajay.

comments: author: Michael
body: I am in the same boat - and adding files is a huge pain.
Move reviews review between to Crucible instances
Asked by Pini Reznik:

Hi,

Is it possible to move reviews between to instances of Crucible?

We have a huge instance and we want to split it, but we think that we may need it the future to move some projects between two new instances.

Thanks


Answers:
author: Partha Kamal
body: There is no built in feature for this. What we would need is to be able to export projects similar to the way backups work. There is a feature requestfor this at [CRUC-681](http://jira.atlassian.com/browse/CRUC-681).

Currently the only way to spilt the instances, would be to make a copy of the instance by following the instructions in [Migrating FishEye Between Servers](http://confluence.atlassian.com/x/qAA0Cg).

After making the copy you would delete from both instances the projects that you did not want, for example if you had project A and B, then you would delete project A on one instance and project B on the other, so they do not overlap.

I hope that information helps.
How do I add a client cert to the svn credentials
Asked by Steve Baker:

I would like to add a remote repository to my crucible.

The remote repository is secured with a client certificate.

How can I add the client certificate to the svn credentials in crucible so that the crucible connection to svn can be authenticated?


Answers:
author: justindowning
body: [Authentication for FishEye Repository](http://confluence.atlassian.com/display/FISHEYE/Authentication)

SCMs typically support simple username and password combinations for authentication. However, in FishEye and Crucible, more complex authentication styles are supported for the following repository types:

* Mercurial
* Git

```
Although Subversion supports more complex authentication styles like ssh and ssl certificate authentication, these are not currently configurable in FishEye. When using the bundled svnkit library, these are typically configured using Java property definitions.
```
Creating reviews automatically from changesets
Asked by Nikita Zhuk:

Hi,

I'm using Mercurial (hosted at BitBucket) and currently evaluating Crucible as a code review tool for my team. We have one fairly critical repository where we would like to setup reviews for each changeset pushed to that repository (optionally excluding some individual commits by some special string inside commit message). Is this kind of workflow possible in Crucible?


Answers:
author: rverschoor
body: There is the [Automatic Review Creator](https://plugins.atlassian.com/plugin/details/14896)**but** unfortunately it's incompatible with recent Crucible versions.


author: Kinto Soft
body: In my opinion (of course, there are always exceptions), creating a review for each revision might be a bit excessive in many cases.

I would say that is much more realistic using a repository browser deeply integrated with JIRA. In that way, users might view when code has been reviewed or not while them explore changes: log/history command, revision graphs, open a file, and so on.

In addition, users should be able to ask for review from JIRA if they want to be sure that code is ok. Simply: click on a revision and ask for review.

That integrated repository browser should also be able to filter changes by user allowing to review changes made by a recently hired employee, by example.

If you are using Subversion then there is available a plugin providing all features described above and much more.


author: Jackson Gibbs
body: I've got a great solution if you're arriving at this thread looking for a script to automate review creation (or just some Python to illustrate how to use the REST API) ... introducing Mullite!

<https://github.com/60East/mullite>

Clone it, write your config file, cron it and you're set!


author: Partha Kamal
body: You can use mercurial post commit hook and create a script using the Crucible API:

<http://confluence.atlassian.com/display/FECRUDEV/REST+API+Guide>

to create a review after each commit.


author: Nikita Zhuk
body: I was actually been able to install that plugin into Crucible 2.6.0 and it seems to work quite nicely, but it doesn't quite support Iterative Reviews. Even if I enable the "Enable iterative reviews" checkbox in settings in the Administration section, it still creates new reviews automatically for those changesets which contain only changes which are part of files under existing reviews.

It would be nice if the code author who receives review feedback could commit fixes with some special commit message prefix (e.g. the code review ID) so that Crucible would know that this specific commit is associated with this specific, existing review, and that no new reviews should be created automatically. Is there such a feature?


Tags: automation

review