youngmon/atlassian-qna huggingface dataset:
Can I schedule a pipeline to run on a week of the month
Asked by Sean Dean:

I'm able to schedule Pipelines via the API, which is nice and provides a good deal of granularity. I'm wondering if it's possible to schedule a pipeline to run on the second Monday of the month. I feel like I can't, but I thought maybe someone in the community might have an answer.


Answers:
author: Aron Gombas _Midori_
body: We had a similar use a few years ago and we implemented the followings:

1. Set a Google script trigger with the corresponding CRON expression (we wanted to run a build every morning)
2. The Google script did nothing else, but triggered the build via the standard Bitbucket Cloud REST API

It was a few lines of code, and it has been working reliably since then.

I don't know if there is a better way to do it today, but probably Bitbucket Cloud still doesn't do it out of the box. And, of course, you can use any other platform that supports flexible scheduling and making a REST API call.


Tags: bitbucket-pipelines

cloud
Migrating Bitbucket: Server Edition on Windows to Datacenter Edition on Linux Server
Asked by Matthew:

Hello,

We are running Bitbucket Server Edition in Windows for several years, containing numerous projects, repositories and add-ons (plugin apps). We procured Datacenter Edition licenses and will receive them soon. We have (2) Red Hat Enterprise Servers ready for Bitbucket Datacenter (PROD \& TEST). Can anyone provide feedback on how to migrate this? Any tips, do's or don't s would be appreciated :)

Thanks,

Matthew


Answers:
author: Rafael Parmigiani
body: Hi Matthew,

The general steps on migrating from Windows to Linux and moving from one server to another can be found in the following two Atlassian resources:

