Skip to content

Commit

Permalink
[GH-7] no need to order the multipart as the mavenKey is leading
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed May 26, 2019
1 parent a6c7ac7 commit 490e0b0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cli/upload.go
Expand Up @@ -5,6 +5,8 @@ import (
"os"
"path/filepath"
"strings"

mp "github.com/030/go-curl/utils"
)

var foldersWithPOM strings.Builder
Expand Down Expand Up @@ -81,12 +83,12 @@ func (n Nexus3) Upload() error {

multipartString := strings.TrimSuffix(s.String(), ",")
fmt.Println(multipartString)
// url := n.URL + "/service/rest/v1/components?repository=" + n.Repository
// u := mp.Upload{URL: url, Username: n.User, Password: n.Pass}
// err2 := u.MultipartUpload(multipartString)
// if err2 != nil {
// return err
// }
url := n.URL + "/service/rest/v1/components?repository=" + n.Repository
u := mp.Upload{URL: url, Username: n.User, Password: n.Pass}
err2 := u.MultipartUpload(multipartString)
if err2 != nil {
return err2
}
}
return nil
}

0 comments on commit 490e0b0

Please sign in to comment.