jQuery in TeamCity plugin? Follow
Hello,
I am creating a TeamCity plugin (extended tab and etc...) and I'm wondering if I can use jQuery. If not, how should I go about making it available to the jsp files I am working on?
TIA
Please sign in to leave a comment.
I spoke too soon before doing my serious research. The result is that TeamCity already includes jQuery.
I ran this piece of code to check the version from my extended tab (jsp file) on TeamCity 9.0.4
if (typeof jQuery != 'undefined')
{
alert('jQuery is loaded. version ' + jQuery.fn.jquery);
}
else
{
alert('jQuery not loaded');
}
One thing to note is that the version included in TeamCity 9.0.4 is jQuery 1.11.1 and the latest available is 1.11.3. It's not a big deal, but I guess it would be nice to have an "official way" to upgrade the jQuery version.
Yes, TeamCity comes with jQuery, so there is no need to bring your own. And it is true that our jQuery version is a bit outdated. Unfortunately this will always be the case, because plugin can be installed on different TeamCity versions.