* [Migrate Bitbucket Server from Windows to Linux](https://confluence.atlassian.com/bitbucketserver/migrate-bitbucket-server-from-windows-to-linux-1128304336.html)
* [Migrating Bitbucket Data Center to another server](https://confluence.atlassian.com/bitbucketserver/migrating-bitbucket-data-center-to-another-server-776640406.html)

We don't have specific recommendations for RHEL, though here are a couple things to pay attention to:

* **Git version:** RHEL repositories typically distribute Git 2.18.x. Depending on the Bitbucket version you are running on, you may need to manually install a compatible version of Git. Sometimes this means compiling it from source.
* **SELinux:** we have seen some instances where SELinux seems to be more restrictive in RHEL systems in comparison to other distributions. Sometimes, this causes problems with Bitbucket when running it as a service. If the service doesn't start, remember to check SELinux audit logs as it might indicate why the process was denied.

Hope these pointers will set you off to a good start for the migration.


Tags: bitbucket-administration

bitbucket-data-center

bitbucket-server

linux

migration-customer-care

rhel

server

windows
SQL server 2008 R2 Collation and Fisheye Collation mismatch
Asked by Bill Mariasoosai:

I have a SQL server 2008 R2 as backend for Fisheye/Crucible (3.1.4)

"fishscru" is the name of the database.

The SQL server DBA says the following:

--------------------------------

SQL14VWT\\SQL14VWT's default collation is **"SQL_Latin1_General_CP1_CI_AS"** (case

insensitive).The collation for "fishcru" is **"Latin1_General_CS_AS"** (case sensitive).

Errors can generate when joining temporary tables with persistent tables

when there is a collation difference of this sort. Temporary tables (unless explicitly specified)

will create with the server's default collation, which is different than your databases'.

If you attempt to join the two tables on a character field, you'll get an exception relating to a

collation mismatch.

----------------------------------

Will this be a potential problem down the road?

Thanks

Bzoo


Answers:
author: Piotr Swiecicki
body: Hi Bill,

No, you can expect no problems, your configuration would work fine. FishEye/Crucible would not create any temporary tables so the default collation of Latin1_General_CS_AS specified for your "fishcru" schema would be fine.

Kind regards,
FishEye and Crucible Evaluation License - Everything's Public?
Asked by slash games:

Hey everybody,

we just set up Crucible on our development server, and ALL repos, projects, people and reviews are now publicly visible (i.e. you don't even need to log in to see all this information) We must change that immediately to only registered users being able to access this data.

How to do that?


Answers:
author: Tom Davies
body: Go to the administration page, click the 'Authentication' link (under the 'security settings' heading) and turn off Global Anonymous Access and Crucible Anonymous Access.

comments: author: slash games
body: Thank you, that did the trick!


Tags: fisheye-crucible-administration
JIRA-Perforce integration
Asked by Cindy Leevy:

We used to use the old/desupported P4 plugin to integrate with JIRA 3.x, and it worked perfectly for us. Now that we plan to upgrade JIRA to 6.x, the P4 plugin did not work anymore. One option is to purchase FishEye. We found that FishEye integration is based on P4jobs, which we don't use in our development environment.

My question is: what are the options for us to get JIRA and P4 integrated without P4jobs? We would like to pull Perforce changelist information from JIRA based on P4 changelist comments, i.e., every P4 changelist has to have a JIRA ticket number in the comment.


Answers:
author: lpater
body: Hi Cindy,

you can use FishEye and the JIRA integration provided by the JIRA FishEye plugin without using Perforce jobs. Changelists can be associated with issues by containing an issue key in the comment. You can than easily see the commits in the issue's 'source' tab.

comments: author: Cindy Leevy
body: That's great. We will start to evaluate FishEye.


author: Nguyen Nguyen
body: We're in the same situation. Would love to know if anyone has come up with a solution.
Fisheye appears twice
Asked by Glenn Garrett:

Hi there

In the top-left corner of Jira, I get "Fisheye" appearing in the menu twice. Is there any way of removing one entry please? If I use the Application Navigator, it says (my bold/italics) :

The application navigator appears in the top left corner of the header so users can quickly access other applications. Linked applications are automatically configured in the application navigator for you, ***and you can't delete them***. Add your own links for users by providing the name and URL of the destination below.

Thanks

Glenn


Answers:
author: rstephens
body: Hi Glenn,

The links that can't be deleted in the application navigator are links that are automatically populated from your application links. Check to make sure that you only have one application link to Fisheye.

Kind Regards,

Richard Stephens


author: Glenn Garrett
body: Thanks Richard, that worked fine. Actually when I deleted one of the application links in Jira, it deleted the link from Fisheye back to Jira too, but then I recreated that manually in Fisheye and all was good again.


Tags: fisheye-crucible-administration
Fisheye/Crubicle User Exceeded warning, how to get rid of it?
Asked by Patrick Suteja:

Under **Settings -\> Application Access** , **FishEye/Crucible** , it says **1 exceeded.**

Currently we are not using Fish Eye at all. Probably previous admin was using trial license. Now, how do I unlink this Fish Eye? I've searched all settings including users account but couldn't find any link to Fish Eye account.

Please help.


Answers:
author: JolyonKB
body: There is an open issue for this on AOD: [AOD-5952](https://jira.atlassian.com/browse/AOD-5952) which says this is a 'harmless error.' Apparently it can only be removed by issuing a request to atlassian support.


author: Patrick Suteja
body: I couldn't see **Systems Settings \> System Info** and then click the**'Edit License'** option. Does it make any different if I'm **OnDemand**?

The closest one I have relating to **FishEye** is via **Administration -\> Add-ons -\> Manage add-ons -\> FishEye -\> Manage -\> Disable**.

Even after disabling it, under **Administrations -\> User Management -\> Application Access** , **FishEye/Crubicle** still shows **1 exceeded.**


author: rverschoor
body: You can disable FishEye by deleting the license key.

In the Administration screen go to Systems Settings \> System Info and then click the 'Edit License' button.  
Clear the FishEye License box and click the Update button at the bottom of the page.

Please note that you need to reindex any repositories that you previously had indexed in FishEye.  
See also the [What happens if I decide to stop using FishEye with Crucible](https://confluence.atlassian.com/display/CRUCIBLE/What+happens+if+I+decide+to+stop+using+FishEye+with+Crucible) page.


Tags: cloud

fisheye-crucible-administration
Connecting to SVN repo using PKI
Asked by Daniel Yau:

Hi there,

I couldn't find an answer in the previous answers. I have just set up fisheye and crucible. As I am setting up the repositories, I am comming across an issue where some repositories require a PKI certificate to access the repo. I am not sure how to set this up, or if this is even possible.

Any help would be apprecated.

Thanks in advance!


Answers:
author: CelsoA
body: Hi Daniel,

You can try the steps found on this document to configure the SSH Keys:

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

Please give it a try and let me know how it goes.

Regards,

Celso Yoshioka


Tags: fisheye-crucible-administration
Can Fisheye work with Perforce read-only replica repository?
Asked by knowshan:

Perforce [replica server](http://www.perforce.com/perforce/doc.current/manuals/p4dist/chapter.replication.html) can be used to reduce load on the server and run long query operations. I was wondering if a read-only replica server can be added to Fisheye as a repository. I have already added it, but I am not sure if it's supported configuration.


Answers:
author: rverschoor
body: FishEye will work with a read-only replica.


Tags: fisheye-crucible-administration

perforce
Does fisheye create a new perforce client workspace?
Asked by knowshan:

Does Fisheye create a new client workspace to mirror depot files? I have added a Perforce repository to my Fisheye test installation, but I don't see Fisheye client using 'p4 clients \| grep -i fisheye' command. I think Fisheye uses native p4 client, so I thought it would create a new client workspace as well.


Answers:
author: rverschoor
body: FishEye doesn't sync depot files to the FishEye server, so it doesn't need a client workspace.  


Tags: fisheye-crucible-administration
Connecting to Git Repo from Fisheye
Asked by Sivaz:

Hi,

While trying to add an existing git repo, the connection to the repo fails if we have special characters in the password (especially @ symbol) when using Authentication style as "Password for http(s)". The returned error code is 401.

The connection works fine if the password has no special characters.

Any help on this behaviour and how it can be resolved?

TIA


Answers:
author: Nick
body: If you are using Stash, the upcoming release of FishEye (3.4) will make the following process a single-click operation once you have an Application Link established between FishEye and Stash.

However, until then - you must:

\* In FishEye

\*\* when adding a new Git repository select: "Generate key/pair for SSH"

\*\* Generate

\*\* Copy the public key shown to your clipboard

\* In Stash

\*\* Go to: Manage account

\*\* SSH Keys

\*\* Add Key

\*\* Paste in the key you just copied and save.

Then go back to FishEye and hit "Test connection".

Now, fisheye will be able to fetch and clone the repository in Stash via SSH and their will be no need for you to embedd any passwords in the URL.


author: SHIVENDRA
body: Stash


author: SHIVENDRA
body: Can you tell me how to do that . I am new to GIT

comments: author: Nick
body: Where is your git repository hosted ?

\* Stash,

\* Bitbucket,

\* Github

\* elsewhere ?


author: Nick
body: It is best practice not to embedd the password in your URL when connecting to a git repo from FishEye.

Is there any reason you can't use the SSH protocol and exchange public keys ?


author: SHIVENDRA
body: Even i am facing same issue . i am abel to connect using my account but not with generic account havin @ in pasword


author: Jeff Thomas
body: Try encoding the @ symbol in your password with %40. So if your password is 'P@ssword', it would become 'P%40ssword'.

That should be a safe way to encode the @ symbol in the URL that's being used.

comments: author: Sivaz
body: Well that didnt help either :( . We got the same error when we tried that way. For now, we have created a dummy user that doesnt have such characters in its password, but the problem is still open.


author: Jeff Thomas
body: I just created a user in our Stash instance with a password of "stash@user" and connected Fisheye to that repository using the password without any issues. Which version of Fisheye are you using and where is the repository that you're trying to connect to hosted?


author: Sivaz
body: Our setup is rather simple. We have GIT installed on the same server as where the Fisheye is installed.

Trying to add a new repo and providing a password with @ symbol still doesnt work. Returns a 401. The username and password are correct. And it works when we give a username and password that doesnt have @. Our Fisheye is at 3.1.5


Tags: fisheye-crucible-administration
How to get Top committers by LOC and Churns of Code using EyeQL query
Asked by Jagadish Nair:

I want to get Top committers by LOC and churns of code in Fisheye using EyeQL query. How to form query for both?


Answers:
author: Jagadish Nair
body: I tried with the following query for a particular author to get LOC:

select revisions from dir "/branches/mybranch" where author=testuser order by date desc return revision,date,author ,path,linesAdded,linesRemoved

I thought sum(linesAdded)-sum(linesRemoved) will give me the LOC of committer 'testuser' in that branch. But the result is not the same with the one mentioned in CodeMetricsReport of Fisheye.

Please let me know what i am doing wrong here.


Tags: eyeql
Fisheye/Crucible git error [closed]
Asked by Darly Senecal-Baptiste:

Hi everyone:

I am faced in front of a weird problem. The problem is that one of my git remote repository is connected but, it could not clone it. Can you please what is happening, here is the error

Unable to clone remote repository: \<Git Repository\>- \[error: couldn't connect to host while accessing http://subtest1:XXXX@\<server\>/git/\<repo\>/info/refs?service=git-upload-pack, fatal: HTTP request failed\] - Cloning into bare repository 'clone'...

Thanks


Answers:
author: Darly Senecal-Baptiste
body: Nevermind.

What happened was that it was a server disconfiguration.

So I closed


author: childnode
body: Same here. the Fecru git user doesn't have {{POST git-upload-pack}} rights. That's caused by some git "servers" that restrict "POST" in general for "read-only" mode which is not correct as you can refer to [git-upload-pack](https://www.kernel.org/pub/software/scm/git/docs/git-upload-pack.html) man page, it's part of the fetch.

If applicable, use SSH connection and authentication.

Else: don't know, give your fecru user "writable" access... still he will not do anything harmful ... I hope


author: Darly Senecal-Baptiste
body: Hi Felipe:

Hope that I deleted the information that I provided you before.

In terms of fisheye, yes I can ping and telnet it. However, I cannot make git clone.


author: Felipe Kraemer
body: Hi Darly,

Can you try to ping and telnet the Git server from the server where FishEye is installed?

What happens if you try to clone http://subtest1:XXXX@\<server\>/git/\<repo\>/info/refs from command line, on the server where FishEye is installed? Does it work?

comments: author: Darly Senecal-Baptiste
body: Felipe: as now, I can ping telnet the to the remote server. However while doing the commit, there is no ping. Let me show you: In command line

git clone http://subtest1:XXXX@\<server\>/git/\<repo\>t/info/refs

Cloning into 'refs'...

error: couldn't connect to host while accessing http://subtest1:XXXX@\<server\>/git/\<repo\>/info/refs/info/refs?service=git-upload-pack

fatal: HTTP request failed.

Also, the repositories were mapped as http.


Tags: fisheye-crucible-administration

git
Crucible: How to create inline JIRA issue with custom field
Asked by Brandon Pal:

When creating a JIRA issue from crucible we would like to be able to see custom JIRA fields. We've tried marking the fields required in JIRA but this did not make the field show in Crucible.

We are currenly seeing the following fields only:

* JIRA Project
* JIRA Issue Type
* Summary
* Description

Any help would be greatly aprechiated.

Thank you,

Brandon


Answers:
author: Nick
body: Hi Brandon,

Only certain types of custom fields are supported. These are listed here: [](https://confluence.atlassian.com/display/CRUCIBLE/Supported+fields+for+inline+issue+creation)<https://confluence.atlassian.com/display/CRUCIBLE/Supported+fields+for+inline+issue+creation>.

Note that only some bundled custom field types are supported, and there is no support for unbundled custom field types (ie. those field types which are provided by a 3rd party plugin).

Cheers,

Nick Pellow.

comments: author: Brandon Pal
body: Support for the select field would be awesome :)


author: Micha? Wieczorek
body: > Support for the select field would be awesome :)

I agree.

Does Atlassian has plan to make such enhancement?


author: Micha? Wieczorek
body: I found:

[](https://jira.atlassian.com/browse/CRUC-6733)<https://jira.atlassian.com/browse/CRUC-6733>


Tags: fisheye-crucible-administration
How to auto-redirect fisheye to ssl?
Asked by Laszlo Kremer:

I have set up SSL access to Fisheye/Crucible, so it is accessible via [](https://fisheye.mydomain.net)<https://fisheye.mydomain.net>and also from [](http://fisheye.mydomain.net)<http://fisheye.mydomain.net>

What I'd like to do is to auto-redirect access from [](http://fisheye.mydomain.net)<http://fisheye.mydomain.net>and [](http://fisheye)<http://fisheye>to [](https://fisheye.mydomain.net)<https://fisheye.mydomain.net>.

I tried configuring Global settings/Server/Web server and add proxy sheme=https, proxy [host=fisheye.mydomain.net](http://host=fisheye.mydomain.net), and site url to [](https://fisheye.mydomain.net,)<https://fisheye.mydomain.net>, but no redirect happens

In case of JIRA/Confluence I was able to do this configuring the server.xml's http connector adding redirectport=443 and ssl connector adding proxyname="confluence.mydomain.net" to it which did the job, but I don't know how to do any similar to fisheye's config.xml.

What shoudl I change in fisheye's settings to redirect [](http://fisheye,)<http://fisheye>, [](https://fisheye,)<https://fisheye>, [](http://fisheye.mydomain.net)<http://fisheye.mydomain.net>to [](https://fisheye.mydomain.net)<https://fisheye.mydomain.net>?

Thanks!


Answers:
author: karthikeayan
body: Hi,

We are trying to setup the same for Crucible 3.6.4, is this feature implemented?


author: gustavo_refosco
body: Hi Laszlo,

I'm sorry but unfortunately is not possible to auto-redirect from http to https in FishEye. This configuration needs to be done directly in your proxy.  

I've found some documents I think that might be helpful.  
In [this document](https://confluence.atlassian.com/display/FISHEYE027/FishEye+SSL+Configuration), please take a look at **David Hergert's** comment and its replies.  

There is also an improvement request at <https://jira.atlassian.com/browse/FE-3920>with some discussion about this feature in its comments. [This comment](https://jira.atlassian.com/browse/FE-3920?focusedCommentId=299655&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-299655) contained in its comments might be useful for you, but please notice this configuration is unsupported, as stated by Tom Davies in the next comment.

comments: author: Brant Messenger
body: Not everyone uses PROXY to direct traffic. What would be the TOMCAT setting in the web.xml or config.xml file to accomplish this task?


Tags: fisheye-crucible-administration
Help needed for EyeQL query
Asked by Jagadish Nair:

I need help on writing a query for getting the top committers -by LOC,top commiters by revision,top commiters by commit and LOC by File extension.

I know we have Code Metrics Report section gives all these . But i want to get all the data specified in Code Metrics Report by querying so that i can use the values in my script using API.

Please let me know how to form the query to get above one.


Answers:
author: Jagadish Nair
body: **Top Committers by revision** can be obtained by using following query:

select revisions from dir "\<path to branch\>" where author in '(\<list of authors\>)' return author,path"

The result may include both directory path and file path for an author .Remove the directory path using scripts and the count of path contains filename will give you the count of revision created by that particular author.

**Top committers by commit can be obtained by**

select revisions from dir "/branches/mybranch" where author in '(xx,yy,zz)' group by changeset return author,revision


Tags: eyeql
Set reviewer based on committer
Asked by David Sykes:

Hello,

we are evaluating a combination of JIRA and FishEye/Cubicle as an issue tracking/code review solution. We almost no experience with either product beyond installation and some very simple initial tests.

What we would like to is the following:

1) automatically create a Crucible review on every check-in

2) set the reviewer based on the committer, i.e. each developer in our team has a person who is assigned to review their code. We would like to set that automatically.

It appears that we can do 1) using the [reviewcreator](https://marketplace.atlassian.com/plugins/com.atlassian.plugins.reviewcreator) plug-in. However, I cannot see how I would go about achieving 2).

Any suggestions?

Thanks in advance,

David Sykes


Answers:
author: gustavo_refosco
body: Hi David,

This can be achieved by the use of [Smart Commits](https://confluence.atlassian.com/display/FISHEYE/Using+smart+commits). By using it, you are able to perform actions in Crucible while commiting through your commit messages.

Please take a look at the document above in order to have further information about what are Smart Commits, how they work and, for your case, you will find very useful information under the topics [**Creating a Review**](https://confluence.atlassian.com/display/FISHEYE/Using+smart+commits#Usingsmartcommits-Creatingareview) and [**Adding Reviewers**](https://confluence.atlassian.com/display/FISHEYE/Using+smart+commits#Usingsmartcommits-Addingreviewers).

comments: author: David Sykes
body: Hi Gustavo, thanks for the response. What we are really after is complete automation. A review should be created and assigned to a reviewer without the developer having to remember to enter anything on their commit message. How could we achieve that?