【发布时间】:2020-05-23 11:37:35
【问题描述】:
使用 jenkins 管道脚本将 .tgz 文件上传到 nexus 时出错。
在我的管道脚本中使用的阶段
stage('上传 tar 文件到 nexus') {
脚步 {
嘘"""
curl -f -v $NEXUS --upload-file partnerPortal-* http://localhost:8080/repository/partnerFrontEnd-test/partnerPortal-date +"%d-%m-%Y-%H.%M".tgz
"""
}
}
注意:我在同一台服务器上有 jenkins 和 nexus。我的主机文件有 127.0.0.1 localhost
【问题讨论】: