Showing posts with label cloudbees. Show all posts
Showing posts with label cloudbees. Show all posts

Friday, May 06, 2011

Grails Infinitely Prompts During Jenkins Build

I've mentioned before how I'm using CloudBees RUN@cloud as my hosting solution for Scripty Note... well right alongside that I'm using their DEV@cloud Jenkins CI environment. I have a decent amount of experience with Continuous Integration environments (Hudson, Jenkins... even Cruise Control way back when). I even use and maintain a Jenkins build machine every day at MagnetStreet. So I definitely know my way around Jenkins.

That said, I was recently at a loss when I added the MySQL Connector/J grails plugin to the Scripty Note project. Everything worked great on my own machine, but when Jenkins picked it up, I was in for some excitement. The build started at about 10pm that night (which I was not monitoring) and when I checked build status the next morning, lo and behold, all of my DEV@cloud build minutes had been used up and I had received an email from someone at CloudBees saying they had stopped my build when they noticed my EBS volume had filled up because of my build log. The build had been running in an infinite loop, prompting in the log:

"Overwrite existing DataSource.groovy? (y, Y, n, N)"

Monday, May 02, 2011

Grails Subdomain Redirects

Since I'm using Cloudbees Run@Cloud service to host Scripty Note, I don't have access to their nginx configuration files (somewhat annoying). Since the nature of ScriptyNote is to be small, then we need to automatically remove the 'www' subdomain on any incoming requests and 301 redirect back to the no-www url. I posted a question here on stackoverflow and a very nice gentleman let me in on the Grails Filters convention. So here's the code I ended up implementing to redirect from 'www.scriptynote.com' to 'scriptynote.com'.