Blue Ocean URL 处于提交状态,由 Jenkins 中的 GitHub Pull Request Builder 插件发送
Blue Ocean URL in commit status sent by GitHub Pull Request Builder plugin in Jenkins
我想更改 github 拉取请求中附加到状态报告的“详细信息”link 以指向 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"}
我试过带双引号和不带双引号。两者都不起作用。有办法吗?
尝试设置没有 env.
的字符串
${JOB_DISPLAY_URL}
在 Jenkins 的配置系统页面中引用环境变量时,此方法似乎有效,因此希望它在这里也有效。
我想更改 github 拉取请求中附加到状态报告的“详细信息”link 以指向 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"}
我试过带双引号和不带双引号。两者都不起作用。有办法吗?
尝试设置没有 env.
${JOB_DISPLAY_URL}
在 Jenkins 的配置系统页面中引用环境变量时,此方法似乎有效,因此希望它在这里也有效。