[FOLIO-3172] Amend Jenkins Sonar config to use main git branch rather than master branch Created: 25/May/21 Updated: 03/Jun/21 |
|
| Status: | Open |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Bug | Priority: | TBD |
| Reporter: | Julian Ladisch | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Issue links: |
|
||||||||||||||||||||
| Sprint: | |||||||||||||||||||||
| Development Team: | FOLIO DevOps | ||||||||||||||||||||
| Description |
|
However, newly created repositories that never had a "master" branch require all scripts to access the "main" branch. Example:
git fetch --no-tags \
https://github.com/folio-org/ui-remote-storage.git \
+refs/heads/master:refs/remotes/origin/master
fatal: couldn't find remote ref refs/heads/master
Task: Replace "master" to "main" in scripts. Example:
git fetch --no-tags \
https://github.com/folio-org/ui-remote-storage.git \
+refs/heads/main:refs/remotes/origin/main
Note: This tasks hard-codes "main". This is a simple search-and-replace task. In contrast
|
| Comments |
| Comment by David Crossley [ 26/May/21 ] |
|
The tickets
There are many situations of configuration and scripts in all of FOLIO infrastructure which explicitly refer to "master". Some will not be a simple replace. At
|