【问题标题】:Nexus: Getting connection timed out while uploading file into gettingNexus:上传文件时连接超时
【发布时间】: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

【问题讨论】:

    标签: jenkins-pipeline nexus3


    【解决方案1】:

    在 curl 命令中添加 -u 后,解决了我的问题。

    curl -f -v -u $NEXUS --upload-file customerPortal-* https://localhost:8081/-date +"%d-%m-%Y-%H.%M".tar.gz

    【讨论】:

      猜你喜欢
      • 2020-02-11
      • 1970-01-01
      • 1970-01-01
      • 2015-12-20
      • 2014-04-07
      • 2017-01-30
      • 2016-05-31
      • 2014-08-31
      • 2021-06-01
      相关资源
      最近更新 更多