Skip to content

Commit 1f81bc4

Browse files
committed
Jenkins: order and and new versions [STUD-75300]
1 parent 94663b8 commit 1f81bc4

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

src/main/java/com/uipath/uipathpackage/UiPathInstallPlatform.java

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
import javax.annotation.Nonnull;
2424
import java.io.PrintStream;
2525
import java.util.Map;
26+
import java.util.ArrayList;
27+
import java.util.Comparator;
28+
import java.util.List;
2629

2730
public class UiPathInstallPlatform extends Builder implements SimpleBuildStep {
2831

@@ -184,11 +187,17 @@ public ListBoxModel doFillCliVersionItems(@AncestorInPath Item item) {
184187

185188
ListBoxModel result= new ListBoxModel();
186189

187-
for (Map.Entry<String, UiPathCliConfiguration.Configuration> v: cliConfiguration.getConfiguration().entrySet()) {
188-
result.add(v.getValue().getDisplayName(), v.getKey());
189-
}
190+
List<Map.Entry<String, UiPathCliConfiguration.Configuration>> entries =
191+
new ArrayList<>(cliConfiguration.getConfiguration().entrySet());
192+
entries.sort(Comparator.comparing((Map.Entry<String, UiPathCliConfiguration.Configuration> e)
193+
-> e.getValue().getName())
194+
.thenComparing(e -> e.getValue().getVersion().getComplete(), Comparator.reverseOrder()));
190195

191-
return result;
196+
for (Map.Entry<String, UiPathCliConfiguration.Configuration> v : entries) {
197+
result.add(new ListBoxModel.Option(v.getValue().getDisplayName(), v.getKey()));
198+
}
199+
200+
return result;
192201
}
193202

194203
public ListBoxModel doFillTraceLevelItems(@AncestorInPath Item item) {
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
UiPath.CLI.Version=24.10.9050.17872
1+
UiPath.CLI.Version=25.4.9364.27216
22
UiPath.DefaultTenant=default
33
UiPath.CLI.Name=UiPath.CLI.Windows
4-
UiPath.CLI.InstallPlatform.Configuration=[{"displayName":"UiPath Windows CLI (ver.21.10.8319.10920)","name":"UiPath.CLI.Windows","version":{"major":"21","minor":"10","patch":"10920","complete":"21.10.8319.10920"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the legacy windows CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/21.10.8319.10920\/UiPath.CLI.21.10.8319.10920.nupkg"},\
5-
{"displayName":"UiPath CrossPlatform CLI (ver.22.10.8418.30339)","name":"UiPath.CLI","version":{"major":"22","minor":"10","patch":"30339","complete":"22.10.8418.30339"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/22.10.8418.30339\/UiPath.CLI.22.10.8418.30339.nupkg"},\
4+
UiPath.CLI.InstallPlatform.Configuration=[{"displayName":"UiPath CrossPlatform CLI (ver.22.10.8418.30339)","name":"UiPath.CLI","version":{"major":"22","minor":"10","patch":"30339","complete":"22.10.8418.30339"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/22.10.8418.30339\/UiPath.CLI.22.10.8418.30339.nupkg"},\
65
{"displayName":"UiPath Windows CLI (ver.22.10.8418.30339)","name":"UiPath.CLI.Windows","version":{"major":"22","minor":"10","patch":"30339","complete":"22.10.8418.30339"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the windows CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/22.10.8418.30339\/UiPath.CLI.Windows.22.10.8418.30339.nupkg"},\
76
{"displayName":"UiPath CrossPlatform CLI (ver.22.10.8432.18709)","name":"UiPath.CLI","version":{"major":"22","minor":"10","patch":"18709","complete":"22.10.8432.18709"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/22.10.8432.18709\/UiPath.CLI.22.10.8432.18709.nupkg"},\
87
{"displayName":"UiPath Windows CLI (ver.22.10.8432.18709)","name":"UiPath.CLI.Windows","version":{"major":"22","minor":"10","patch":"18709","complete":"22.10.8432.18709"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the windows CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/22.10.8432.18709\/UiPath.CLI.Windows.22.10.8432.18709.nupkg"},\
98
{"displayName":"UiPath CrossPlatform CLI (ver.22.10.8438.32859)","name":"UiPath.CLI","version":{"major":"22","minor":"10","patch":"32859","complete":"22.10.8438.32859"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/22.10.8438.32859\/UiPath.CLI.22.10.8438.32859.nupkg"},\
109
{"displayName":"UiPath Windows CLI (ver.22.10.8438.32859)","name":"UiPath.CLI.Windows","version":{"major":"22","minor":"10","patch":"32859","complete":"22.10.8438.32859"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the windows CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/22.10.8438.32859\/UiPath.CLI.Windows.22.10.8438.32859.nupkg"},\
10+
{"displayName":"UiPath CrossPlatform CLI (ver.22.10.8467.18097)","name":"UiPath.CLI","version":{"major":"22","minor":"10","patch":"18097","complete":"22.10.8467.18097"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/22.10.8467.18097\/UiPath.CLI.22.10.8467.18097.nupkg"},\
11+
{"displayName":"UiPath Windows CLI (ver.22.10.8467.18097)","name":"UiPath.CLI.Windows","version":{"major":"22","minor":"10","patch":"18097","complete":"22.10.8467.18097"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the windows CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/22.10.8467.18097\/UiPath.CLI.Windows.22.10.8467.18097.nupkg"},\
1112
{"displayName":"UiPath CrossPlatform CLI (ver.23.2.8467.25277)","name":"UiPath.CLI","version":{"major":"23","minor":"2","patch":"25277","complete":"23.2.8467.25277"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/23.2.8467.25277\/UiPath.CLI.23.2.8467.25277.nupkg"},\
1213
{"displayName":"UiPath Windows CLI (ver.23.2.8467.25277)","name":"UiPath.CLI.Windows","version":{"major":"23","minor":"2","patch":"25277","complete":"23.2.8467.25277"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the windows CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/23.2.8467.25277\/UiPath.CLI.Windows.23.2.8467.25277.nupkg"},\
1314
{"displayName":"UiPath CrossPlatform CLI (ver.23.6.8581.19168)","name":"UiPath.CLI","version":{"major":"23","minor":"6","patch":"19168","complete":"23.6.8581.19168"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/23.6.8581.19168\/UiPath.CLI.23.6.8581.19168.nupkg"},\
@@ -16,6 +17,14 @@ UiPath.CLI.InstallPlatform.Configuration=[{"displayName":"UiPath Windows CLI (ve
1617
{"displayName":"UiPath Windows CLI (ver.23.10.8753.32995)","name":"UiPath.CLI.Windows","version":{"major":"23","minor":"10","patch":"32995","complete":"23.10.8753.32995"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the windows CLI version.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/23.10.8753.32995\/UiPath.CLI.Windows.23.10.8753.32995.nupkg"},\
1718
{"displayName":"UiPath CrossPlatform CLI (ver.23.10.8894.39673)","name":"UiPath.CLI","version":{"major":"23","minor":"10","patch":"39673","complete":"23.10.8894.39673"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/23.10.8894.39673\/UiPath.CLI.23.10.8894.39673.nupkg"},\
1819
{"displayName":"UiPath Windows CLI (ver.23.10.8894.39673)","name":"UiPath.CLI.Windows","version":{"major":"23","minor":"10","patch":"39673","complete":"23.10.8894.39673"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the windows CLI version.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/23.10.8894.39673\/UiPath.CLI.Windows.23.10.8894.39673.nupkg"},\
20+
{"displayName":"UiPath CrossPlatform CLI (ver.23.10.9076.19285)","name":"UiPath.CLI","version":{"major":"23","minor":"10","patch":"19285","complete":"23.10.9076.19285"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/23.10.9076.19285\/UiPath.CLI.23.10.9076.19285.nupkg"},\
21+
{"displayName":"UiPath Windows CLI (ver.23.10.9076.19285)","name":"UiPath.CLI.Windows","version":{"major":"23","minor":"10","patch":"19285","complete":"23.10.9076.19285"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the windows CLI version.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/23.10.9076.19285\/UiPath.CLI.Windows.23.10.9076.19285.nupkg"},\
22+
{"displayName":"UiPath CrossPlatform CLI (ver.23.10.9351.15515)","name":"UiPath.CLI","version":{"major":"23","minor":"10","patch":"15515","complete":"23.10.9351.15515"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/23.10.9351.15515\/UiPath.CLI.23.10.9351.15515.nupkg"},\
23+
{"displayName":"UiPath Windows CLI (ver.23.10.9351.15515)","name":"UiPath.CLI.Windows","version":{"major":"23","minor":"10","patch":"15515","complete":"23.10.9351.15515"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the windows CLI version.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/23.10.9351.15515\/UiPath.CLI.Windows.23.10.9351.15515.nupkg"},\
1924
{"displayName":"UiPath CrossPlatform CLI (ver.24.10.9050.17872)","name":"UiPath.CLI","version":{"major":"24","minor":"10","patch":"17872","complete":"24.10.9050.17872"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/24.10.9050.17872\/UiPath.CLI.24.10.9050.17872.nupkg"},\
20-
{"displayName":"UiPath Windows CLI (ver.24.10.9050.17872)","name":"UiPath.CLI.Windows","version":{"major":"24","minor":"10","patch":"17872","complete":"24.10.9050.17872"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the default pre-packaged windows CLI version.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/24.10.9050.17872\/UiPath.CLI.Windows.24.10.9050.17872.nupkg"}]
21-
UiPath.CLI.InstallPlatform.Configuration.Count=17
25+
{"displayName":"UiPath Windows CLI (ver.24.10.9050.17872)","name":"UiPath.CLI.Windows","version":{"major":"24","minor":"10","patch":"17872","complete":"24.10.9050.17872"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the default pre-packaged windows CLI version.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/24.10.9050.17872\/UiPath.CLI.Windows.24.10.9050.17872.nupkg"},\
26+
{"displayName":"UiPath CrossPlatform CLI (ver.24.12.9166.24491)","name":"UiPath.CLI","version":{"major":"24","minor":"12","patch":"24491","complete":"24.12.9166.24491"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/24.12.9166.24491\/UiPath.CLI.24.12.9166.24491.nupkg"},\
27+
{"displayName":"UiPath Windows CLI (ver.24.12.9166.24491)","name":"UiPath.CLI.Windows","version":{"major":"24","minor":"12","patch":"24491","complete":"24.12.9166.24491"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the default pre-packaged windows CLI version.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/24.12.9166.24491\/UiPath.CLI.Windows.24.12.9166.24491.nupkg"},\
28+
{"displayName":"UiPath CrossPlatform CLI (ver.25.4.9364.27216)","name":"UiPath.CLI","version":{"major":"25","minor":"4","patch":"27216","complete":"25.4.9364.27216"},"windowsCompatible":false,"linuxCompatible":true,"description":"This is the crossplatform CLI.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI\/25.4.9364.27216\/UiPath.CLI.25.4.9364.27216.nupkg"},\
29+
{"displayName":"UiPath Windows CLI (ver.25.4.9364.27216)","name":"UiPath.CLI.Windows","version":{"major":"25","minor":"4","patch":"27216","complete":"25.4.9364.27216"},"windowsCompatible":true,"linuxCompatible":false,"description":"This is the default pre-packaged windows CLI version.","feedUrl":"https:\/\/uipath.pkgs.visualstudio.com\/Public.Feeds\/_packaging\/UiPath-Official\/nuget\/v3\/flat2\/UiPath.CLI.Windows\/25.4.9364.27216\/UiPath.CLI.Windows.25.4.9364.27216.nupkg"}]
30+
UiPath.CLI.InstallPlatform.Configuration.Count=26

0 commit comments

Comments
 (0)