Skip to content

Commit

Permalink
Add Windows 2025 support for built-in images (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Dec 19, 2024
1 parent a0e5bf0 commit 3684c51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1737,6 +1737,7 @@ public ListBoxModel doFillBuiltInImageItems() {
model.add(Constants.UBUNTU_2404_LTS);
model.add(Constants.UBUNTU_2204_LTS);
model.add(Constants.UBUNTU_2004_LTS);
model.add(Constants.WINDOWS_SERVER_2025);

Check warning on line 1740 in src/main/java/com/microsoft/azure/vmagent/AzureVMAgentTemplate.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 1740 is not covered by tests
model.add(Constants.WINDOWS_SERVER_2022);
model.add(Constants.WINDOWS_SERVER_2019);
model.add(Constants.WINDOWS_SERVER_2016);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,8 @@ private static Map<String, Map<String, String>> getDefaultImageProperties() {
imageProperties("MicrosoftWindowsServer", "WindowsServer", "2019-Datacenter", "2019-Datacenter-with-Containers", Constants.OS_TYPE_WINDOWS));
imageProperties.put(Constants.WINDOWS_SERVER_2022,
imageProperties("MicrosoftWindowsServer", "WindowsServer", "2022-datacenter-azure-edition-core", "2022-datacenter-azure-edition-core", Constants.OS_TYPE_WINDOWS));
imageProperties.put(Constants.WINDOWS_SERVER_2025,
imageProperties("MicrosoftWindowsServer", "WindowsServer", "2025-datacenter-azure-edition-core", "2025-datacenter-azure-edition-core", Constants.OS_TYPE_WINDOWS));
imageProperties.put(Constants.UBUNTU_2004_LTS,
imageProperties("canonical", "0001-com-ubuntu-server-focal", "20_04-lts-gen2", "20_04-lts-gen2", Constants.OS_TYPE_LINUX));
imageProperties.put(Constants.UBUNTU_2204_LTS,
Expand Down Expand Up @@ -1686,13 +1688,15 @@ private static Map<String, Map<String, String>> getPreInstalledToolsScript() {
tools.put(Constants.WINDOWS_SERVER_2016, new HashMap<>());
tools.put(Constants.WINDOWS_SERVER_2019, new HashMap<>());
tools.put(Constants.WINDOWS_SERVER_2022, new HashMap<>());
tools.put(Constants.WINDOWS_SERVER_2025, new HashMap<>());
tools.put(Constants.UBUNTU_2004_LTS, new HashMap<>());
tools.put(Constants.UBUNTU_2204_LTS, new HashMap<>());
tools.put(Constants.UBUNTU_2404_LTS, new HashMap<>());
try {
windows(Constants.WINDOWS_SERVER_2016, tools);
windows(Constants.WINDOWS_SERVER_2019, tools);
windows(Constants.WINDOWS_SERVER_2022, tools);
windows(Constants.WINDOWS_SERVER_2025, tools);

Check warning on line 1699 in src/main/java/com/microsoft/azure/vmagent/AzureVMManagementServiceDelegate.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 1656-1699 are not covered by tests
ubuntu(Constants.UBUNTU_2004_LTS, tools);
ubuntu(Constants.UBUNTU_2204_LTS, tools);
ubuntu(Constants.UBUNTU_2404_LTS, tools);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public final class Constants {
/**
* Built In Image.
*/
public static final String WINDOWS_SERVER_2025 = "Windows Server 2025";
public static final String WINDOWS_SERVER_2022 = "Windows Server 2022";
public static final String WINDOWS_SERVER_2019 = "Windows Server 2019";
public static final String WINDOWS_SERVER_2016 = "Windows Server 2016";
Expand Down

0 comments on commit 3684c51

Please sign in to comment.