How synchronise directory in Fisheye programmatically and receive the information about completion?


I use Fisheye and Crucible 4.5.1 and I am writing plugin for them.

I want to synchronize the directory forcibly. I use the following method for that in my plugin:, SynchronisationMode.INCREMENTAL, true); 

And this works, nessesary directory is synchronised. But I use "true" for the third parameter here. According to that means that "the synchronise will happen asynchronously".

I do not need to synchronise in background. In other word I need wait, while directory synchronisation is complete and only then do me next activities.

The problem is that when I use "false" instead of "true" the "synchroniseCache" method not work. I recive SocketTimeoutException, directory is not synchronized.

I use "DirectoryManager.synchroniseCache" with "false" in my Jira and Confluence plugins. It works here, directories are synchronised.

Is there some bug in Fisheye\Crucible or do I do something wrong?

How can I synchronize the directory to receive the information that synchronisation is complete?

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

426 views 6 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot