The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Grails 2.5.2 automatically running upgrade script before running commands

Sachin Verma
November 27, 2015
When trying to start any Grails task, its getting failed due to following upgrade call which is not available with grails 2.5.2?

Following is the build log:

simple	28-Nov-2015 01:05:36	Starting task 'compile' of type 'com.atlassian.bamboo.plugins.bamboo-grails-plugin:grailsBuilderTaskType'
command	28-Nov-2015 01:05:36	Beginning to execute external process for build '***'\n ... running command line: \n/***/**/bamboo-ebs/opt/grails/2.5.2/bin/grails upgrade -force -non-interactive\
build	28-Nov-2015 01:05:37	| Loading Grails 2.5.2
build	28-Nov-2015 01:05:39	| Configuring classpath
build	28-Nov-2015 01:05:45	| Running pre-compiled script
build	28-Nov-2015 01:05:47	| Error Script not found: Upgrade
simple	28-Nov-2015 01:05:50	Failing task since return code of [
/***/**/bamboo-ebs/opt/grails/2.5.2/bin/grails upgrade -force -non-interactive] was 1 while expected 0
 

How can i remove call to automatic call upgrade script ?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 28, 2015

I think this happens (and I am not saying this is a correct behaviour) because Bamboo detects a mismatch between the version of Grails you use and the one declared in your app.

Try fixing it by setting app.grails.version in application.properties file. You can do it manually in your code or via a script task started before your Grails task.

Sachin Verma
November 29, 2015

Hi, The version is properly set in application.properties like: app.grails.version=2.5.2 Even manually set down but didn't work. Could you tell how bamboo decides to call upgrade script automatically?

Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 30, 2015

OK. It looks like Grails 2.5.2 contains a bug - it introduces itself as 2.5.2.BUILD-SNAPSHOT(https://github.com/grails/grails-core/issues/9349). Try upgrading to 2.5.3, or set the version in grails-2.5.2/build.properties

TAGS
AUG Leaders

Atlassian Community Events