【问题标题】:NuKeeper with Azure Pipelines and Bitbucket Server throws an error on pull request creation使用 Azure Pipelines 和 Bitbucket Server 的 NuKeeper 在创建拉取请求时引发错误
【发布时间】:2021-06-19 09:52:19
【问题描述】:

在 TFS (Azure Pipelines) 中,我有一个任务来运行 nukeeper repo 命令: nukeeper repo "https://bitbucket.xxx.com/scm/myproject/myrepo.git" <token> --api "https://bitbucket.xxx.com/scm/myproject/myrepo.git" --consolidate --source https://tfs/tfs/XXX/_packaging/main/nuget/v3/index.json --verbosity detailed

命令成功启动,repo 被克隆,检测到更新,一个新的分支创建了提交并推送的更改,但它似乎只在本地。

当 NuKeeper 尝试创建新的拉取请求时,会引发异常。

在日志中:

OpenPullRequest: Error NotFound 2021-03-22T16:41:31.1464196Z Response NotFound is not success, body: 2021-03-22T16:41:31.1465586Z Updates failed NuKeeperException : OpenPullRequest: Error NotFound 2021-03-22T16:41:31.1466638Z {"errors":[{"context":null,"message":"Repository \"xxx\" of project with key \"xxx\" has no branch \"nukeeper-update-3-packages-9F8F13D133529FB443D130FFB8330A78\"","exceptionName":"com.atlassian.bitbucket.commit.NoSuchCommitException"}]}

本地有一个临时文件夹,名称对应克隆的 repo 和分支

【问题讨论】:

    标签: tfs azure-devops nuget updates bitbucket-server


    【解决方案1】:
    1. 如果您使用 TFS(本地 Azure DevOps 服务器),您可以登录构建代理计算机,然后在本地运行命令,看看您是否会重现该问题。

    2. 错误提示"Repository \"xxx\" of project with key \"xxx\" has no branch \"nukeeper-update-3-packages-9F8F13D133529FB443D130FFB8330A78\",可以查看服务器上是否存在分支。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-19
      • 1970-01-01
      • 2019-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多