Open timja opened 8 years ago
I take that back - it looks like it's a different issue entirely. Yaaay.
It looks like this occurs because noCache sets the resource URL to "" (normally "/static/SESSION_HASH") which confuses jenkins-js-modules' getRootURL(). It's already been fixed upstream here: https://github.com/jenkinsci/js-modules/commit/4599871e17f78b6da22a013fac878dd8fc156b4d
But jenkins-js-modules hasn't been released since March: https://www.npmjs.com/package/jenkins-js-modules
I couldn't work out how to make npm use the latest source from GitHub, but when I updated war/node_modules/jenkins-js-modules/js/internal.js to check against null/undefined instead of checking for truthiness, it resolved the issue.
Javascript fails to load properly when hudson.script.noCache=true, New Item page is unusable.
Originally reported by kzantow, imported from: Property hudson.script.noCache breaks the New Item page