DO-47/shared_libs_part2 (#3)

fixed nexus class
This commit is contained in:
Aleksandr Vodyanov
2023-09-08 15:03:06 +00:00
parent 87f0b4658f
commit 5a7ef065d6

View File

@@ -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(