Error in build Grails

93 views
Skip to first unread message

Роман Ловаков

unread,
Mar 29, 2017, 7:53:10 PM3/29/17
to Jenkins Users
what am I doing wrong? In the Global Tool Configuration, I installed the local Grails 3.4.8, Gradle 3.4, JDK 8, Groovy 2.4.10. In the Grails project settings in the Build section, I chose Build with Grails, the target field I wrote war. i have next settings and next structure of project on bitbucet
But I have error
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/xxx/workspace
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://x...@bitbucket.org/xxx/xxx.git # timeout=10
Fetching upstream changes from https://x...@bitbucket.org/xxx/xxx.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials 
 > git fetch --tags --progress https://x...@bitbucket.org/xxx/xxx.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 311cc87e3bda4c55dbd044edbace1f66bdc56a7b (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 311cc87e3bda4c55dbd044edbace1f66bdc56a7b
 > git rev-list 311cc87e3bda4c55dbd044edbace1f66bdc56a7b # timeout=10
[workspace] $ /usr/lib/grails/3.2.8/bin/grails -Dgrails.work.dir=/var/lib/jenkins/jobs/xxx/workspace//target war --non-interactive --plain-output
:compileJava NO-SOURCE
:compileGroovy UP-TO-DATE
:findMainClass
:assetCompile
Processing File 1 of 30 - jstree/default-dark/32px.png
- Writing File
Processing File 2 of 30 - jstree/default-dark/40px.png
- Writing File
Processing File 3 of 30 - jstree/default-dark/throbber.gif
- Writing File
Processing File 4 of 30 - jstree/default/32px.png
- Writing File
Processing File 5 of 30 - jstree/default/40px.png
- Writing File
Processing File 6 of 30 - jstree/default/throbber.gif
- Writing File
Processing File 7 of 30 - glyphicons-halflings-regular.ttf
- Writing File
Processing File 8 of 30 - glyphicons-halflings-regular.svg
- Writing File
Processing File 9 of 30 - glyphicons-halflings-regular.woff2
- Writing File
Processing File 10 of 30 - glyphicons-halflings-regular.woff
- Writing File
Processing File 11 of 30 - glyphicons-halflings-regular.eot
- Writing File
Processing File 12 of 30 - css/bootstrap/bootstrap.min.css
- Writing File
Processing File 13 of 30 - css/bootstrap/bootstrap.css
- Minifying File
- Writing File
Processing File 14 of 30 - css/jstree/default-dark/style.min.css
- Writing File
Processing File 15 of 30 - css/jstree/default-dark/style.css
Error |
Command [war] error: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-3.4-all.zip'. (Use --stacktrace to see the full trace)
Build step 'Build With Grails' marked build as failure
Collecting metadata...
Metadata collection done.
Finished: FAILURE

What i doing wrong?
Screenshot_2.png
Screenshot_3.png
Screenshot_4.png
Screenshot_6.png
Screenshot_8.png
Screenshot_9.png
Screenshot_10.png

Richard Bywater

unread,
Mar 29, 2017, 8:43:24 PM3/29/17
to Jenkins Users
Does this work locally as it kind of looks like not a Jenkins issue but a Grails one.

Looks like a problem when processing the style.css file - I'm assuming if you run with --stacktrace like it says you'll find out more.

Richard.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e73423f2-9b84-45f0-907e-416f4e21e15b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Роман Ловаков

unread,
Mar 30, 2017, 2:05:23 AM3/30/17
to Jenkins Users
build can stop on different file. i check stacktarce and have next error

Error |
Command [war] error: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-3.4-all.zip'. (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-3.4-all.zip'.
	at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:55)
	at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)
	at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:41)
	at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
	at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
	at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
	at org.gradle.tooling.internal.consumer.DefaultBuildLauncher.run(DefaultBuildLauncher.java:77)
	at org.grails.cli.gradle.GradleUtil$_runBuildWithConsoleOutput_closure3.doCall(GradleUtil.groovy:88)
	at org.grails.cli.gradle.GradleUtil$_withProjectConnection_closure1.doCall(GradleUtil.groovy:69)
	at org.grails.cli.gradle.GradleUtil$_withProjectConnection_closure1.call(GradleUtil.groovy)
	at grails.io.support.SystemOutErrCapturer.withNullOutput(SystemOutErrCapturer.groovy:64)
	at org.grails.cli.gradle.GradleUtil.withProjectConnection(GradleUtil.groovy:68)
	at org.grails.cli.gradle.GradleUtil.runBuildWithConsoleOutput(GradleUtil.groovy:83)
	at org.grails.cli.gradle.GradleInvoker.invokeMethod(GradleInvoker.groovy:50)
	at assemble.run(assemble.groovy:19)
	at org.grails.cli.profile.commands.script.GroovyScriptCommand.handle(GroovyScriptCommand.groovy:152)
	at org.grails.cli.profile.AbstractProfile.handleCommand(AbstractProfile.groovy:481)
	at org.grails.cli.GrailsCli.handleCommand(GrailsCli.groovy:378)
	at org.grails.cli.GrailsCli.handleCommand(GrailsCli.groovy:351)
	at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:272)
	at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159)
Caused by: org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
	at org.gradle.launcher.daemon.client.DaemonClient.handleDaemonDisappearance(DaemonClient.java:227)
	at org.gradle.launcher.daemon.client.DaemonClient.monitorBuild(DaemonClient.java:203)
	at org.gradle.launcher.daemon.client.DaemonClient.executeBuild(DaemonClient.java:167)
	at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:130)
	at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:81)
	at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:59)
	at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:40)
	at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:60)
	at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:34)
	at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:141)
	at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:117)
	at org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:188)
	at org.gradle.tooling.internal.consumer.connection.CancellableModelBuilderBackedModelProducer.produceModel(CancellableModelBuilderBackedModelProducer.java:54)
	at org.gradle.tooling.internal.consumer.connection.PluginClasspathInjectionSupportedCheckModelProducer.produceModel(PluginClasspathInjectionSupportedCheckModelProducer.java:41)
	at org.gradle.tooling.internal.consumer.connection.AbstractConsumerConnection.run(AbstractConsumerConnection.java:60)
	at org.gradle.tooling.internal.consumer.DefaultBuildLauncher$1.run(DefaultBuildLauncher.java:89)
	at org.gradle.tooling.internal.consumer.DefaultBuildLauncher$1.run(DefaultBuildLauncher.java:83)
	at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:79)
	at org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45)
	at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:58)
	at org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38)
	at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:55)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
	at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)

Error |
Command [war] error: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-3.4-all.zip'.

четверг, 30 марта 2017 г., 3:43:24 UTC+3 пользователь Richard Bywater написал:

Victor Martinez

unread,
Mar 30, 2017, 11:43:46 AM3/30/17
to Jenkins Users
IMO, It looks like a non jenkins issue but an environmental issue


Please tryb5those steps locally as suggested previously, if it works then skip using the daemon in your CI as it is not suggested to be a good practise

Caused by: org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

Besides of that tey with --debug.

In both cases try locally, then in the jenkins agent manually and then within jenkins itself. Thats the best path to drill down what's causing that issue

Cheers

Роман Ловаков

unread,
Mar 30, 2017, 6:07:37 PM3/30/17
to Jenkins Users
question close. 
for build war file of Grails 3+ project should use this
Screenshot_5.png
Reply all
Reply to author
Forward
0 new messages