上传项目图片:“Jenkins Artifactory Plug-in”
  1. Jenkins Artifactory插件
  2. hap - 1051

Artifactory Release Staging在更新到2.15后停止工作

    XML 可打印的

    细节

    • 类型: 错误
    • 状态: Resolved
      A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">解决
    • 解决方法: 完成
    • 影响版本/ s: 2.15.0
    • 修复版本/ s: 2.15.1
    • 组件/ s: 没有一个
    • 标签:
      没有一个

      描述

      Artifactory Release Staging在更新到2.15版本后停止工作

      [RELEASE]释放构建触发> git配置——get remote.origin.url # timeout=10 [RELEASE]正在检查中如果标签“multitenancy-context-1.4.1”的存在。> git tag -l multitenant -context-1.4.1 # timeout=10 > git config——get remote.origin.url # timeout=10 [RELEASE]创建标记“multitenancy-context-1.4.1_test”与消息是一个测试标签”> git标签-a -f -m是一个测试标签multitenant -context-1.4.1_test # timeout=10 > git配置——get remote.origin.url # timeout=10 [RELEASE]尝试推送标签multitenant -context-1.4.1_test与——dry-run > git配置——get remote.origin.url # timeout=10 [RELEASE]检查如果标签“multitenancy-context-1.4.1_test”的存在。> git tag -l multitenant -context-1.4.1_test # timeout=10 > git config——get remote.origin.url # timeout=10 [RELEASE]删除本地标签:multitenant -context-1.4.1_test > git tag -d multitenant -context-1.4.1_test # timeout=10 [RELEASE] ERROR: Failed尝试推送干运行:检索git凭据失败

      似乎插件试图做一些测试演练,并在这个阶段卡住了。我看到这样的选项已经在2.15中引入了

      git diff artiff -2.14.0 artifactory-2.15.0 GitCoordinator.java diff——git a/src/main/java/org/jfrog/hudson/release/scm/git/GitCoordinator.java b/src/main/java/org/jfrog/hudson/release/scm/git/GitCoordinator.java index cc24f33..56cd95b 100644——a/src/main/java/org/jfrog/hudson/release/scm/git/ gitcoordinator . java++ + b/src/main/java/org/jfrog/hudson/release/scm/git/ gitcoordinator .java @@ 19,7 +19,6 @@org.jfrog.hudson.release.scm.git;进口hudson.model.AbstractBuild;进口hudson.model.BuildListener;进口hudson.model.Result;-进口org.apache.commons.lang.StringUtils;进口org.jfrog.hudson.release.ReleaseAction;进口org.jfrog.hudson.release.ReleaseRepository;进口org.jfrog.hudson.release.scm.AbstractScmCoordinator;@@ -59,6 +58,25 @@公共GitCoordinator扩展AbstractScmCoordinator {checkoutBranch = scmManager.getBranchNameWithoutRemote(gitBranchName);} +公共空白pushDryRun ()抛出异常{+如果(releaseAction.isCreateVcsTag()) {+如果(scmManager.isTagExists(scmManager.getRemoteConfig(releaseAction.getTargetRemoteName()), releaseAction.getTagUrl())) {+异常(字符串.format (带名称的标签' % s '已经存在”releaseAction.getTagUrl ()));+} +} ++字符串testTagName = releaseAction.getTagUrl() +“_t”;+试一试{+ scmManager.testPush(scmManager.getRemoteConfig(releaseAction.getTargetRemoteName()), testTagName);+}(例外e) {+异常(字符串.format (“失败尝试推送试运行:%s", e. getmessage ()), e);+}最后{+如果(scmManager.isTagExists(scmManager.getRemoteConfig(releaseAction.getTargetRemoteName()), testTagName)) {+ scmManager.deleteLocalTag(testTagName);+} +} +公共空白beforeReleaseVersionChange ()抛出IOException, InterruptedException {如果(releaseAction.isCreateReleaseBranch ()) {//创建一个分支释放并启动它

        附件

          活动

            受让人:
            barbBar Belity [X](不活跃)
            记者:
            彼得亚雷Piotr Chmielnik(不活跃)
            投票:
            0 为这个问题投票
            观察人士:
            4 开始关注这个问题

              日期

              创建:
              更新:
              解决: