summaryrefslogtreecommitdiff
path: root/scalalib/src/publish/SonatypeHttpApi.scala
diff options
context:
space:
mode:
Diffstat (limited to 'scalalib/src/publish/SonatypeHttpApi.scala')
-rw-r--r--scalalib/src/publish/SonatypeHttpApi.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/scalalib/src/publish/SonatypeHttpApi.scala b/scalalib/src/publish/SonatypeHttpApi.scala
index 6a4d4d4f..4b9d239e 100644
--- a/scalalib/src/publish/SonatypeHttpApi.scala
+++ b/scalalib/src/publish/SonatypeHttpApi.scala
@@ -60,11 +60,11 @@ class SonatypeHttpApi(
// https://oss.sonatype.org/nexus-staging-plugin/default/docs/path__staging_profiles_-profileIdKey-_start.html
def createStagingRepo(profileUri: String, groupId: String): String = {
- val response = http.post(
+ val response = withRetry(http.post(
s"${profileUri}/start",
headers = commonHeaders,
data = s"""{"data": {"description": "fresh staging profile for ${groupId}"}}"""
- )
+ ))
if (!response.is2xx) {
throw new Exception(s"$uri/staging/profiles returned ${response.statusCode}")