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
Write-Host"Version info is not available for package $PackageName, because version '$(pkgInfo.Version)' is invalid. Please check if the version follows Azure SDK package versioning guidelines."
101
+
exit1
102
+
}
103
+
104
+
Write-Host"Version: $($version)"
105
+
Write-Host"SDK Type: $($pkgInfo.SdkType)"
106
+
107
+
# Run create review step only if build is triggered from master branch or if version is GA.
108
+
# This is to avoid invalidating review status by a build triggered from feature branch
109
+
if ( ($SourceBranch-eq$DefaultBranch) -or (-not$version.IsPrerelease))
110
+
{
111
+
Write-Host"Submitting API Review for package $($pkg)"
# Return error code if status code is 201 for new data plane package
126
+
if ($pkgInfo.SdkType-eq"client"-and$pkgInfo.IsNewSdk)
116
127
{
117
-
Write-Host"Package version $($version) is GA and automatic API Review is not yet approved for package $($PackageName)."
118
-
Write-Host"Build and release is not allowed for GA package without API review approval."
119
-
Write-Host"You will need to queue another build to proceed further after API review is approved"
120
-
Write-Host"You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval."
128
+
if ($respCode-eq'201')
129
+
{
130
+
Write-Host"Package version $($version) is GA and automatic API Review is not yet approved for package $($PackageName)."
131
+
Write-Host"Build and release is not allowed for GA package without API review approval."
132
+
Write-Host"You will need to queue another build to proceed further after API review is approved"
133
+
Write-Host"You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval."
134
+
}
135
+
else
136
+
{
137
+
Write-Host"Failed to create API Review for package $($PackageName). Please reach out to Azure SDK engineering systems on teams channel and share this build details."
138
+
}
139
+
exit1
121
140
}
122
141
else
123
142
{
124
-
Write-Host"Failed to create API Review for package $($PackageName). Please reach out to Azure SDK engineering systems on teams channel and share this build details."
143
+
Write-Host"API review is not approved for package $($PackageName), however it is not required for this package type so it can still be released without API review approval."
125
144
}
126
-
exit1
127
-
}
128
-
else
129
-
{
130
-
Write-Host"API review is not approved for package $($PackageName). Management and track1 package can be released without API review approval."
131
-
}
145
+
}
146
+
}
147
+
else
148
+
{
149
+
Write-Host"Build is triggered from $($SourceBranch) with prerelease version. Skipping API review status check."
132
150
}
133
151
}
134
152
}
153
+
else
154
+
{
155
+
Write-Host"No package is found in artifact path to submit review request"
0 commit comments