Jenkins shell command isn't executing

Posted by Dmitro on Server Fault See other posts from Server Fault or by Dmitro
Published on 2012-03-28T16:31:11Z Indexed on 2012/03/28 17:33 UTC
Read the original article Hit count: 332

Filed under:
|
|

In Jenkins project I add command for executiong rm /var/www/ru.liveyurist.ru/tmp/*

But when I build project I get error:

Started by user anonymous
Building in workspace /var/www/ru.myproject.ru
Updating https://subversion.assembla.com/svn/myproject/trunk
At revision 1168
no change for https://subversion.assembla.com/svn/liveexpert/trunk since the previous build
[ru.myproject.ru] $ /bin/sh -xe /tmp/hudson7189633355149866134.sh
FATAL: command execution failed
java.io.IOException: Cannot run program "/bin/sh" (in directory "/var/www/ru.myproject.ru"): java.io.IOException: error=12, Cannot allocate memory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
    at hudson.Proc$LocalProc.<init>(Proc.java:244)
    at hudson.Proc$LocalProc.<init>(Proc.java:216)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:709)
    at hudson.Launcher$ProcStarter.start(Launcher.java:338)
    at hudson.Launcher$ProcStarter.join(Launcher.java:345)
    at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:82)
    at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703)
    at hudson.model.Build$RunnerImpl.build(Build.java:178)
    at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473)
    at hudson.model.Run.run(Run.java:1410)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:238)
Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
    at java.lang.ProcessImpl.start(ProcessImpl.java:81)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
    ... 16 more
Build step 'Execute shell' marked build as failure
Finished: FAILURE

I started Jenkins from root user. Please advise what can be reason of this error?

© Server Fault or respective owner

Related posts about debian

Related posts about shell