You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eng/scripts/Invoke-GenerateAndBuildV2.ps1
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -137,9 +137,7 @@ if ($relatedTypeSpecProjectFolder) {
137
137
Invoke-Expression$tspclientCommand
138
138
if ($LASTEXITCODE) {
139
139
# If Process script call fails, then return with failure to CI and don't need to call GeneratePackage
140
-
Write-Error"[ERROR] Failed to generate typespec project:$typespecFolder. Exit code: $LASTEXITCODE."
141
-
Write-Error"[ERROR] Please review the detail errors for potential fixes."
142
-
Write-Error"[ERROR] If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
140
+
Write-Host"[ERROR] Failed to generate typespec project:$typespecFolder. Exit code: $LASTEXITCODE. Please review the detail errors for potential fixes. If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
Write-Error"Project directory doesn't exist. It is a new .NET SDK."
267
-
Write-Error"We will not support onboard a new SDK from swagger. Please contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
265
+
Write-Host"[ERROR] Project directory doesn't exist. It is a new .NET SDK. We will not support onboard a new SDK from swagger. Please contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
268
266
exit1
269
267
}
270
268
@@ -312,8 +310,7 @@ function Update-MgmtPackageFolder() {
Write-Error"Project directory doesn't exist. It is a new .NET SDK."
316
-
Write-Error"We will not support onboard a new service SDK from swagger. Please contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
313
+
Write-Host"[ERROR] Project directory doesn't exist. It is a new .NET SDK. We will not support onboard a new service SDK from swagger. Please contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
317
314
exit1
318
315
}
319
316
@@ -561,7 +558,7 @@ function Invoke-GenerateAndBuildSDK () {
Write-Host"[ERROR] Please review the detail errors for potential fixes."
584
-
Write-Host"[ERROR] If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
578
+
Write-Host"[ERROR] Failed to create sdk project folder.service:$service,package:$package, sdkPath:$sdkRootPath,readme:$readmeFile.exit code: $?. Please review the detail errors for potential fixes. If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
Write-Error"[ERROR] The service $service is not onboarded yet. We will not support onboard a new service from swagger. Please contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
586
+
Write-Host"[ERROR] The service $service is not onboarded yet. We will not support onboard a new service from swagger. Please contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
593
587
exit1
594
588
}
595
589
} else {
@@ -619,18 +613,15 @@ function Invoke-GenerateAndBuildSDK () {
Write-Host"[ERROR] Please review the detail errors for potential fixes."
625
-
Write-Host"[ERROR] If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
616
+
Write-Host"[ERROR] Failed to create sdk project folder.service:$service,namespace:$namespace, sdkPath:$sdkRootPath,readme:$readmeFile,autorestConfigYaml:$autorestConfigYaml.exit code: $?. Please review the detail errors for potential fixes. If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
Write-Error"[ERROR] The service $service is not onboarded yet. We will not support onboard a new service from swagger. Please contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
624
+
Write-Host"[ERROR] The service $service is not onboarded yet. We will not support onboard a new service from swagger. Please contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
634
625
exit1
635
626
}
636
627
} else {
@@ -656,18 +647,15 @@ function Invoke-GenerateAndBuildSDK () {
Write-Host"[ERROR] Please review the detail errors for potential fixes."
662
-
Write-Host"[ERROR] If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
650
+
Write-Host"[ERROR] Failed to create sdk project folder.service:$service,namespace:$folder, sdkPath:$sdkRootPath,readme:$readmeFile. exit code: $?. Please review the detail errors for potential fixes. If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
Write-Error"[ERROR] The service $service is not onboarded yet. We will not support onboard a new service from swagger. Please contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
658
+
Write-Host"[ERROR] The service $service is not onboarded yet. We will not support onboard a new service from swagger. Please contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
Write-Host"[ERROR] Failed to generate sdk for package:$packageName. Exit code: $?."
729
-
Write-Host"[ERROR] Please review the detail errors for potential fixes."
730
-
Write-Host"[ERROR] If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
716
+
Write-Host"[ERROR] Failed to generate sdk for package:$packageName. Exit code: $?. Please review the detail errors for potential fixes. If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
731
717
$result="failed"
732
718
$isGenerateSuccess=$false
733
719
}
@@ -742,9 +728,7 @@ function GeneratePackage()
742
728
Write-Host"Start to build sdk project: $srcPath"
743
729
dotnet build $srcPath/p:RunApiCompat=$false
744
730
if ( !$?) {
745
-
Write-Host"[ERROR] Failed to build the sdk project: $packageName for service: $service. Exit code: $?."
746
-
Write-Host"[ERROR] Please review the detail errors for potential fixes."
747
-
Write-Host"[ERROR] If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
731
+
Write-Host"[ERROR] Failed to build the sdk project: $packageName for service: $service. Exit code: $?. Please review the detail errors for potential fixes. If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
748
732
$result="failed"
749
733
} else {
750
734
# Build the whole solution and generate artifacts if the project build successfully
Write-Host"[ERROR] Failed to build sdk solution:$packageName. Exit code: $?."
757
-
Write-Host"[ERROR] Please review the detail errors for potential fixes."
758
-
Write-Host"[ERROR] If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
740
+
Write-Host"[ERROR] Failed to build sdk solution:$packageName. Exit code: $?. Please review the detail errors for potential fixes. If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
759
741
$result="failed"
760
742
}
761
743
# pack
762
744
Write-Host"Start to pack sdk"
763
745
dotnet pack $srcPath/p:RunApiCompat=$false
764
746
if ( !$? ) {
765
-
Write-Host"[ERROR] Failed to pack the sdk package: $packageName for service: $service. Exit code: $?."
766
-
Write-Host"[ERROR] Please review the detail errors for potential fixes."
767
-
Write-Host"[ERROR] If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
747
+
Write-Host"[ERROR] Failed to pack the sdk package: $packageName for service: $service. Exit code: $?. Please review the detail errors for potential fixes. If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
Write-Host"[ERROR] Artifact folder not found for $artifactsPath."
782
-
Write-Host"[ERROR] Please review the detail errors for potential fixes."
783
-
Write-Host"[ERROR] If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
761
+
Write-Host"[ERROR] Artifact folder not found for $artifactsPath. Please review the detail errors for potential fixes. If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
Write-Host"[ERROR] Failed to generate sdk artifact. Please review the detail errors for potential fixes."
792
-
Write-Host"[ERROR] If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
769
+
Write-Host"[ERROR] Failed to generate sdk artifact. Please review the detail errors for potential fixes. If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
793
770
} else {
794
771
$apiViewArtifact=$artifacts[0]
795
772
}
@@ -808,8 +785,7 @@ function GeneratePackage()
808
785
Write-Host"Start to export api for $service"
809
786
&$sdkRootPath/eng/scripts/Export-API.ps1$service
810
787
if ( !$? ) {
811
-
Write-Host"[ERROR] Failed to export api for sdk. exit code: $?. Please review the detail errors for potential fixes."
812
-
Write-Host"[ERROR] If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
788
+
Write-Host"[ERROR] Failed to export api for sdk. exit code: $?. Please review the detail errors for potential fixes. If the issue persists, contact the DotNet language support channel at $DotNetSupportChannelLink and include this spec pull request."
0 commit comments