From 5a7ef065d689a2cc12c72b36840d160db0362cd0 Mon Sep 17 00:00:00 2001 From: Aleksandr Vodyanov Date: Fri, 8 Sep 2023 15:03:06 +0000 Subject: [PATCH] DO-47/shared_libs_part2 (#3) fixed nexus class --- src/tech/avroid/api/Nexus.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tech/avroid/api/Nexus.groovy b/src/tech/avroid/api/Nexus.groovy index 90be7f1..54892ee 100644 --- a/src/tech/avroid/api/Nexus.groovy +++ b/src/tech/avroid/api/Nexus.groovy @@ -25,7 +25,7 @@ class Nexus implements Serializable { @param String type type of Repository */ public String upload(Map args = [:], String type = "raw") { - String artifactName = args.artifactName ?: args.artifact.split('/').last() + String artifactName = args.artifactName ?: args.artifactPath.split('/').last() String artifactUrl = args.artifactUrl ?: "${host}/repository/${args.repository}/${args.path}/${artifactName}" script.httpRequest(