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."
219
+
Write-Host"Version info is not available for package $($packageInfo.ArtifactName), because version '$($packageInfo.Version)' is invalid. Please check if the version follows Azure SDK package versioning guidelines."
Write-Host"Release date is not set for current version in change log file for package. Ignoring API review approval status since package is not yet ready for release."
249
262
}
250
263
elseif ($version.IsPrerelease)
251
264
{
252
265
# Check if package name is approved. Preview version cannot be released without package name approval
253
-
if (!$pkgNameStatus.IsApproved)
266
+
if (!$pkgNameStatus.IsApproved)
254
267
{
255
-
if (IsApiviewStatusCheckRequired $pkgInfo)
268
+
if (IsApiviewStatusCheckRequired $packageInfo)
256
269
{
257
270
Write-Error$($pkgNameStatus.Details)
258
271
return1
259
272
}
260
273
else{
261
-
Write-Host"Package name 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."
262
-
}
274
+
Write-Host"Package name is not approved for package $($packageInfo.ArtifactName), however it is not required for this package type so it can still be released without API review approval."
275
+
}
263
276
}
264
277
# Ignore API review status for prerelease version
265
278
Write-Host"Package version is not GA. Ignoring API view approval status"
266
-
}
279
+
}
267
280
else
268
281
{
269
282
# Return error code if status code is 201 for new data plane package
270
283
# Temporarily enable API review for spring SDK types. Ideally this should be done be using 'IsReviewRequired' method in language side
271
284
# to override default check of SDK type client
272
-
if (IsApiviewStatusCheckRequired $pkgInfo)
285
+
if (IsApiviewStatusCheckRequired $packageInfo)
273
286
{
274
287
if (!$apiStatus.IsApproved)
275
288
{
276
-
Write-Host"Package version $($version) is GA and automatic API Review is not yet approved for package $($packageName)."
289
+
Write-Host"Package version $($version) is GA and automatic API Review is not yet approved for package $($packageInfo.ArtifactName)."
277
290
Write-Host"Build and release is not allowed for GA package without API review approval."
278
291
Write-Host"You will need to queue another build to proceed further after API review is approved"
279
292
Write-Host"You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval."
280
293
}
281
294
return1
282
295
}
283
296
else {
284
-
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."
297
+
Write-Host"API review is not approved for package $($packageInfo.ArtifactName), however it is not required for this package type so it can still be released without API review approval."
285
298
}
286
299
}
287
300
}
@@ -296,42 +309,84 @@ function ProcessPackage($packageName)
296
309
return0
297
310
}
298
311
299
-
$responses=@{}
300
-
# Check if package config file is present. This file has package version, SDK type etc info.
301
-
if (-not$ConfigFileDir)
302
-
{
312
+
Write-Host"Artifact path: $($ArtifactPath)"
313
+
Write-Host"Source branch: $($SourceBranch)"
314
+
Write-Host"Package Info Files: $($PackageInfoFiles)"
315
+
Write-Host"Artifact List: $($ArtifactList)"
316
+
Write-Host"Package Name: $($PackageName)"
317
+
318
+
# Parameter priority and backward compatibility logic
0 commit comments