蓝色海洋URL在jenkins in github plut请求构建器插件发送的提交状态
我想更改GitHub拉的请求中状态报告附加到状态报告的“详细信息”链接,以指向Blue Ocean View,而不是常规的Jenkins作业URL。
我尝试使用Env.JOB_DISPLAY_URL,但是它无法正确解决,因此未发送状态更新。
GitHub pull request #161 of commit a4724087b434ff4813271d9364e715ba6af47013, no merge conflicts.
Setting status of a4724087b434ff4813271d9364e715ba6af47013 to PENDING with url ${env.JOB_DISPLAY_URL} and message: 'Pipeline started'
Using context: Jenkins/CI
Could not update commit status of the Pull Request on GitHub.
org.kohsuke.github.HttpException: {"message":"Validation Failed","errors":[{"resource":"Status","code":"custom","field":"target_url","message":"target_url must use http(s) scheme"}],"documentation_url":"https://docs.github.com/rest/reference/repos#create-a-commit-status"}
我尝试使用双引号标记,没有。两者都不起作用。有办法这样做吗?
I want to change the "Details" link attached to status reports in a github pull request to point to Blue Ocean view instead of regular jenkins job url.
I tried using env.JOB_DISPLAY_URL, but it's not being resolved properly and as a result status update is not sent.
GitHub pull request #161 of commit a4724087b434ff4813271d9364e715ba6af47013, no merge conflicts.
Setting status of a4724087b434ff4813271d9364e715ba6af47013 to PENDING with url ${env.JOB_DISPLAY_URL} and message: 'Pipeline started'
Using context: Jenkins/CI
Could not update commit status of the Pull Request on GitHub.
org.kohsuke.github.HttpException: {"message":"Validation Failed","errors":[{"resource":"Status","code":"custom","field":"target_url","message":"target_url must use http(s) scheme"}],"documentation_url":"https://docs.github.com/rest/reference/repos#create-a-commit-status"}
I tried with double quotation marks and without. both don't work. Is there a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在没有
env。
的情况下设置字符串,此方法在詹金斯(Jenkins)的“配置系统”页面中引用环境变量时似乎有效,因此希望它也可以在这里工作。
Try setting the string without the
env.
This method seems to work when referencing environment variables in the Configure System page of Jenkins, so hopefully it works here too.