Hi
I do not want the job to keep going on error. I wil put below the logs
and explain below:
....
....
...
....
[shell-exec] [builduser@thevmwebdev3 dw. nodedispatch][INFO]
[DIRECT_WINES\sshuser@theatguksvr2 dw.Deploy
validateAndDeployAllSVR2Linux][INFO] end workflow command (4/4) ->
"validateMgmtLinux -BRANCHNAME ProductionBranch -MGMTJBOSSSERVER
LWManagementLinuxServerST"
[shell-exec]
[shell-exec] [builduser@thevmwebdev3 dw. nodedispatch][INFO]
[DIRECT_WINES\sshuser@theatguksvr2 dw.Deploy
validateAndDeployAllSVR2Linux][INFO]
[command.timer.dw.Deploy.validateAndDeployAllSVR2Linux: 48:59.258 sec]
[shell-exec]
[shell-exec] [builduser@thevmwebdev3 dw. nodedispatch][INFO]
[DIRECT_WINES\sshuser@theatguksvr2 dw.Deploy
validateAndDeployAllSVR2Linux][WARN] Workflow completed. execution
time: 48:59.258 sec ------------ [The COMMAND 2 COMPLETES HERE
SUCCESSFULLY...]
[shell-exec]
[shell-exec]
[shell-exec] Command failed: Error dispatching execution ------------
[INSTEAD OF GOING TO COMMAND 3 IT STOPS HERE AND BUILD FAILS]
Error handler caught failed command execution:
Deploy#LinuxSVR2ValidateAndDeployAll. reason: The following error
occurred while executing this line:
C:\ctier\ctl\depots\dw\modules\Deploy\commands
\LinuxSVR2ValidateAndDeployAll.xml:26: shell-exec returned: 1
BUILD FAILED
C:\ctier\ctl\depots\dw\modules\Deploy\commands
\validateAndDeployAllLinux.xml:25: No message
at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:142)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at
com.controltier.ctl.tasks.controller.ErrorhandlerController.doTasksequence( ErrorhandlerController.java:
198)
at
com.controltier.ctl.tasks.controller.ErrorhandlerController.handleErrorAndC ontinue(ErrorhandlerController.java:
239)
at
com.controltier.ctl.tasks.controller.TaskContainerStrategy.performSequence( TaskContainerStrategy.java:
172)
at
com.controltier.ctl.tasks.controller.TaskContainerStrategy.perform(TaskCont ainerStrategy.java:
113)
at
com.controltier.ctl.tasks.controller.Workflow.execute(Workflow.java:
334)
at
com.controltier.ctl.tasks.controller.WorkflowDispatchAction.perform(Workflo wDispatchAction.java:
55)
at
com.controltier.ctl.types.controller.ExecuteAction.perform(ExecuteAction.ja va:
136)
at
com.controltier.ctl.tasks.controller.Controller.performExecuteAction(Contro ller.java:
353)
at
com.controltier.ctl.tasks.controller.Controller.execute(Controller.java:
311)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1340)
at org.apache.tools.ant.Project.executeTarget(Project.java:1309)
at com.controltier.ctl.common.AntProject.execute(AntProject.java:481)
at com.controltier.ctl.cli.CtlMain
$mainDispatchAction.execute(CtlMain.java:472)
at com.controltier.ctl.cli.CtlMain
$mainDispatchAction.perform(CtlMain.java:387)
at com.controltier.ctl.cli.CtlMain.go(CtlMain.java:292)
at com.controltier.ctl.cli.AbstractCtlMain.run(AbstractCtlMain.java:
236)
at com.controltier.ctl.cli.CtlMain.main(CtlMain.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at launcher.CtlLauncher.main(CtlLauncher.java:34)
The same main command completes fully (Command1, Command2 and Command3
in that order) without any issues when running manually. That is why I
am confused.
Thanks
Shibin
On Feb 13, 7:42 am, Moses Lei <m...@dtosolutions.com> wrote:
> Which problem are you trying to solve or both? Is it:
> 1) There's a remote command failing
> 2) When a remote command fails it doesn't keep going
> if #2 there is a "Keep going on error" or similar checkbox when you define
> the job.
> If #1 that depends. You might send us a log of the failing job (redact any
> confidential info). You can get this from the job history, get the console
> output and then click on the Download link on the right above the console
> output box.
> Moses
> --
> Moses Lei
> [ Professional Services | DTO Solutions, Inc. ]
> [ mobile: +1 703.901.5969 | e-mail: m...@dtosolutions.com | aim/gtalk:
> m...@controltier.com | yahoo: moseslei | windows live (msn):
> m...@dtosolutions.com ]
> On Sun, Feb 12, 2012 at 4:28 AM, Shibin Ishaque <shibin.isha...@gmail.com>wrote:
> > Hi All
> > We have been facing a unique problem while running few control tier
> > scheduled jobs.. The main command has 3 sub commands which each has
> > several sub commands.. The problem is that most of the time the main
> > job fails after the second command cimpletes and do not go to the
> > third.. This occurs most of the time when the job is scheduled and
> > when they are manually triggered it completes the whole job without
> > any issue..
> > The control tier version is 3.4.9 and server running in windows server
> > 2003 while remote commands are executed in linux..
> > It just fails with mesage "remote command failed execution"
> > Any help pls??
> > Shibin
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ControlTier" group.
> > To post to this group, send email to controltier@googlegroups.com
> > To unsubscribe from this group, send email to
> > controltier-unsubscribe@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/controltier?hl=en
> >http://wiki.controltier.org- Hide quoted text -
> - Show quoted text -