Skip to content

Commit

Permalink
[GH-7] removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed May 26, 2019
1 parent 490e0b0 commit a7fa083
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions cli/upload.go
Expand Up @@ -20,30 +20,6 @@ func (n Nexus3) detectFoldersWithPOM(path string, f os.FileInfo, err error) erro

// Upload posts an artifact as a multipart to a specific nexus3 repository
func (n Nexus3) Upload() error {
// path := filepath.Join("testFiles", "file1")
// url := n.URL + "/service/rest/v1/components?repository=" + n.Repository
// u := mp.Upload{URL: url, Username: n.User, Password: n.Pass}
// err := u.MultipartUpload("maven2.asset1=@" + path + ".pom,maven2.asset1.extension=pom,maven2.asset2=@" + path + ".jar,maven2.asset2.extension=jar")
// if err != nil {
// return err
// }

// files, err := ioutil.ReadDir(n.Repository)
// if err != nil {
// return err
// }

// for _, f := range files {
// fmt.Println(f)
// }

// err := filepath.Walk(n.Repository, n.multipart)
// if err != nil {
// return err
// }

// fmt.Println(strings.TrimSuffix(s.String(), ","))

err2 := filepath.Walk(n.Repository, n.detectFoldersWithPOM)
if err2 != nil {
return err2
Expand Down

0 comments on commit a7fa083

Please sign in to comment.