Setup:
-
Click “start/schedule” a build.
-
Try to remember what branch you are building. Is it develop? Or something like “feature/jn-APP-549”.
-
Type it incorrectly.
-
Observe the build fail (cant checkout a branch that doesnt exist).
Desired behavior:
-
Start typing. Field autopopulates or expands list of possible branches that match filter. For example, I start typing “jn-” and it prompts me with “feature/jn-APP-549”, “fix/jn-ST-660”, etc.
-
Only allow correctly named builds to start. If the branch doesn’t exist, dont let the build start. Basically, force the user to enter a valid branch.