Details
-
Bug
-
Resolution: Fixed
-
High
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 '/opt/atlassian/pipelines/agent/build'... remote: Repository USER/Old_Name not found fatal: repository 'https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/USER/Old_Name.git/' not found
###Steps to Reproduce
- Rename repository with previous builds triggered
-
- Repository Settings>Repostiory Details>Update Name >Save repository details
- Navigate to Pipelines page
- 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