Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-16210

Unable rerun build which triggered before repo renamed

    XMLWordPrintable

    Details

      Description

      Summary

      Rerun previous build after renaming repository will receive the following error during the "Build setup" step.

      #!python
      
      + GIT_LFS_SKIP_SMUDGE=1 git clone --branch="master" --depth 50 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/USER/New_Name.git $BUILD_DIR ; git reset --hard <commit-hash> ; git remote set-url origin git@bitbucket.org:USER/New_Name.git
      Cloning into &#x27;/opt/atlassian/pipelines/agent/build&#x27;...
      remote: Repository USER/Old_Name not found
      fatal: repository &#x27;https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/USER/Old_Name.git/&#x27; not found
      

      ###Steps to Reproduce

      1. Rename repository with previous builds triggered
        • Repository Settings>Repostiory Details>Update Name >Save repository details
      1. Navigate to Pipelines page
      2. Rerun previous build then check Build Setup step

      ###Expected Results
      The new rerun build should clone using the new repository name during Build Setup step

      ###Current Outcome
      The new rerun build will clone using the old repository name during Build Setup step

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            rchia Ronald C.
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: