我试着配置jenkins slack插件来发送通知给松弛通道。但它不起作用。我也跟着下面的指令:如何配置jenkins slack插件?
1. Get a Slack account: https://slack.com/
2. Configure the Jenkins integration: https://my.slack.com/services/new/jenkins-ci
3. Install this plugin on your Jenkins server.
4. Configure it in your Jenkins job (and optionally as global configuration) and add it as a Post-build action.
我在农闲的应用安装jenkins
之后有一个关于如何配置詹金斯指令。但指令中提到的配置字段与我的jenkins配置稍有不同。
下面是从指令的配置截图:
我詹金斯服务器的配置看起来像如下:
我怎么能填在Base URL
我组态?我试图填写我的jenkins url
,但它不起作用。测试连接失败。
我得到以下错误詹金斯系统日志:
Slack post may have failed. Response: <html><head><meta http-equiv='refresh' content='1;url=/login?from=%2FOPRc9G4zB2JX289VOnTvfeey'/><script>window.location.replace('/login?from=%2FOPRc9G4zB2JX289VOnTvfeey');</script></head><body style='background-color:white; color:white;'>
Authentication required
<!--
You are authenticated as: anonymous
Groups that you are in:
Permission you need to have (but didn't): hudson.model.Hudson.Read
... which is implied by: hudson.security.Permission.GenericRead
... which is implied by: hudson.model.Hudson.Administer
-->
我试图离开基地网址为空,但仍然无法正常工作
您是否注意到此链接中的基础服务器URL“https://support.cloudbees.com/hc/en-us/articles/226460047-How-do-I-configure-Slack-Plugin-”。 你有没有在Jenkins中配置它并尝试运行测试? –
我试图在链接中设置我的詹金斯网址,但它不起作用。我试图运行'test'连接,但总是失败的结果。 –
我已经将基本网址留为空白,并尝试过测试连接,它获得了成功,你试过了吗? –