-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
CloudBees Jenkins Enterprise 2.235.5.1-rolling
Office 365 Connector 4.13.1
We had a CloudBees infrastructure with a CJOC and 2 Jenkins masters.
We had to restart one the the Jenkins masters to apply a change in the .git config file.
Since the restart was made the notifications sent to Teams channels are failing. In the console output of the build appears the following message:
[Office365connector] Failed to post data to webhook -
https://asgcom.webhook.office.com/webhookb2/a883dad2-2a7c-45fc-9d68-87380d39b453@d13b9cfa-1c6e-4361-8229-5552564fae3d/JenkinsCI/2b874c46fcb54d49a24173b67f154a8e/63458c40-63ae-4272-bdf0-f6ee09da27dd
javax.net.ssl.SSLException: hostname in certificate didn't match: <asgcom.webhook.office.com> != </.internal.outlook.com/.outlook.com/outlook.com/office365.com/.office365.com/.outlook.office365.com/.office.com/outlook.office.com/substrate.office.com/attachment.outlook.live.net/attachment.outlook.office.net/attachment.outlook.officeppe.net/attachments.office.net/.clo.footprintdns.com/.nrb.footprintdns.com/ccs.login.microsoftonline.com/ccs-sdf.login.microsoftonline.com/substrate-sdf.office.com/attachments-sdf.office.net/.live.com/mail.services.live.com/hotmail.com/*.hotmail.com/outlook.com>
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:339)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:275)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:258)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:167)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:714)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:394)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:178)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:404)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:330)
at jenkins.plugins.office365connector.HttpWorker.run(HttpWorker.java:83)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
The other master send the notifications without any problem. This Jenkins master has the .git config change applied.