Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-18544

Notify users of need to recreate Application link to change Bitbucket Server URL

    • 0
    • 7
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      When the Bitbucket Server URL changes, users need to delete and recreate the Application link. However, there is no notification of this requirement.

      Suggested Solution

      If Bamboo cannot access Bitbucket Server, add a notification to check the Application link URL.

      Workaround

      Please delete and recreate the Application link and re-save the Repository:

      1. Go to Bamboo Administration >> Overview >> Application links
      2. Delete the Bitbucket Server application link from Bamboo
      3. Go to Bitbucket Administration >> Application links
      4. Delete the Bamboo Application link from Bitbucket Server
      5. Recreate the Application link – this can be started from either application and you will be redirected to the other
      6. Re-save the Repository
        If the Repository is still unable to connect, you may need to delete and recreate the Repository

      Note from linked ticket BAM-18273:

      If you have Plan Branches, these will need to be manually updated in the Bamboo database. To do this, please:

      1. Stop Bamboo
      2. Back up your Bamboo database for restore/recovery purposes
      3. Run the following update query, replacing <old-url> and <new-url> as needed:
        update VCS_LOCATION as V
           set xml_definition_data = replace(xml_definition_data,'<old-url>','<new-url>');
        
      4. Start Bamboo

            [BAM-18544] Notify users of need to recreate Application link to change Bitbucket Server URL

            Hi lrochette1,
            Thanks for your comment. We have this Improvement request allowing users to bulk update the URLs for Bitbucket Server (FKA Stash) repositories:

            Since these work off the Application link, we will still need that to be updated. Recreating the Linked Repository can update the main builds, but not Branch Plans.

            I have linked these two tickets. Please also watch BAM-18273 for updates on that Improvement request.

            Thanks!

            Ellie Z (they/them) added a comment - Hi lrochette1 , Thanks for your comment. We have this Improvement request allowing users to bulk update the URLs for Bitbucket Server (FKA Stash) repositories: BAM-18273 - Ability to bulk update Bitbucket Server/Stash repository URLs . Since these work off the Application link, we will still need that to be updated. Recreating the Linked Repository can update the main builds, but not Branch Plans. I have linked these two tickets. Please also watch BAM-18273 for updates on that Improvement request. Thanks!

            Why not simply give the option to the user to edit the information? After all server names and IPs can evolve over the life of a server.

            I'm not a big fan or running DB queries, it's a huge risk for data corruption.

             

            Laurent Rochette added a comment - Why not simply give the option to the user to edit the information? After all server names and IPs can evolve over the life of a server. I'm not a big fan or running DB queries, it's a huge risk for data corruption.  

              Unassigned Unassigned
              ezeidan Ellie Z (they/them)
              Votes:
              9 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: