Skip to content

Commit a659b7d

Browse files
authored
Add 1903 build based on 1809 (#239)
1 parent 28bf6c4 commit a659b7d

File tree

11 files changed

+27
-24
lines changed

11 files changed

+27
-24
lines changed

createAllManifests.ps1

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@ $createScriptPath = Join-Path -Path $PSScriptRoot -ChildPath 'createManifest.ps1
1717

1818

1919
$latestStableUbuntu = "ubuntu-bionic"
20-
$latestStableWsc1709 = "windowsservercore-1709"
2120
$latestStableWscLtsc = "windowsservercore-latest"
2221
$latestStableWsc1803 = "windowsservercore-1803"
2322
$latestStableWsc1809 = "windowsservercore-1809"
24-
$latestStableNano1709 = "nanoserver-1709"
23+
$latestStableWsc1903 = "windowsservercore-1903"
2524
$latestStableNano1803 = "nanoserver-1803"
2625
$latestStableNano1809 = "nanoserver-1809"
26+
$latestStableNano1903 = "nanoserver-1903"
2727

2828
$latestPreviewUbuntu = "preview-ubuntu-bionic"
29-
$latestPreviewWsc1709 = "preview-windowsservercore-1709"
3029
$latestPreviewWscLtsc = "preview-windowsservercore-latest"
3130
$latestPreviewWsc1803 = "preview-windowsservercore-1803"
3231
$latestPreviewWsc1809 = "preview-windowsservercore-1809"
32+
$latestPreviewWsc1903 = "preview-windowsservercore-1809"
3333

3434
switch ($Channel)
3535
{
3636
'preview' {
37-
&$createScriptPath -ContainerRegistry $Registry -taglist $latestPreviewUbuntu, $latestPreviewWsc1709, $latestPreviewWscLtsc, $latestPreviewWsc1803, $latestPreviewWsc1809 -ManifestTag 'preview'
37+
&$createScriptPath -ContainerRegistry $Registry -taglist $latestPreviewUbuntu, $latestPreviewWsc1903, $latestPreviewWscLtsc, $latestPreviewWsc1803, $latestPreviewWsc1809 -ManifestTag 'preview'
3838
}
3939

4040
'stable' {
41-
&$createScriptPath -ContainerRegistry $Registry -taglist $latestStableUbuntu, $latestStableWsc1709, $latestStableWscLtsc, $latestStableWsc1803, $latestStableWsc1809 -ManifestTag 'latest'
42-
&$createScriptPath -ContainerRegistry $Registry -taglist $latestStableNano1709, $latestStableNano1803, $latestStableNano1809 -ManifestTag 'nanoserver'
41+
&$createScriptPath -ContainerRegistry $Registry -taglist $latestStableUbuntu, $latestStableWsc1903, $latestStableWscLtsc, $latestStableWsc1803, $latestStableWsc1809 -ManifestTag 'latest'
42+
&$createScriptPath -ContainerRegistry $Registry -taglist $latestStableNano1903, $latestStableNano1803, $latestStableNano1809 -ManifestTag 'nanoserver'
4343
}
4444
}

release/preview/nanoserver/meta.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"PackageFormat": "PowerShell-${PS_VERSION}-win-x64.zip",
44
"osVersion": "Nano Server, version ${fromTag}",
55
"shortTags": [
6-
{"Tag": "1709"},
76
{"Tag": "1803"}
87
],
98
"tagTemplates": [

release/preview/nanoserver1809/getLatestTag.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ $repoRoot = Join-Path -path (Join-Path -Path $parent -ChildPath '..') -ChildPath
1717
$modulePath = Join-Path -Path $repoRoot -ChildPath 'tools\getDockerTags'
1818
Import-Module $modulePath
1919

20-
Get-DockerTags -ShortTags $shortTags -Image "mcr.microsoft.com/windows/nanoserver" -FullTagFilter '\d{4}_KB\d{7}(_amd64)?$' -Mcr
20+
Get-DockerTags -ShortTags $shortTags -Image "mcr.microsoft.com/windows/nanoserver" -FullTagFilter '\d{4}[-_]KB\d{7}([\-_]amd64)?$' -Mcr
21+

release/preview/nanoserver1809/meta.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"PackageFormat": "PowerShell-${PS_VERSION}-win-x64.zip",
44
"osVersion": "Nano Server, version ${fromTag}",
55
"shortTags": [
6-
{"Tag": "1809"}
6+
{"Tag": "1809"},
7+
{"Tag": "1903"}
78
],
89
"tagTemplates": [
910
"#psversion#-nanoserver-#tag#",

release/preview/windowsservercore/getLatestTag.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ $modulePath = Join-Path -Path $repoRoot -ChildPath 'tools\getDockerTags'
1414
Import-Module $modulePath -Force
1515

1616
# The versions of nanoserver we care about
17-
$shortTags = @('1709','1803','1809')
17+
$shortTags = @('1803','1809','1903')
1818

19-
Get-DockerTags -ShortTags $shortTags -Image "mcr.microsoft.com/windows/servercore" -FullTagFilter '\d{4}_KB\d{7}' -Mcr
19+
Get-DockerTags -ShortTags $shortTags -Image "mcr.microsoft.com/windows/servercore" -FullTagFilter '\d{4}[-_]KB\d{7}' -Mcr

release/stable/nanoserver/meta.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"PackageFormat": "PowerShell-${PS_VERSION}-win-x64.zip",
44
"osVersion": "Nano Server, version ${fromTag}",
55
"shortTags": [
6-
{"Tag": "1709"},
76
{"Tag": "1803"}
87
],
98
"tagTemplates": [

release/stable/nanoserver1809/getLatestTag.ps1

+2-7
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,5 @@ $repoRoot = Join-Path -path (Join-Path -Path $parent -ChildPath '..') -ChildPath
1717
$modulePath = Join-Path -Path $repoRoot -ChildPath 'tools\getDockerTags'
1818
Import-Module $modulePath
1919

20-
if($CI.IsPresent)
21-
{
22-
Get-DockerTags -ShortTags $shortTags -Image "mcr.microsoft.com/windows/nanoserver" -FullTagFilter '^1809$' -Mcr
23-
}
24-
else {
25-
Get-DockerTags -ShortTags $shortTags -Image "mcr.microsoft.com/windows/nanoserver" -FullTagFilter '\d{4}_KB\d{7}(_amd64)?$' -Mcr
26-
}
20+
Get-DockerTags -ShortTags $shortTags -Image "mcr.microsoft.com/windows/nanoserver" -FullTagFilter '\d{4}[-_]KB\d{7}([\-_]amd64)?$' -Mcr
21+

release/stable/nanoserver1809/meta.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"PackageFormat": "PowerShell-${PS_VERSION}-win-x64.zip",
44
"osVersion": "Nano Server, version ${fromTag}",
55
"shortTags": [
6-
{"Tag": "1809"}
6+
{"Tag": "1809"},
7+
{"Tag": "1903"}
78
],
89
"tagTemplates": [
910
"#psversion#-nanoserver-#tag#",

release/stable/windowsservercore/getLatestTag.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ $modulePath = Join-Path -Path $repoRoot -ChildPath 'tools\getDockerTags'
1414
Import-Module $modulePath -Force
1515

1616
# The versions of nanoserver we care about
17-
$shortTags = @('1709','1803','1809')
17+
$shortTags = @('1803','1809','1903')
1818

19-
Get-DockerTags -ShortTags $shortTags -Image "mcr.microsoft.com/windows/servercore" -FullTagFilter '\d{4}_KB\d{7}' -Mcr
19+
Get-DockerTags -ShortTags $shortTags -Image "mcr.microsoft.com/windows/servercore" -FullTagFilter '\d{4}[-_]KB\d{7}' -Mcr

tools/getDockerTags/getDockerTags.psm1

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
function Get-DockerTagsList
77
{
88
param(
9+
[Parameter(Mandatory)]
910
[string] $Url,
11+
[Parameter(Mandatory)]
1012
[ValidateSet('name', 'tags')]
1113
[string] $PropertyName
1214
)
@@ -26,6 +28,10 @@ function Get-DockerTagsList
2628
$results.$propertyName | ForEach-Object {Write-Output $_}
2729
$nextUrl = $null
2830
}
31+
else
32+
{
33+
$nextUrl = $null
34+
}
2935
}
3036
}
3137
catch
@@ -149,5 +155,6 @@ function Get-DockerTags
149155
}
150156

151157
Export-ModuleMember -Function @(
152-
'Get-DockerTags'
158+
'Get-DockerTags',
159+
'Get-DockerTagsList'
153160
)

vsts-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
imagename: nanoserver1809
145145
vmImage: windows-2019
146146
preview: false
147-
ciParameter: '-CI'
147+
ciParameter: '-CI -TagFilter 1809'
148148
continueonerror: false
149149

150150
# Use the TagFilter to filter to 1809 because the docker instance inside the agent only supports 1809

0 commit comments

Comments
 (0)