lørdag 14. april 2018 01.04.29 UTC+2 skrev vivek følgende: > > > What are branches sorted by? It is certainly not Branch, Completed or any >> of the other columns. It seems none of the visible columns are used for >> sort criteria. >> > > We show paginated list of branches. Branches are sorted thru different > criteria, more or less in this order: > > 1. Default branch (e.g. master on GitHub) > 2. Favorites ordered by last run time > 3. Branches ordered by run finish time > 4. Branches ordered by run start time > > The code that does it is here: > https://github.com/jenkinsci/blueocean-plugin/blob/b640430ffc4931860d97088f9c69084e2b5abf0c/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/BranchContainerImpl.java#L182 > > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fblob%2Fb640430ffc4931860d97088f9c69084e2b5abf0c%2Fblueocean-pipeline-api-impl%2Fsrc%2Fmain%2Fjava%2Fio%2Fjenkins%2Fblueocean%2Frest%2Fimpl%2Fpipeline%2FBranchContainerImpl.java%23L182&sa=D&sntz=1&usg=AFQjCNEMh6_Nch0y48FO3yabsQp-ZDfVKA> > > Perhaps add a custom filter/ordering to Branches. For us on Branches we want to see on top are master and our release branches, while the rest could be alphabetic and/or by favorites. Perhaps have it configurable what constitutes as default branch or branches. Ordering by run time is pointless, as it has no value. Perhaps it has value for some, therefore a custom ordering would help all the others.
> I had to click "Show more" 7 times to find the master branch (all the way >> down to the bottom). Perhaps list the branches set by the user as favorites. >> Our developers want the master branch and our release branches (could be >> achived by setting a filter to sort by) to the first branches they see >> information about. >> > > If you have favorited brach it should appear as long as it is actively > built. If you identify different behavior than what is expected given the > ordering code, open a JIRA. > >> >> The master branch was all the way down to the bottom, and it is the most built branch. My favorite branches was everywhere in between. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8190da98-a1bf-46a6-945b-65361a8106f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.