jenkinsci / jenkinsci/git-parameter-plugin

[JENKINS-56944] Sort tags in git-parameter plugin

Open
#276 0 comments 0 reactions 0 assignees View on GitHub
component:git-parameter-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
131
Forks
134
Avg merge
21h 5m
Merged PRs (30d)
1

Description

Sort the tags for the git parameter plugin.

For projects with many tags the current UI makes finding the right tag very difficult.

Currently, no matter what sort mode I select, of the available five sort modes: None, Assending Smart, Descending Smart, Assenting or Descending I get the same semi-ordered list of tags:

0.1.3-7

0.1.3-8
0.0.0-0
0.1.3-8_Test_Build
0.1.3-7_Test_Build

Interestingly, if I add a tag similar to 0.1.3-8_Test_Build, it will sink to the bottom, and if I add one similar to 0.1.3-8, it will rise to the top - but both top and bottom sections are not sorted.

It does not seem like the order is related to the tag creation order, but just in case it's interesting, the tags were added to the (Bitbucket) repository in the following order, to commits in the repository that progress naturally in time:



  1. 0.0.0-0

  2. 0.1.3-7_Test_Build

  3. 0.1.3-7

  4. 0.1.3-8_Test_Build

  5. 0.1.3-8

 

---
Originally reported by fsteff, imported from: Sort tags in git-parameter plugin


  • status: Open
  • priority: Minor
  • component(s): git-parameter-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251216-182730

Raw content of original issue

Sort the tags for the git parameter plugin.
For projects with many tags the current UI makes finding the right tag very difficult.

Currently, no matter what sort mode I select, of the available five sort modes: None, Assending Smart, Descending Smart, Assenting or Descending I get the same semi-ordered list of tags:



0.1.3-7

0.1.3-8
0.0.0-0
0.1.3-8_Test_Build
0.1.3-7_Test_Build


Interestingly, if I add a tag similar to 0.1.3-8_Test_Build, it will sink to the bottom, and if I add one similar to 0.1.3-8, it will rise to the top - but both top and bottom sections are not sorted.

It does not seem like the order is related to the tag creation order, but just in case it's interesting, the tags were added to the (Bitbucket) repository in the following order, to commits in the repository that progress naturally in time:



  1. 0.0.0-0

  2. 0.1.3-7_Test_Build

  3. 0.1.3-7

  4. 0.1.3-8_Test_Build

  5. 0.1.3-8

 

environment

```
Jenkins 2.170

Git Parameter Plug-in 0.9.10
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.