【问题标题】:RTC Post build delivery gets statusCode=400 error on JenkinsRTC Post 构建交付在 Jenkins 上出现 statusCode=400 错误
【发布时间】:2019-07-19 07:33:29
【问题描述】:

构建定义设置为在构建成功时进行构建后交付。构建引擎是 Jenkins,我从 Jenkins 的 console output 收到以下错误(构建成功时。构建失败时不会触发构建后交付):

10:15:06 FATAL: POST request to https://example.com/jazz/resource/virtual/build/result/_GI3DokOEe6v_nfZ1GCQ/participant returned statusCode=400
10:15:06 Setting the build status to FAILURE.
10:15:06 Post build deliver failed for build result Queued in target for engine Jenkins engine 2(_GI3DokOEe6v_nfZ1GCQ).
10:15:06 Build step 'RTC Post Build Deliver ' changed build result to FAILURE
10:15:06 Recording fingerprints
10:15:06 Finished: FAILURE

并且更改未交付。

RTC Eclipse 版本号:6.0.4

Jenkins 版本:2.150.1

Jenkins Team Concert 插件:1.2.0.5

按固定时间间隔安排构建。

感谢任何帮助。

以下错误信息可能更能说明问题:

{"errorMessage":"CRJAZ0024I An error occurred retrieving from the location "virtual/build/result/_ekxKsDmDEem6v_nfZn1GCQ/participant". See the following exception message: Resource not found: build/result/_ekxKsDmDEem6v_nfZn1GCQ/participant ","errorClass":"com.ibm.team.repository.common.ItemNotFoundException","errorCode":404}

注意:我没有将它发布到https://example.com/jazz,出于安全目的,实际链接已替换为它。

编辑: 看起来原因是源流中的某些工作项未得到某些团队负责人的批准。错误信息:

    Name: Deliver
    ID: com.ibm.team.scm.server.deliver
    Severity: ERROR
        Name: Require Work Item Approval
        ID: com.ibm.team.process.deliver.server.deltaRequireWorkItemApproval
        Severity: ERROR
            Summary: Requirements for work item approvals not met
            Description: Incomplete approvals: Work item 29721 is missing 1 approval of type "Approval" (Team Lead role)
            Severity: ERROR
        Name: Require Work Items and Comments
        ID: com.ibm.team.process.deliver.server.deltaRequireWorkItem
        Severity: OK 

获得团队领导批准只会导致弹出另一个错误消息并抱怨另一个工作项需要批准。这很烦人,绝对批准工作项目不应该是这里的解决方案。我怎样才能绕过它?

【问题讨论】:

    标签: jenkins rational-team-concert


    【解决方案1】:

    运行的是什么类型的构建脚本?蚂蚁?马文?常春藤?

    【讨论】:

    • 这是一个python脚本。我们正在构建一个 C++ 项目。构建成功。
    【解决方案2】:

    如果您确实不需要工作项批准,您可以在项目配置中删除该依赖项。这可能在 Web 客户端中的前提条件和后续操作下,然后在“保存工作项”下。寻找“必需的批准”。这意味着它需要工作项批准才能保存处于特定状态的工作项。这可能设置为适用于“所有人”。这包括构建代理 ID。更改此设置以应用于其他角色,而不是不包含构建代理 ID 的所有人。

    【讨论】:

      猜你喜欢
      • 2014-02-26
      • 2020-09-04
      • 2023-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多