kmmbvnr/django-jenkins — pull request #116 by dconlon (2012-08-22 10:34:40+00:00)
Title: Use absolute paths to fix empty JSLint report

With a relative path I got a blank page when trying to view violations in Jenkins. The same problem described by:

https://groups.google.com/forum/#!msg/jenkinsci-users/cUfZimHHXqs/orh2CLaOrHAJ

Some posts on the Internet suggest that relative paths used to work in Jenkins, however looking at the Jenkins code, there is nothing to resolve the path so only absolute ones will work now:

https://github.com/jenkinsci/violations-plugin/blob/master/src/main/java/hudson/plugins/violations/types/jslint/JsLintParser.java

fixAbsolutePath() only removes ".." in the path, it does not resolve a path relative to the workspace into an absolute one.