youngmon/atlassian-qna huggingface dataset:
Issue with Bitbucket Pipeline SSH Access to Localhost on Windows
Asked by levelup:

Hi Bitbucket Community,

I hope this message finds you well. I'm currently facing an issue while trying to configure my Bitbucket Pipeline to access my localhost via SSH on Windows. I've successfully set up SSH access to my localhost using the localhost IP, but when attempting to access it through Bitbucket Pipeline, I encounter an error.

Here are the details of my setup:

**Localhost Configuration:**

* Operating System: Windows
* Localhost IP: \[Your Localhost IP\]
* SSH Key Setup:
  * Generated SSH keys using \[Specify the tool or method\]
  * Added the public key to the authorized_keys file on localhost

**Troubleshooting Steps Taken:**

I would greatly appreciate any insights or suggestions on how to resolve this issue. If additional information is needed, please let me know, and I'll provide it promptly.

Thank you in advance for your assistance!

Best regards,


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

In order for us to investigate further, I would like to ask a few questions about your setup :

* Are you using [self-hosted runner](https://support.atlassian.com/bitbucket-cloud/docs/runners/) in your pipeline? If yes, is it a Linux docker runner or a Windows runner?   
  I ask this because since you mentioned you only have a local host address in your server, you will only be able to access this private IP if using a selfhosted runner in the same network. If you are using cloud runners (the build runs in Atlassian infrastructure), then your server will need a public IP address, so Pipelines can access that IP over the internet.
* Could you share with us the part of your YML script where you run the SSH command?
* Can you share the full log of your pipeline build containing the error you received?

If you have any questions, feel free to ask.

Thank you, [@levelup](/t5/user/viewprofilepage/user-id/5384098) !

Patrik S


Tags: bitbucket-cloud

cloud
How can we apply pre-receive hooks in bitbucket cloud
Asked by ankush:

We are woking on implementing pre-commit guidelines(ex: **Adding comments format to the commit** ) for all the commits done by developers into the repositories.   
While trying to find the pre-commit hooks in the repositories setting i couldn't find any hooks options. Could you please guide us for the same ?   

Also, if there is any workarounds for this please let us know.


Answers:
author: Saxea _Flowie_
body: There is no support for server-side hooks. There's a feature request [here](https://jira.atlassian.com/browse/BCLOUD-10471).

However, you can implement client-side hooks. You can optionally use tools like [Husky](https://typicode.github.io/husky/) or [Overcommit](https://typicode.github.io/husky/) that help manage the hooks.

Client-side hooks can be bypassed if misconfigured or maliciously, so it's not guaranteed. If you want to detect that the client didn't work with a check on the server, [Flowie](https://flowie.app) (a Bitbucket app we maintain) can create merge checks to prevent PRs with issues from being merged.


Tags: bitbucket-cloud

cloud
merge check for succesful build last commit not shown
Asked by Akash Patel:

Where is the option to select this merge check?  

\`Minimum number of successful builds for the last commit with no failed builds and no in progress builds\`

as mentioned here: <https://support.atlassian.com/bitbucket-cloud/docs/suggest-or-require-checks-before-a-merge/>

I have checked under Repository Settings \> Merge Checks and it is missing

Add merge checks opens the Atlassian Marketplace for Bitbucket but I could not find anything relevant. Is there a specific plugin for this or is this deprecated? If so, is there an alternative approach?


Answers:
author: Saxea _Flowie_
body: Hi [@Akash Patel](/t5/user/viewprofilepage/user-id/5384094) ,

Perhaps you are using the Bitbucket server version?

On the cloud, it is under Repository settings -\> Branch restrictions. The URL should read like this: <https://bitbucket.org/>\<your-workspace\>/\<your-repo\>/admin/branch-restrictions

It's the second last in the 'Merge checks' section:

![Screenshot from 2023-12-12 07-38-04.png](https://community.atlassian.com/t5/image/serverpage/image-id/296259iCFF154636EC77543/image-size/large?v=v2&px=999 "Screenshot from 2023-12-12 07-38-04.png")

comments: author: Akash Patel
body: I think you are right. Is there a similar option for v7.21


author: Akash Patel
body: It seems to me that its already ensuring the latest commit's build is successful by just setting \`Minimum successful builds\` to 1 for bitbucket v7.21


Tags: bitbucket-server

server
Malformed JSON string while retrieving Crucible review data using REST Api's
Asked by Mohan Krishnan:

Hello ,

The following code snippet throws the following error :

my $headers = {Content-type =\> 'application/json' ,Accept =\> 'application/json', Authorization =\> 'Basic ' . encode_base64($username . ':' . $password)};

my $client = REST::Client-\>new();

$client-\>setHost('http://Cru_Server:8060/cru');

$client-\>GET('/rest-service/reviews-v1/filter/allOpenReviews',$headers);

#print $client-\>responseContent();

my $response = from_json($client-\>responseContent());

print $response;

**malformed JSON string, neither array, object, number, string or atom, at charact**

**er offset 1 (before "\<!DOCTYPE html\>\\n\<ht...") at Crucible_Interaction.pl line**

**Any suggestion's?**

**Thanks ,**

**Mohan**


Answers:
author: Mohan Krishnan
body: Hi Sergey ,

how do i need to ensure that i get a JSON response ?


author: rstephens
body: Hi Mohan,

Are you using your REST client correctly? I'm not super familiar with perl, but I would assume that a method called setHost is not meant to take a URL path. You could try something like this:

$client-\>setHost('Cru_Server:8060');

$client-\>GET('/cru/rest-service/reviews-v1/filter/allOpenReviews',$headers);

You may also need to set the port separately to the host?

-Richard


author: Sergey Svishchev
body: That's not a JSON response, by the way.


author: Conor
body: It looks like you are getting an error response. Can you look at the whole response. Usually there is a message in there regarding the error. You can alos look at the log on the server side to see what might be going wrong.
Creating custom 404 page after changing context
Asked by Thibaud SAINT-MARTIN:

Hi guys,

I changed the context of my Fisheye install to be **\<web-server site-url="http://****...:8060/" context="fisheye"\> \<http bind=":8060"/\>...\</web-server\>**

<br />

Now, when I try to browse http://\*.\*.\*.\*:8060, a 404 error is raised, with something like "Error 404 - Not Found. No context on this server matched or handled this request. Contexts known to this server are: some text".

The obvious problem here is that this error message gives too much information about my Fisheye install (it gives clear text view on the physical path of my JIRA install).

I already tried to change web.xml for **\<error-code\>404\</error-code\>**, but even after restarting Fisheye, the old 404 error is still shown.

Is there an easy way to redirect http://\*.\*.\*.\*:8060 into my http://\*.\*.\*.\*:8060/fisheye page ? If not, can't I simply modify the original 404 page not to display the link to my files anymore ?

Thanks,

Thibaud

<br />


Answers:
author: Alexis Wilke
body: According to them, this is not a valid option...

<https://confluence.atlassian.com/display/FISHKB/Error+404+-+Not+Found.+No+context+on+this+server+matched+or+handled+this+request>


Tags: context

fisheye-crucible-administration
Mutiple Email per user
Asked by Jonathan Cuff:

Can you set mutiple emails per user in Crucible for notifications?


Answers:
author: AmberF
body: Hi Jonathan!

Currently, Crucible provides only one email address per user. For more information regarding user profiles and notification see [Changing your user profile](https://confluence.atlassian.com/display/FISHEYE/Changing+your+User+Profile).
Need to install Crucible for Jira 5.0.7
Asked by Rohan Kulkarni:

I would like to know which version of Crucible is compatible with Jira 5.0.7 and what are the system requirements for the installation of Crucible. Also whether Crucible has to be installed separately and then integrate with Jira or upload Crucible from within Jira? Please suggest.Thanks,Rohan


Answers:
author: Alejandro Conde Carrillo
body: I believe you should then use Crucible 2.6.x. More info in [Version Compatibility for Application Links](https://confluence.atlassian.com/display/APPLINKS/_Version+Compatibility+for+Application+Links).


author: rstephens
body: Hi Rohan,

The latest version of Crucible (3.0.2) is compatible with all versions of JIRA from 4.4 onwards. Please do not install such an old version of Crucible - 2.6 is unsupported and contains numerous bugs which have since been fixed.

It sounds like you're seeing that error because you need to enter the base URL for JIRA into fisheye withoiut the path. That is, something like:

http://10.5.22.23:9991

Do not include the /secure/Dashboard.jspa

Kind Regards,

Richard Stephens


author: Rohan Kulkarni
body: Thanks Alex. When I tried to install Crucible, in the 3rd step while Connecting to Jira it threw an error "Could not retrieve manifest from <http://10.5.22.23:9991/secure/Dashboard.jspa>. Please check the JIRA Server URL, and ensure it is JIRA 4.3 or later." I tried installing a supporting plugin i.e. Jira-fisheye 5.0.14 but that didnt help, and in the installation instructions its mentioned that the path to JDK should not contain any spaces, is this the reason for the error or something else? Please help.
Fisheye not indexing any Git remote branches
Asked by David Corley:

We've got a few Git repositories that we're indexing with Fisheye. We're trying to view the contents of certain remote branches, but it appears Fisheye is not indexing them (They're not listed in any branches drop-down, nor can I find them anywhere else)

The only thing being indexed is master

Is this expected behaviour?


Answers:
author: David Corley
body: So the resolution to our issue was this:

Prior to using git, we used Subversion and had some extremely large repositories. For performance reasons, we mirrored our SVN repos to the Fisheye server so they could be accessed with the file:/// protocol. When we introduced Git repos, we assumed the same local performance benefits would apply. However, after cloning the repos to the Fisheye box, and having Fisheye index the local copy, the remote branches on the origin weren't visible.

To fix the issue, we told Fisheye to index directly from the master (over the wire) instead of indexing from the local clone. After doing this, Fisheye correctly displayed all of the remote branches


author: rahuldanwade
body: Hi David,

Currently I have 6 repositories on my Fisheye server.

I am facing same problem that you had mentioned initially.

The problem persist only for single repository while others are working absolutely fine.

I have tried re-clone and re-index on that repository but I don't understand by

**"we told Fisheye to index directly from the master (over the wire) instead of indexing from the local clone"**

How can I index master????

could you please explain this to me!!!!!

Thanks in advance.


author: Nick
body: Thanks for the update, @David Corley.

Just an FYI - the way FishEye indexes both Git and Hg repositories is to first perform a bare clone of the repository to the local FishEye server. FishEye then processes the repository localy, via the file:/// protocol to keep things as performant as possible. Every POLL PERIOD, FishEye will first do a git fetch to retrieve an updates, before doing indexing those changes on the local clone.

Therefore, pointing FishEye to a remote repo should have no performance side effects for you.

Cheers,

Nick Pellow.


author: CelsoA
body: Hi David,

Could you please do these steps?

1. Go to FishEye Administration \> Global Settings \> Server \> Debug Logging and click the Turn Debugging ON button.

2. Reproduce the problem.

3. Generate a Support Zip FishEye Administration \>\> Systems Settings \>\> Atlassian Support Tools \>\> Support Zip

4. Attach it to a support ticket to be investigated.

5. Go to ({{FishEye Administration \> Global Settings \> Server \> Debug Logging}}) and click the {{Turn Debugging OFF}} button.

This way we can help you investigate why it's happening.

Regards.


Tags: fisheye-crucible-administration
crucible code review metrics
Asked by Dhandapani subramani:

I have a requirement to collect the crucible metrics for all all users reviews state (open,closed, reviewed). please share me any tools or any way I can fgetch these data from backend using any API or crucible UI page


Answers:
author: Dhandapani subramani
body: thank you so much


author: Rahul Aich [Nagra]
body: Yes, it is possible to collect metrics on crucible using the powerful comment search utility. I recently discovered it and it was fantastic. Here's the link which has all the details.

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

Rahul
Crucible: is there a configuration setting to relocate the var directory to another location?
Asked by jcurleyWR:

Is there a configuration option to relocate the "var" directory to another location?

Environment: Crucible v3.0.1 on a RH 6.4 server. Using GIT with large repositories.

Crucible was installed in the /opt partition with 5 GB. The /opt/atlassian/crucible/var/cache directory has used up all remaining space (disk full).
> (No space left on device) File=/opt/atlassian/crucible/var/data/data0.bin
>
Thank you.


Answers:
author: jcurleyWR
body: Hi Lukasz,

We have FISHEYE_INST set, but it does not appear to be in use. Thank you for the link to the instructions - that provides the instructions I needed.

Thank you,

John


author: lpater
body: Hi John,

The location of the Crucible data directory is determined by setting the FISHEYE_INST environment variable.

If it's not set, Crucible will use the home directory to store data. If that's your setup currently, you can use the method described in the upgrade guide to relocate it - <https://confluence.atlassian.com/display/FISHEYE/FishEye+upgrade+guide> (Method 3: Without a FISHEYE_INST directory, but would like to set one up).

If you already have a FISHEYE_INST environment variable and directory set, you just need to move the directory to a filesystem with more available space, and change the FISHEYE_INST variable to point at the new location.

Best regards,

?ukasz


Tags: fisheye-crucible-administration
Changes created by git amend not found
Asked by paulrs:

RE: Git and Crucible (Version:2.10.0 Build:20130115015957 2013-01-15)

Folks,

We've found that, if a developer creates a review based off of a changeset and there is feedback from the review that causes the developer to make additional changes, if the developer choses to use 'amend' when committing the changes, Crucible does not seem to pick up the changes automatically, and there doesn't appear to be a way to manually force the changes to picked up. Is this a known issue or is there something we are missing?


Answers:
author: Foong
body: Hi,

Please try disabling the option [Store the contents of files in reviews](https://confluence.atlassian.com/display/CRUCIBLE/Storing+all+revisions+under+review) at *Administration \> Project Settings \> Edit Crucible Settings \> Content*
Unable to select a particular changeset
Asked by Devendra:

crucible/fisheye is 2.9.0 connected with SVN

When selecting a particular changeset it turns yellowish, instead of showing tick.

See image.

Any help??


Answers:
author: Foong
body: Hi Devendra,

Is the changeset contain any metadata changes only? If yes, only file content changes will be added to the review and the checkbox will change color only instead of a tick. For more information, please refer to <https://jira.atlassian.com/browse/CRUC-6255>

comments: author: Devendra
body: CRUC-6255 seems to apply only to Stash/Git, not SVN.

In any case, it is not true that the changesets in question contain only metadata changes


author: Foong
body: > CRUC-6255 seems to apply only to Stash/Git, not SVN.

It has been tested that the problem happen to SVN metadata changes too.
> In any case, it is not true that the changesets in question contain only metadata changes

I meant if certain file in the changeset contain metadata changes. When the checkbox change color, only file content changes will be added to the review. The metadata changes will not be added to the review. The color changes means that 'part of the changes in this changeset is added to the review'.

If the changeset contain only metadata changes, then it can't be added to the review at all. The checkbox become grey in color and can't be ticked.


author: Devendra
body: how to attach???


Tags: fisheye-crucible-administration
Repository settings for Repository Sync add-on
Asked by Chris Wundram:

Is there a way to change the settings for fisheye repositories created using repository sync? I'd like to be able to set the "store diff info" setting to on, but this setting isn't available in the repository defaults screen. So I have to manually set this on each repository after the sync add-on has added them into fisheye.


Answers:
author: rstephens
body: Hi Chris,

Unfortunately at this stage the add-on does not support further configuraiton of the repositories it creates. A decision was taken to turn storing diff info off, because diff info is not needed for creating reviews and diff info adds substantially to indexing time.

Customisation of settings for created repositories is high on my priority list for this plugin.

Kind Regards,  
Richard Stephens


Tags: fisheye-crucible-administration
Access a fisheye raw file from confluence using in-page javascript
Asked by metan:

Hi;

I want to access/read the content of a fisheye raw file using an external javascript which runs inside a confluence page so i can give code samples in my documentation.

While I can access the raw file using the browser, it can not be read inside the js. Do you know why?

I've tried my js script by serving a file from an external apache instance and it works. Where as it can not read the raw file that is served by fisheye.

I've thought it could be an issue with CORS support but i can not be able to find how to enable CORS in fisheye / crucible. Any helps are highly appreciated.

Please consider following while answering this question:

1. Raw file settings are "insecure" in fisheye-crucible.
2. Accessing the raw file using this path pattern "http://\<fisheye-url-and-context\>/browse/\~raw,r=\<revision-number\>/\<repository-name\>/\<full-file-path\>"
3. it is a .java file.
4. Both fisheye-crucible and confluence runs on the same server with default installation configuration and it is win 8 server.
5. Fisheye-crucible ver: 2.10, confluence ver: 4.3.7


Answers:
author: rstephens
body: Hi Metan,

What you're seeing is probably due to lack of CORS support. Unfortunately there is no way to enable CORS in FishEye/Crucible. One way you could work around the lack of CORS is to configure an Apahce (or similar) reverse proxy to serve Confluence and FishEye from the same host/port (with separate context paths)

Kind Regards,  
Richard Stephens

comments: author: metan
body: Hi Richard;

Should I serve both FishEye and Confluence from the same apache instance or just Fisheye would be enough?


author: rstephens
body: Hi Metan,

To work around the lack of CORS, the Confluence instance would need to be accessing a Fisheye instance on the same host and port. So yes - you would need to proxy both Fisheye and Confluence from the same apache instance.

An alternative approach often implemented by plugin developers (including plugins developed within Atlassian) is to add a servlet or REST endpoint to your Confluence plugin that proxies the request to Fisheye.

Kind Regards,

Richard Stephens
How to efficiently handle respones to reviewer's comments?
Asked by Martin Burger:

We are using the [One-to-One Reviews](https://confluence.atlassian.com/display/CRUCIBLE/Defining+your+workflow#Definingyourworkflow-One-to-OneReviews(AgilePair)) workflow, where the author (= the developer) answers to the reviewer's comments.

As reviewer, it is hard to keep track of the reviews I have to act on next: both

* the reviews I still have to process
  * thus, not completely reviewed, no comments added yet = my immediate action is required

and

* the reviews I have processed for now
  * thus, 100% reviewed, I added some comments = I am waiting for the author's response

are in the inbox with status "to review".

As a consequence, I frequently browse through **all** the issues in my inbox to check if I have to do any work. Is there any way to mark reviews where I am waiting for the developer's feedback as "Waiting For" (? la Getting Things Done)?


Answers:
author: Martin Burger
body: This question might be related to [Why are reviews with unread reviewer's comments in developer's outbox?](/questions/182876/why-are-reviews-with-unread-reviewer-s-comments-in-developer-s-outbox) as I would expect that all items I have to act on to be in my inbox, and all items where I am waiting for someone other's action to be in my outbox.
Determine Overall Progress of Fisheye Initial Scan of GIT Repo
Asked by grumpasaurus:

I've been running an initial scan of a GIT repo for quite a while now and I would like to see what percentage of the repo has been scanned. Is there any way I can accomplish that?


Answers:
author: Foong
body: Hi,

It seems that you are looking for this feature request: <https://jira.atlassian.com/browse/FE-489>


Tags: fisheye-crucible-administration
Enable Mail configuration in Fisheye/Crucible 2.7.7
Asked by Megha Agrawal:

Hi,

How can we can enable mail notification for each code review in Fisheye/Crucible 2.7.7 ?

Anyone please suggest,


Answers:
author: Megha Agrawal
body: Yes I have configured mail server in FishCru, but getting error :

**" Problem Sending Mail,**

**553, The Sender is Spoofed "**


author: Sergey Svishchev
body: Have you configured (and tested) the mail server in FishCru?
What version of OAUTH do the various Atlassian apps (JIRA, Confluence, FishEye, Bamboo, Crowd) implement?
Asked by SuhlScroll:

I'm interested to know which version of the OAUTH specification (1.0 or 1.0a) the current versions of the Atlassian applications implement?

I'm also interested to know if all the applications do/will implement the same version of the OAUTH framework now and in the future at any given time?

Many thanks in advance!


Answers:
author: Patrick Li
body: It should be 1.0a

comments: author: SuhlScroll
body: Patrick,

I kind of thought as much, but I'd like someone from Atlassian to confirm it for the record. :) Also, I'd like to know if, as a policy, all the released app versions will be implementing the same version of OAUTH in the future? I would expect so, but I'm wondering what their policy is.


Tags: oauth
Is there a Crucible plugin that provides the ability to create a custom field?
Asked by Tini Good:

There is a new feature request in to Atlassian (<https://jira.atlassian.com/browse/CRUC-1516>), but is there an existing plugin that provides this capability? I haven't been able to find one.

Alternatively, is there a way to easily customize the Create New Review screen to add a text reminder to the Authors to include review artifact size?


Answers:
author: Sergey Svishchev
body: If that screen is implemented in JSP, download the JSP-Source edition of Crucible and modify JSP code.


Tags: fisheye-crucible-administration