Summary
Repository does not get created and linked while creating a plan in Bamboo if validation fails initially.
Steps to Reproduce
- Create Plan
- Fill Plan Name and Plan Key
- Link repository to new build plan >> Link new repository >> Bitbucket Server / Stash
- Fill all details except Display name
- Click Configure Plan (Save)
- The save will fail due to missing display name and refresh the UI
- Repository host will now be None
- Toggle the Repository host back to Link new repository
- Fill out all details, including Display Name
- Click Configure Plan (Save)
- Validation passes this time and you are taken to the configure job screen >> Save and continue
- Check Repository tab -> It's empty.
Expected Results
- Repository is successfully saved and linked after a validation errors are corrected and plan creation continues.
- The UI at Step 8 should remain on Link new repository, not revert back to None.
Actual Results
- Repository does not get created or linked to the build plan even after fixing the validation errors.
- UI reverts back to None at Step 8 rather than remaining on Link new repository and displaying the validation error.
Workaround
Re-create the repository at Plan Configuration >> Repositories after the plan has been created.