MS Teams: Office 365 Connector redirects to localhost instead of Jenkins URL

0

I'm trying to setup a simple job in Jenkins with Office 365 Connector plugin. When the job build is finished, I want Jenkins to send the build result to my Microsoft Teams channel.

Here's my Jenkins setup: (I followed this tutorial)

Here's my Jenkins setup

Everything works fine except for the message sent to MS team: it directs View Build to localhost:8080 instead of Jenkins URL.

it directs <code>View Build</code> to localhost:8080 instead of Jenkins URL.

Where can I configure the link to my Jenkins URL?

Hien Le

Posted 2019-10-04T06:35:45.683

Reputation: 3

The O365 connector plugin apparently used something called “Display URL Provider”. Maybe it can be configured somehow. – Daniel B – 2019-10-04T07:10:18.670

You need to set the Jenkins URL in Manage Jenkins -> Configure System -> Jenkins Location -> Jenkins URL. – jayhendren – 2019-10-04T22:27:40.380

@jayhendren thanks, that works. I'll add it as accepted answer. – Hien Le – 2019-10-08T03:31:14.763

Answers

0

Converting my comment to an answer: You need to set the Jenkins URL in Manage Jenkins -> Configure System -> Jenkins Location -> Jenkins URL. See also https://stackoverflow.com/questions/9089566/jenkins-website-root-path

jayhendren

Posted 2019-10-04T06:35:45.683

Reputation: 378