Expected and Results
verifyStatus should be able to wait till the publication completes.
I got a case when the publication was successfully uploaded, however verifyStatus failed with (HTTP status='401'): {"error":{"message":"Authentication Failed"}} after ~5 minutes.
Frankly speaking, it is extremely strange to see "authentication failed" after a successful publication with the same token.
Related environment and versions
See https://github.com/Netcracker/qubership-profiler-agent/actions/runs/15278059208/job/42969528070#step:10:3369
> Task :publishAggregationToCentralPortal
Nmcp: deployment bundle 'a010aa98-024a-4103-bbf0-ea2ed5ff70f9' uploaded to 'https://central.sonatype.com/'.
Nmcp: verifying deployment status...
Caused by: java.lang.IllegalStateException: Cannot verify deployment a010aa98-024a-4103-bbf0-ea2ed5ff70f9 status
(HTTP status='401'): {"error":{"message":"Authentication Failed"}}
at nmcp.internal.task.PublishReleaseKt.verifyStatus(publishRelease.kt:161)
at nmcp.internal.task.PublishReleaseKt.publishRelease(publishRelease.kt:87)
at nmcp.internal.task.PublishReleaseEntryPoint$Companion.run(PublishReleaseEntryPoint.kt:28)
at nmcp.internal.task.PublishReleaseWorkAction.execute(PublishReleaseTask.kt:185)
at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
The way out might be to retry 401 for verifyStatus assuming the token is workable as the upload succeeded.
Expected and Results
verifyStatusshould be able to wait till the publication completes.I got a case when the publication was successfully uploaded, however
verifyStatusfailed with(HTTP status='401'): {"error":{"message":"Authentication Failed"}}after ~5 minutes.Frankly speaking, it is extremely strange to see "authentication failed" after a successful publication with the same token.
Related environment and versions
See https://github.com/Netcracker/qubership-profiler-agent/actions/runs/15278059208/job/42969528070#step:10:3369
The way out might be to retry 401 for
verifyStatusassuming the token is workable as the upload succeeded.