continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "L. J." <apache.maill...@gmail.com>
Subject shell execution from 1.1-beta-1
Date Mon, 06 Aug 2007 20:10:39 GMT
I have a build definition:
Build File /usr/bin/sh
Arguments buildAdmin.sh"

It works in alpha and earlier version of continuum. Is the way that the
shell script gets executed changed since beta? I got the following error,
and wonder why continuum is calling /bin/bash at the very beginning

1705563 [pool-1-thread-1] INFO
org.apache.maven.continuum.utils.shell.ShellCommandHelper:default  -
Executing: /bin/bash -c "cd
/apps/build/continuum-1.1-beta-1/apps/continuum/webapp/WEB-INF/working-directory/2
&& /usr/bin/sh buildAdmin.sh"
1705563 [pool-1-thread-1] INFO
org.apache.maven.continuum.utils.shell.ShellCommandHelper:default  - Working
directory: /apps/build/continuum-1.1-beta-1
/apps/continuum/webapp/WEB-INF/working-directory/2
1706375 [pool-1-thread-1] ERROR
org.codehaus.plexus.action.Action:execute-builder  - Error running
buildResult
org.apache.maven.continuum.execution.ContinuumBuildExecutorException: Error
while executing shell command. The most common error is that '/usr/bin/sh'
is not in your path.
        at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellCommand
(AbstractBuildExecutor.java:218)
        at
org.apache.maven.continuum.execution.shell.ShellBuildExecutor.build(
ShellBuildExecutor.java:74)
        at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.execute
(ExecuteBuilderContinuumAction.java:140)
        at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.performAction
(DefaultBuildController.java:406)
        at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:145)
        at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask
(BuildProjectTaskExecutor.java:50)
        at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run
(ThreadedTaskQueueExecutor.java:116)
        at
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call
(Executors.java:442)
        at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(
FutureTask.java:176)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:665)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:801)
Caused by:
org.codehaus.plexus.util.cli.CommandLineException: Error while executing
process.
        at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java
:652)
        at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(
CommandLineUtils.java:102)
        at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(
CommandLineUtils.java:89)
        at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.executeShellCommand
(DefaultShellCommandHelper.java:114)
        at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.executeShellCommand
(DefaultShellCommandHelper.java:59)
        at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellCommand
(AbstractBuildExecutor.java:202)
        ... 11 more
Caused by:
java.io.IOException: /bin/bash: not found
        at java.lang.UNIXProcess.fullPath(UNIXProcess.java:365)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:172)
        at java.lang.ProcessImpl.start(ProcessImpl.java:114)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:466)
        at java.lang.Runtime.exec(Runtime.java:607)
        at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java
:647)
        ... 16 more
1706710 [pool-1-thread-1] INFO
org.apache.maven.continuum.buildcontroller.BuildController:default  -
Performing action deploy-artifac

Thanks.

LJ

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message