【发布时间】: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