gpt4 book ai didi

jenkins - gitlabCommitStatus 损坏 : Failed to update Gitlab commit status for project HTTP 400 Bad Request

转载 作者:行者123 更新时间:2023-12-02 12:09:46 28 4
gpt4 key购买 nike

我在 Jenkins 中间歇性地收到以下错误。到目前为止,一切都没有改变。Jenkins 版本 2.150.3 和 Gitlab 插件版本 1.5.11

20:31:01  Failed to update Gitlab commit status for project '10750': HTTP 400 Bad Request

jenkins 服务器日志中的错误:

SEVERE: Failed to update Gitlab commit status for project '10750'
javax.ws.rs.BadRequestException: HTTP 400 Bad Request
at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.handleErrorStatus(ClientInvocation.java:197)
at org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.DefaultEntityExtractorFactory$3.extractEntity(DefaultEn
tityExtractorFactory.java:50)
at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:104)
at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64)
at com.dabsquared.gitlabjenkins.gitlab.api.impl.$Proxy152.changeBuildStatus(Unknown Source)
at com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClient.changeBuildStatus(ResteasyGitLabClient.java:60)
at com.dabsquared.gitlabjenkins.gitlab.api.impl.AutodetectingGitLabClient$7.execute(AutodetectingGitLabClient.java:1
12)
at com.dabsquared.gitlabjenkins.gitlab.api.impl.AutodetectingGitLabClient$7.execute(AutodetectingGitLabClient.java:1
09)
at com.dabsquared.gitlabjenkins.gitlab.api.impl.AutodetectingGitLabClient$GitLabOperation.execute(AutodetectingGitLa
bClient.java:335)
at com.dabsquared.gitlabjenkins.gitlab.api.impl.AutodetectingGitLabClient$GitLabOperation.access$100(AutodetectingGi
tLabClient.java:332)
at com.dabsquared.gitlabjenkins.gitlab.api.impl.AutodetectingGitLabClient.execute(AutodetectingGitLabClient.java:328
)

最佳答案

调查这个问题后我发现了这个:

Commit status create (API): Can no longer use links under NAT with 'target_url'

由于 Gitlab Community Edition 已更新到 11.11.8,我们的组织中出现了错误

Status: 400 Bad Request
Response body: {
"message" : {
"target_url" : [ "is blocked: Host cannot be resolved or invalid" ]
}
}

@devops 您使用的 Gitlab 版本是什么?您可以提供 Jenkins 日志的响应正文吗?

关于jenkins - gitlabCommitStatus 损坏 : Failed to update Gitlab commit status for project HTTP 400 Bad Request,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57594864/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com