youngmon/atlassian-qna huggingface dataset:
Error while cloning repo
Asked by besucher80:

Hi,

i have created a ssh key for bitbucket, add it in the repo to ssh keys.  
Then i create a ssh config like this:  

Host bitbucket.org  
HostName bitbucket.org  
IdentityFile \~/.ssh/bitbucket  

If i now clone :

git clone git@bitbucket.org:UNAME/REPO.git  

i got:  

Cloning into 'TESTT'...

Unauthorized

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.  

<br />

Why dont come the password prompt? Someone a idea why this come?  

Thanks


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

In your config file, I see that you specify **\~/.ssh/bitbucket**as an Identity file. Is this the correct path and name of the private key on your computer, whose public key you have uploaded to Bitbucket?

Can you please try cloning with the following command and post the full output here(after sanitizing workspace-id, repo name etc)? This command will show verbose output and possibly an indication of what is going wrong.

```
GIT_SSH_COMMAND="ssh -vvv" git clone git@bitbucket.org:workspace-id/repo.git
```

The reason that you don't get a password prompt is that you are using an SSH clone URL and authentication is done with the SSH keys. A password prompt shows when you clone with an HTTPS URL like this:

```
https://username@bitbucket.org/workspace-id/repo.git
```

If you specified a passphrase for the SSH key pair when you generated it, then you should see a prompt to enter the passphrase.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to get newly created Deployment Environments Variable
Asked by Patrick Tingne:

Hi All,

I'm trying to get the list of variables available on our Deployments Environments Variable. unfortunately, The newly created variable and its value does not show up. other existing variable are all showing on the output.

Also tried to update the existing one and test if I could get the updated value and it works fine.

Here's the api endpoint im using :   

'{base_url}/repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/'  

There's no issue on uuid, were getting it fine. Is there something should be done before the variable get registered on the API of BB?


Answers:
author: Ben
body: Hi Patrick,

I've just tested this on my end and was able to view my own deployment variables for my deployment environment regardless of whether or not they were secured or not. The variable registers instantly and will show on this endpoint.

If there is a large number of variables you may need to check subsequent results pages of that endpoint:

```
/2.0/repositories/{workspaceID}/{reposlug}/deployments_config/environments/{uuid}/variables?page=2
```

I would also suggest making sure the UUID is correct, you can view a list of environments and their associated UUID values with the following endpoint:

```
/2.0/repositories/{workspaceID}/{reposlug}/environments/
```

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Patrick Tingne
body: ```
?page=2
```

this was the only missing piece I needed. I can now get the correct data needed. thanks @\[deleted\]


Tags: bitbucket-cloud

cloud
Please make the branch name variable available in PR Template
Asked by Jiwon Jeon:

I want to insert the following command onto PR Template.  

