continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LAMY Olivier" <Olivier.L...@accor.com>
Subject RE: shell execution from 1.1-beta-1
Date Mon, 06 Aug 2007 21:04:23 GMT
Hi,
What is your ? AIX ?

--
Olivier 

-----Message d'origine-----
De : L. J. [mailto:apache.maillist@gmail.com] 
Envoyé : lundi 6 août 2007 22:11
À : continuum-users
Objet : shell execution from 1.1-beta-1

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


This e-mail, any attachments and the information contained therein ("this message") are confidential
and intended solely for the use of the addressee(s). If you have received this message in
error please send it back to the sender and delete it. Unauthorized publication, use, dissemination
or disclosure of this message, either in whole or in part is strictly prohibited.
--------------------------------------------------------------------------------------------------------------
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues
dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement
à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par
erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication,
totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées
de ce message, sont interdites.
-------------------------------------------------------------------------------------------------------------


Mime
View raw message