Hello every one, I'm trying o build a .war file using Grails. For this I 
already Installed Grails on my Jenkins Node and on the way I did it, before 
start using Grails commands form build the War, I have to set the source of 
the Grails Commands. I have to do:

$ source "$HOME/.sdkman/bin/sdkman-init.sh"

If I run this as "root" or even "jenkins" user, it work perfectely but on 
the Job I set it in a "Shell" and I got the following error.

Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/Build 
and Deploy Integro Cloud [Build and Deploy Integro Cloud] $ /usr/local/bin 
-xe /tmp/jenkins762672155125796765.sh FATAL: command execution failed 
java.io.IOException: error=13, Permission denied at 
java.lang.UNIXProcess.forkAndExec(Native Method) at 
java.lang.UNIXProcess.<init>(UNIXProcess.java:247) at 
java.lang.ProcessImpl.start(ProcessImpl.java:134) at 
java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) Caused: 
java.io.IOException: Cannot run program "/usr/local/bin" (in directory 
"/var/lib/jenkins/workspace/Build and Deploy Integro Cloud"): error=13, 
Permission denied at 
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at 
hudson.Proc$LocalProc.<init>(Proc.java:250) at 
hudson.Proc$LocalProc.<init>(Proc.java:219) at 
hudson.Launcher$LocalLauncher.launch(Launcher.java:937) at 
hudson.Launcher$ProcStarter.start(Launcher.java:455) at 
hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109) at 
hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66) at 
hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
 
at hudson.model.Build$BuildExecution.build(Build.java:206) at 
hudson.model.Build$BuildExecution.doRun(Build.java:163) at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) 
at hudson.model.Run.execute(Run.java:1853) at 
hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at 
hudson.model.ResourceController.execute(ResourceController.java:97) at 
hudson.model.Executor.run(Executor.java:427) Build step 'Execute shell' 
marked build as failure Finished: FAILURE

Please any help will be well received.

Greetings,

Eng. Jibsan

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f033ff81-cf9f-4410-91bf-3b4568aa2fd8n%40googlegroups.com.

Reply via email to