-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
> 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working