How to include AngularJS from a CDN on a Bamboo servlet?

I've been using Google's CDN library to call AngularJS from my velocity template, but for some reason it won't load (while Bootstrap loads fine from a CDN). It works fine when I'm working locally, but when I test it in a Bamboo instance, it fails to load. Is there anything I need to set perhaps?

Thanks!

1 answer

0 vote

Hi Wilbert,

Thank you for your question.

Would be possible to inform how are you including your CDN by pasting a sample code, please?

Kind regards,
Rafael

<head>
		<title>CDPipeline Wallboard</title>
		<meta name="decorator" content="atl.general">
 		<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script>
 		<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
		<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
		${webResourceManager.requireResource("com.cobalt.cdpipeline.cdpipeline:cdpipeline-resources")}
</head>

It appears that Angular is loaded when I inspect element, but I get errors in the console like:" ReferenceError: Can't find variable: plugin ". The strangest thing is when I download the angular source file and load it as a web resource, it works fine. Just not when using the above listed CDN I copied from the Google API library.

Thanks Rafael!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,579 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you