在Nexus中使用Curl命令上传工件

时间:2020-01-21 05:53:28

标签: shell file curl nexus nexus3

我在Gitbash中使用以下curl命令,我的操作系统是Windows。我正在使用Nexus3。

cust_id <- NULL
 for(i in 1:21){
  if(i<10){ k <- paste("ID_00",i,sep="") } else{
    k <- paste("ID_0",i,sep="") }
  cust_id[i] <- k 
}
date <- sample(seq(as.Date('2020/01/01'), as.Date('2020/01/21'), by="day"), 21)
date <- date[order(date)]
sales <- rbinom(21,1,0.5)
df <- data.frame(cust_id=cust_id,date=date,sales=sales)
df$salesydate <- cumsum(df$sales)

然后

curl -v -L -user raghunath.dhara:password --upload-file /jenkins/workspace/Raghu/SonarQube/target/spring-petclinic-2.0.0.BUILD-SNAPSHOT.jar 
https://uat.alm.com/nexus/content/repositories/NexusTest1_Release/

我遇到错误-

curl -v -user raghunath.dhara:password --upload-file spring-petclinic-2.0.0.BUILD-SNAPSHOT.jar https://uat.alm.com/nexus/repository/Nexus_Test1_Snapshot/

请在这里帮助我如何解决此问题。

预先感谢 无法扩展提交SHA值

0 个答案:

没有答案