Skip to content

Commit 2981a22

Browse files
author
Hovsep
committed
Merge pull request Azure#1984 from hovsepm/ModuleFix
[#115980855] Fixed publish job
2 parents f81965f + 2b06ae7 commit 2981a22

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<Scope Condition=" $(Scope) == '' " >all</Scope>
4646
</PropertyGroup>
4747
<ItemGroup>
48-
<CmdletSolutionsToBuild Include=".\src\ResourceManager\**\*.sln;.\src\ServiceManagement\ServiceManagement.sln;.\src\Storage\Storage.sln"
48+
<CmdletSolutionsToBuild Include=".\src\Storage\Storage.sln;.\src\ResourceManager\**\*.sln;.\src\ServiceManagement\ServiceManagement.sln"
4949
Exclude=".\src\ResourceManager\Intune\*.sln"
5050
Condition=" '$(Scope)' == 'all' "/>
5151
<CmdletSolutionsToBuild Include=".\src\ResourceManager\$(Scope)\*.sln"

setup/azurecmdfiles.wxi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,6 +3029,9 @@
30293029
<Component Id="cmpF7ADD37722F45985B5323202F35958F2" Guid="*">
30303030
<File Id="fil0FA91D9C31AF07DCD03BFB842FE2B77E" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Compute\Microsoft.WindowsAzure.Commands.ServiceManagement.PlatformImageRepository.dll" />
30313031
</Component>
3032+
<Component Id="cmp9D64A1111722F25BC100121E73BE039E" Guid="*">
3033+
<File Id="filD9BAD7BE2D8E9E1E7DDA9BAED346E4B7" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Compute\Microsoft.WindowsAzure.Commands.ServiceManagement.PlatformImageRepository.dll-Help.xml" />
3034+
</Component>
30323035
<Component Id="cmpE52498FB0431A601DD9FDE6F082DF1D4" Guid="*">
30333036
<File Id="fil1C2DE4A7227BA117EC30E177CDE33EBA" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Compute\Microsoft.WindowsAzure.Commands.ServiceManagement.Preview.dll" />
30343037
</Component>
@@ -3092,6 +3095,9 @@
30923095
<Component Id="cmp7F9F978DBE7D6715FA75FFB3BE40806E" Guid="*">
30933096
<File Id="filD8D9BC2D74630E2A6A9438D81BEBFE40" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Compute\Newtonsoft.Json.dll" />
30943097
</Component>
3098+
<Component Id="cmp4AA539549D58FD2D5DD3C404556F3DBB" Guid="*">
3099+
<File Id="fil4D8DA0FB6E8B4E47BD5A37E758BFC156" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Compute\PIR.psd1" />
3100+
</Component>
30953101
<Component Id="cmp348131C92750A7166DCA75757E409378" Guid="*">
30963102
<File Id="fil4C89A8A3AA200315DD08D7FD6DA12286" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Compute\ServiceManagementStartup.ps1" />
30973103
</Component>
@@ -5836,6 +5842,7 @@
58365842
<ComponentRef Id="cmp70D1D6B3A151E5DA4EBA09BA3F9FAD5F" />
58375843
<ComponentRef Id="cmpAC5C284B13829839B2AD819221131DB0" />
58385844
<ComponentRef Id="cmpF7ADD37722F45985B5323202F35958F2" />
5845+
<ComponentRef Id="cmp9D64A1111722F25BC100121E73BE039E" />
58395846
<ComponentRef Id="cmpE52498FB0431A601DD9FDE6F082DF1D4" />
58405847
<ComponentRef Id="cmpFD1814D8F2D73854649A52268A2C2A83" />
58415848
<ComponentRef Id="cmp9DF26170AD3B0860AAFF291D39DD9FC5" />
@@ -5857,6 +5864,7 @@
58575864
<ComponentRef Id="cmpBFA5705441B7DF4264EFE1632A830DF1" />
58585865
<ComponentRef Id="cmpA7662EDC9DDCCFD0290DDB9350660A6B" />
58595866
<ComponentRef Id="cmp7F9F978DBE7D6715FA75FFB3BE40806E" />
5867+
<ComponentRef Id="cmp4AA539549D58FD2D5DD3C404556F3DBB" />
58605868
<ComponentRef Id="cmp348131C92750A7166DCA75757E409378" />
58615869
<ComponentRef Id="cmp289352966E5E4647DF24D7FFCEA4200F" />
58625870
<ComponentRef Id="cmpA497DCDAF4262858EF7BF8F3E4A03F30" />

tools/PublishModules.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,20 @@ if (($scope -eq 'All') -or $publishToLocal ) {
6262
Write-Host "Published profile module"
6363
}
6464

65+
if (($scope -eq 'All') -or ($scope -eq 'AzureStorage')) {
66+
$modulePath = "$packageFolder\$buildConfig\Storage\Azure.Storage"
67+
# Publish AzureStorage module
68+
Write-Host "Publishing AzureStorage module from $modulePath"
69+
Publish-Module -Path $modulePath -NuGetApiKey $apiKey -Repository $repoName -Tags ("Azure")
70+
}
71+
6572
if (($scope -eq 'All') -or ($scope -eq 'ServiceManagement')) {
6673
$modulePath = "$packageFolder\$buildConfig\ServiceManagement\Azure"
6774
# Publish Azure module
6875
Write-Host "Publishing ServiceManagement(aka Azure) module from $modulePath"
6976
Publish-Module -Path $modulePath -NuGetApiKey $apiKey -Repository $repoName -Tags ("Azure")
7077
}
7178

72-
if (($scope -eq 'All') -or ($scope -eq 'AzureStorage')) {
73-
$modulePath = "$packageFolder\$buildConfig\ServiceManagement\Azure\Azure.Storage"
74-
# Publish AzureStorage module
75-
Write-Host "Publishing AzureStorage module from $modulePath"
76-
Publish-Module -Path $modulePath -NuGetApiKey $apiKey -Repository $repoName -Tags ("Azure")
77-
}
78-
7979
$resourceManagerModules = Get-ChildItem -Path $resourceManagerRootFolder -Directory
8080
if ($scope -eq 'All') {
8181
foreach ($module in $resourceManagerModules) {

0 commit comments

Comments
 (0)