How to bulk change the password of the Fisheye/Crucible repositories

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

This page covers the steps required to change a significant amount of repository passwords in your Fisheye/Crucible instance. In particular, it provides a faster alternative to performing the update without changing the passwords one by one through the user interface.

Solution

  1. Stop Fisheye/Crucible.
  2. Locate the config.xml file in the FISHEYE_INST directory.
  3. Create a backup copy of the config.xml file.
  4. Edit config.xml and identify the password requiring an update.
    1. This file contains the list of the repositories currently configured in the application. The details of each one of them is described by a repository tag and its children nodes.

    2. The password is stored, in clear text, in the password attribute of the password-auth tag. For example:

      Git repository in the config.xml file
      <repository name="Rep1" description="Repository1" store-diff="true" enabled="true">
         <git location="https://username@bitbucket.org/repository_path/repository_name.git" renames="none" path="">
            <password-auth password="your_password_here"/>
         </git>
         ...
      </repository> 
  5. Find and replace the old password with the new password.

  6. Restart Fisheye/Crucible.

  7. Verify that the modified repository/repositories are still Running by checking the State column in the Administration > Repositories page.

Last modified on Jul 31, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.