\`\`\`shell  
BRANCH={{branch_name}}; git fetch origin $BRANCH; git pull; git checkout $BRANCH;  
\`\`\`  

To achieve this, a new variable including branch name must be created.


Answers:
author: Theodora Boudale
body: Hi [@Jiwon Jeon](/t5/user/viewprofilepage/user-id/5195900),

You can use the special variables **{{source_branch}}** and **{{destination_branch}}** in the **Default pull request description** in order to refer to the PR's branches.

I will ask the team that maintains the documentation to update our docs and include these variables as well.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora

comments: author: Jiwon Jeon
body: Thanks for your support!


Tags: bitbucket-cloud

cloud
Bitbucket API call to resume/rerun a pipeline given the UUID
Asked by Tharinda Hashen:

I found this API call for stopping a pipeline given the UUID:  

[The Bitbucket Cloud REST API (atlassian.com)](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-pipeline-uuid-stoppipeline-post)  
curl --request POST \\ --url '<https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/stopPipeline>'  

I am looking for an API call to resume/(rerun stopped steps) of the same pipeline given the UUID. I could not find such a option, I could only find API calls to run/trigger a new pipeline.  

Is there an API call or desired method to do it?


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

I'm afraid that we don't have an API endpoint for resuming or starting a step (paused or manual).

We have a feature request for what you are asking:

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

I would suggest adding your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Not able to get more than 1000 data using this web api
Asked by Rupesh Sawaliya:

Hi,

I am trying to pull data between two tags from bitbucket using web api, here is the web api.  

[https://bitbucket.local.com/rest/api/latest/projects/TEST/repos/test/changes?since=fb7232323fw3jwj8b14\&until=a6c4f1a060426e697896c567c0e444uu477e\&limit=2000\&start=1000](https://bitbucket.local.com/rest/api/latest/projects/TEST/repos/test/changes?since=fb7232323fw3jwj8b14&until=a6c4f1a060426e697896c567c0e444uu477e&limit=2000&start=1000)  

In since and from added dummy sha of two tags basically those are last commits sha of both the tags and when requesting to changes web api, I am able to get data but not more than 1000, even tried to use start parameter for pagination but no success.  

please guide.  

Thanks in Advance  
Rupesh


Answers:
author: Kian Stack Mumo Systems
body: [@Rupesh Sawaliya](/t5/user/viewprofilepage/user-id/5360971),

In the documentation it says that there is a hard cap se the the "@code page.max.changes".

**Note:** The implementation will apply a hard cap ({@code page.max.changes}) and it is not possible to request subsequent content when that cap is exceeded.

[This page](https://confluence.atlassian.com/bitbucketserver/configuration-properties-776640155.html) has some information on setting the values to a higher limit.


Tags: bitbucket-server

server
How to use Fisheye push authenticated with ssh pubkey
Asked by Matt:

How to use fisheye with ssh key authentication... I have tried several ways... and all of them failed.

<https://confluence.atlassian.com/display/FISHEYE/Authentication#Authentication-GeneratekeypairforSSH>

Unfortunatelly this is not a straight-forward description and it's a bit confusing.

In the end I would like to have something like bitbucket or github (upload your public key and you're done). I know it isn't currently possible. There are two options:

- Upload private key (you mean public key)...

- Generate keypair and it prints out pubkey (but it probably should print private key)...

And .git/config as it follows

```
[remote "origin"]    url = git@fisheye:/git/myproject.git    fetch = +refs/heads/*:refs/remotes/origin/*
```

and .ssh/config

```
Host fisheye    Hostname example.com    PubkeyAuthentication yes    IdentitiesOnly yes    IdentityFile ~/.ssh/fisheye.pub
```


Answers:
author: Daniel R
body: Hello MattEvangelist,

We actually considered this feature here but due to other developments, it will not be addressed:

<https://jira.atlassian.com/browse/FE-3771>

From product management:
> Due to the deprecation of managed Git repositories in FishEye we are not going to tackle this issue.
>
> Follow the link below to learn more about the deprecation of internally managed repositories:
>
> <https://confluence.atlassian.com/display/FISHEYE/End+of+Support+Announcement+for+Internally+Managed+Repositories>

Thanks,


Tags: git

key

ssh
fisheye upgrade problem - my sql db not found?
Asked by SungJin Woo:

Database not available \<unable to connect to Mysql database jdbc: -----\>

My sql Jar file : Exist in fisheye_home/lib/dbdriver/mysql

how can i fixed it? ver 2.10.

using fisheye_inst.


Answers:
author: Bhushan Nagaraj
body: Hi SungJin,

You are placing the mysql driver in the wrong directory. Place the jar file in FISHEYE_INST/lib. If you do not find the lib directory there, create it.

Read here

<https://confluence.atlassian.com/display/FISHEYE/Migrating+to+MySQL>

comments: author: SungJin Woo
body: thank you for your help


Tags: upgrade
when start Fisheye got exception:ORA-00955: name is already used by an existing object
Asked by David Wu:

when start FishEye i got this exception form log. the FishEye uses Oracle DB with UTF-8 encoding. Not sure if this was caused by UTF-8 encoding config


Answers:
author: Foong
body: Hi David,

Please check if the database user has the permission to create table space


author: Zul NS _Atlassian_
body: Have you gone through the following KB? Same thing should apply for Fisheye

[https://confluence.atlassian.com/display/JIRAKB/ORA-00955%3A+Name+is+Already+Used+by+an+Existing+Object](https://confluence.atlassian.com/display/JIRAKB/ORA-00955%253A+Name+is+Already+Used+by+an+Existing+Object)


Tags: database
Exclude folders/files from line count only
Asked by Craig:

I understand that I can exclude folders/files from being indexed by fisheye at all, however what I would like is for those folders/files to remain visible in the repository source browser, but be excluded from the aggregate line count.

The aim here is to get more accurate line count information by excluding folders with generated code or large integration test scripts.


Answers:
author: Avdhesh Chauhan
body: I dont think its possible in Fisheye 2.7.7
Crucible Error: Exception encountered while contacting JIRA Server: User not authenticated yet, or session timed out.
Asked by Annastashia Cambridge:

Has anyone seen this error in Crucible (in a review body plus in the header plus in the close review screen)?

Exception encountered while contacting JIRA Server Author-it JIRA: User not authenticated yet, or session timed out.

and know how to troubleshoot it?

I'm trying to set up the 'transitioning a linked issue' and test it, but its failing with this message when trying to retrieve the status. It also shows in the review body.

What is weird is that the JIRA issue link shows up with this message beside it, but I can click the link and go to the ticket in JIRA whilst using my same log in. I can also click the Crucible link in JIRA for the same issue and go back to Crucible. It would appear the application linking is working, except for this error message and I assume that it should be displaying the issue summary instead of the error message. My biggest problem is that I can't use the transition linked issue functionality.

Thanks!


Answers:
author: Annastashia Cambridge
body: Actually..

I was concerned about using basic authentication because the password for the account can easily change, also because it appears that when it is configured in this way, the user that shows in JIRA as making status updates to the tickets via Crucible is the one that you have configured in the basic authentication settings in the application link. It needs to be the actual user closing the reviews.

So..

I removed the application links and started again. I also re-did the LDAP integration in Crucible. I've set up the application link so that it only uses Oauth, since although my user base is the same, each application is individually integrated with LDAP. I then rechecked that only oauth was being used, logged in as me, told Crucible it was allowed to use my access to get to JIRA and vice versa in JIRA (review/source tab in the tickets) and then also tested this with another user. Doing this seems to have fixed the problem. I believe it was having trouble knowing what to do as both trusted applications and oauth were configured in the application linking and then since they were, it required (for some reason) basic auth to be set up.

So everything is now working! Bottom line it appears its best only to have one method of authentication set up in the application link, but of course I'd imagine this depends on how closely related your users and usernames are.


author: Annastashia Cambridge
body: ok, managed to fix this. I had to configure the basic authentication in the application link to JIRA. Not sure why this was suddenly required. Jira 5.2 and Crucible 2.9.1. We use AD, so will have to check it again when my password changes.


Tags: error
Crucible Review with just One User
Asked by MayBe:

We have the problem, that the person initiating, performing and closing the review is the same person.

Crucible has initation checks, that author, moderator and Reviewer cant be the same person. Is there a way to circumstance this by configuration?


Answers:
author: MayBe
body: We have found the following solution: We have already disabled the moderator role. Then we just add a crucible user as the author and leave the reviewer role open. Afterwards we can process a review with a sole person.

The solution is also backed up by the crucible documentation where the author role is the person also responsible for the correction of the review review which is the delegation to the developer.


author: Rahul Aich [Nagra]
body: 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.

If there is confusion, then you may also consider disabling the moderator role. Here's the link

<https://confluence.atlassian.com/display/CRUCIBLE/Enabling+the+Moderator+Role>

Rahul

<br />

comments: author: MayBe
body: The moderator is already deactivated. The reviewer and author is the same person. The review is either used to delegate it to a developer or to documentation purposes.

Is there a way in crucible to run reviews with one person?


author: Sergey Svishchev
body: Just to be clear -- do you want to disable this check?


author: MayBe
body: That would be a simple solution.
Can I change FishEye Template
Asked by eKyNoX:

Hello, all in the title, can I modify FishEye template (here a top navigation menu) like on Confluence.

If nothing in admin panel, what can I do to modify header ?

Thanks.


Answers:
author: eKyNoX
body: poking them; Thank u


author: Sergey Svishchev
body: I think so, but let's wait for Atlassian to answer that.


author: eKyNoX
body: If I do not want to involve myself learning how to make a plugin (that will take a lot of time and skills I'm sure), I'm forced to get the source JPS edition ? No other ways ?

Thanks for answer.


author: Sergey Svishchev
body: Not impossible, just poorly documented :-)

JSP files are present in JSP-Source edition (you need a commercial license to download that).

Adding your own menu to top navigation bar should be possible via plugin (look for 'web fragments' on [developer.atlassian.com](http://developer.atlassian.com))


author: eKyNoX
body: It worked for the css part.

But now I have some html (for my menu) to apply and can't figure any place where to put it.

I made all FishEye directories, searching now since many days, it's impossible to customize FishEye ...

I have empty jsp files here : \\FishEye\\content\\WEB-INF\\jsp

and it looks like that files are filled with the class here : /FishEye\\content\\WEB-INF\\classes\\org\\apache\\jsp

Some help could be great, Thanks.


author: JamieA
body: There is a corresponding .gz file. You need to gzip your css and overwrite the one present. It's a PITA.


author: eKyNoX
body: I tried to modify the css I see listed in Firebug to make a start point :

I tried add a simple css margin in body css element

from content/static/mesrp6/2static/style/concat.style.c2eea346b79c7f533b33ca8c748a1657.cache.css

It do not take my changes while reload the page.

Once I can modify css, I have to figure out how to push some html somewhere ...

Thanks again for any help.


author: eKyNoX
body: That's right, actually using iframe but not fit perfectly my requirements.

Take a look <http://ekynoxx-studios.dyndns.org/fisheye.html>

Problem is when the scrollbar appear, I still get the upper frame while scrolling down. Modify like I done it in Jira (Tracker tab) would be perfect.


author: Sergey Svishchev
body: Do you want to add a menu, or do something else?
Crucible / jira work log
Asked by Micha? Borek:

Hello,

In default configuration of link crucible \<-\> jira (with basic authentication) when I'm a reviewer and I track time, it is not tracked as reviewer, but as a user defined in "application link" configuration.

Is it possible to change that behavior so that it is tracked as current user?

Thank you for your answer.


Answers:
author: Laura Franco
body: Found that this issue has been reported to Atlassian: <https://jira.atlassian.com/i#browse/CRUC-6070>


author: Micha? Borek
body: Laura I haven't got any answer.


author: Laura Franco
body: Did you ever get an answer? i have the same question.


Tags: crucible-without-fisheye
Remove Reviewer
Asked by Tini Good:

Is there still a method available to remove a reviewer on an active review? I see in older versions of the documentation that there was, but there's nothing in the documentation for version 2.9.


Answers:
author: Matt
body: Unfortunately the option to modify reviewers has been removed.

comments: author: Tini Good
body: I accept that answer, but really have to wonder why. It seems a simple capability.
Is there a way for a Reviewer to attach a file to their comment/defect?
Asked by Tini Good:

The Author and Moderator can both add files to a review, but can the Reviewers? There are instances where it would be a convenient to attach an explanatory file to a comment or defect.


Answers:
author: Tini Good
body: Well, the only way I've found so far is to give reviewers edit permissions to the review. Then they can attach files just like the Author. Obviously, this is not optimal. Any alternate suggestions?
What happens when you delete a Fisheye SVN repository that is used by a Crucible Project containing reviews?
Asked by M. Stewart:

We have a Crucible Project that is pulling available source from multiple repositories - in some cases the Fisheye SVN repositories are scanning the same code. If we delete one of the repositories - the one that was used to pull the code into the review - will the review still be valid and work normally? If a new review was created, the same code would be available, just in a different repository.


Answers:
author: Daniel R
body: Hello The_MC,

There is a setting (enabled by default) for each Crucible Project to "Store the contents of files in reviews". With this setting enabled the content in a review persists without needing the originating repository to remain connected.

Cheers,

Daniel
403 Forbidden accessing SVN from Eclipse
Asked by theThought:

I have Jira on Demand and until the start of this year my team have been able to connect/view/update/commit to SVN from eclipse and to view from Fisheye.

Now, however, my users can not view the repository in Eclipse. They can still view in Fisheye and strangely they can still commit to projects they all ready have checked out but they can not view the repository structure.

When they attempt to view the repository they get a 403 error.

If administrator rights are given then it all works, but obviously I am not going to give everyone admin rights.

I have checked Jira and all the team have commit/browse access.

Does anyone have any great ideas?


Answers:
author: Felipe Cuozzo
body: Hi Kevin,

Do you still have this problem?

Also be aware of:  

https://confluence.atlassian.com/display/AOD/FishEye,+Crucible,+Subversion+OnDemand+End+of+Service  

Cheers,  
Felipe Cuozzo  
Atlassian OnDemand


author: jjaroczynski
body: I would rise a support request at [support.atlassian.com](http://support.atlassian.com)


Tags: cloud

eclipse

fisheye-crucible-svn-ondemand
Installation of multiple addons - Fisheye, Crucible, Confluence
Asked by Netsafe:

When looking to install JIRA addons, the documentation is confusing. Crucible install guide for Windows references Fisheye and appears to indicate that Crucible is a more feature rich version of that product. Each references the other product and there is no indication which should be installed first (if necessary). Also, the need for 32bit Java on an x64 Windows server for the Windows service function also appears to fail - Windows does not see the installation Please help!


Answers:
author: JohnA
body: Hi there,

FishEye and Crucible are essentially two products in one bundle, (with one installer), but they require separate licenses so this is why Crucible appears to be a more feature rich version of the product, (as it extends the functionality of FishEye).

When you say that setting up the Windows Service is failing, can I ask whether you are using the Java Service Wrapper, as described in this document? <https://confluence.atlassian.com/display/FISHEYE/Running+FishEye+as+a+Windows+service#RunningFishEyeasaWindowsservice-InstallingtheJavaServiceWrapper>

If you have followed all the instructions in that document and the install still isn't working, please open a ticket with [Support](https://support.atlassian.com/) in the FishEye project and one of our engineers will advise you on how to get this configured.

All the best,  
John


Tags: install
Installation procedure for Fisheye/Crucible
Asked by Netsafe:

We have JIRA up and running but when looking to add Fisheye/Crucible addons the documentation is very confusing and not clear which should be installed and in what order. Also, there is no indication whether Crucible is just a more feature rich version of Fisheye or a separate addon. Each references the other and there is no clear indication which is necessary and what order they should be installed (FYI - Windows x64 install). Please help clarify.


Answers:
author: CelsoA
body: Crucible is a tool to create reviews for Source codes.

FishEye is a tool to provide access to a repository code, using a http client.

There is no specific order to install the applications.

We have some guides to install the applications:

<https://confluence.atlassian.com/display/CRUCIBLE/Crucible+and+FishEye>

<https://confluence.atlassian.com/display/CRUCIBLE/Installing+Crucible+on+Linux+and+Mac>

<https://confluence.atlassian.com/display/CRUCIBLE/Installing+Crucible+on+Windows>

Please let me know if this is what you are looking for.

Regards,

Celso Yoshioka


Tags: install