jenkinsci / hipchat-plugin

HipChat notification plugin for Jenkins
https://plugins.jenkins.io/hipchat/
54 stars 85 forks source link

$URL variable not working in template #84

Closed jukkasi closed 8 years ago

jukkasi commented 8 years ago

I'm not able to get any link to be generated using $URL in template. The link href is always empty. I have set Manage Jenkins -> Configure System -> Jenkins URL properly.

I'm running Jenkins ver. 1.658 and Jenkins HipChat plugin 1.0.0.

aldaris commented 8 years ago

What job type are you using?

aldaris commented 8 years ago

Can you test with logging level on FINE and/or with text (i.e. not HTML) format messages? The exact message should be printed to the logs then.

jukkasi commented 8 years ago

Job is a freestyle project configured by using Job DSL, with following plugins

jukkasi commented 8 years ago

Using plain text I get nulljob/Deployment/job/Dev/job/E2ETest/8/ for $URL

aldaris commented 8 years ago

So what do you have in ~/.jenkins/jenkins.model.JenkinsLocationConfiguration.xml exactly?

aldaris commented 8 years ago

I guess https://github.com/jenkinsci/docker/issues/138 could be related?

jukkasi commented 8 years ago

There was no jenkins.model.JenkinsLocationConfiguration.xml on the disk.

Jenkins I have is set up by Ansible so I have never saved settings manually. When I go to settings the correct URL is visible in Jenkins settings but not on the disk which is very funny.

Now that I have saved settings manually all the settings appear on the disk and the problem is fixed.

aldaris commented 8 years ago

Good to hear. Closing ;)