Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Error detection not working as I'd expected it to (FIXED) #2036

mrmrcoleman ·
Good evening,

I have a build which calls the following:

PsExec.exe \192.168.1.200 -u 192.168.1.200\Administrator -p AdminPassword12345 -d "c:/Program Files/Eaglet Eye/Eye Surface Analyzer/EagletESA.exe"


PsExec with the '-d' option will return as its exit code the PID of the process it started. You can see an example of this below.

C:\Users\Eaglet-Autotest\quickbuild-4.0.61\workspace\root\Eye Service Profiler>PsExec.exe \192.168.1.200 -u 192.168.1.200\Administrator -p AdminPassword12345 -d "c:/Program Files/Eaglet Eye/Eye Surface Analyzer/EagletESA.exe"

PsExec v1.98 - Execute processes remotely
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com


c:/Program Files/Eaglet Eye/Eye Surface Analyzer/EagletESA.exe started on 192.168.1.200 with process ID 184.

C:\Users\Eaglet-Autotest\quickbuild-4.0.61\workspace\root\Eye Service Profiler>echo %ERRORLEVEL%
184


Of course this fails the build step, but I would like it to succeed unless certain patterns appear in the build output so I checked 'Detect Errors' and added the following lines under 'Begin Patterns' as these strings are common in the kind of actual failures that I'm looking for: (Please also note that 'Wait For Finish' under 'Advanced' is also checked)

.*PsExec could not start.*
.*Couldn't access.*


Unfortunately the build still fails even though those lines do not appear as you can see in the build log below:

21:27:27,970 [master>Build Pipeline>Start Eaglet Eye@Eaglet-Autotest:8810] INFO  - PsExec v1.98 - Execute processes remotely
21:27:27,970 [master>Build Pipeline>Start Eaglet Eye@Eaglet-Autotest:8810] INFO - Copyright (C) 2001-2010 Mark Russinovich
21:27:27,970 [master>Build Pipeline>Start Eaglet Eye@Eaglet-Autotest:8810] INFO - Sysinternals - www.sysinternals.com
21:27:27,970 [master>Build Pipeline>Start Eaglet Eye@Eaglet-Autotest:8810] INFO -
21:28:13,544 [master>Build Pipeline>Start Eaglet Eye@Eaglet-Autotest:8810] INFO - Connecting to 192.168.1.200...
21:28:13,544 [master>Build Pipeline>Start Eaglet Eye@Eaglet-Autotest:8810] INFO - Starting PsExec service on 192.168.1.200...
21:28:13,544 [master>Build Pipeline>Start Eaglet Eye@Eaglet-Autotest:8810] INFO - Connecting with PsExec service on 192.168.1.200...
21:28:13,544 [master>Build Pipeline>Start Eaglet Eye@Eaglet-Autotest:8810] INFO - Starting c:/Program Files/Eaglet Eye/Eye Surface Analyzer/EagletESA.exe on 192.168.1.200...
21:28:13,544 [master>Build Pipeline>Start Eaglet Eye@Eaglet-Autotest:8810] INFO - c:/Program Files/Eaglet Eye/Eye Surface Analyzer/EagletESA.exe started on 192.168.1.200 with process ID 788.
21:28:13,556 [master>Build Pipeline>Start Eaglet Eye@Eaglet-Autotest:8810] INFO - Executing post-execute action...
21:28:13,556 [master>Build Pipeline>Start Eaglet Eye@Eaglet-Autotest:8810] ERROR - Step 'master>Build Pipeline>Start Eaglet Eye' is failed.
com.pmease.quickbuild.QuickbuildException: Failed to run command: PsExec.exe \192.168.1.200 -u 192.168.1.200\Administrator -p AdminPassword12345 -d "c:/Program Files/Eaglet Eye/Eye Surface Analyzer/EagletESA.exe"
Command return code: 788
at com.pmease.quickbuild.execution.Commandline$ExecuteResult.buildException(Commandline.java:376)
at com.pmease.quickbuild.plugin.basis.CommandBuildStep.run(CommandBuildStep.java:255)
at com.pmease.quickbuild.plugin.basis.CommandBuildStep$$EnhancerByCGLIB$$d9dfab96.CGLIB$run$0(<generated>)
at com.pmease.quickbuild.plugin.basis.CommandBuildStep$$EnhancerByCGLIB$$d9dfab96$$FastClassByCGLIB$$a4842298.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:270)
at com.pmease.quickbuild.plugin.basis.CommandBuildStep$$EnhancerByCGLIB$$d9dfab96.run(<generated>)
at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:478)
at com.pmease.quickbuild.stepsupport.StepExecutionJob.executeStepAwareJob(StepExecutionJob.java:29)
at com.pmease.quickbuild.stepsupport.StepAwareJob.executeBuildAwareJob(StepAwareJob.java:47)
at com.pmease.quickbuild.BuildAwareJob.execute(BuildAwareJob.java:61)
at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:78)
at java.lang.Thread.run(Unknown Source)


What am I doing wrong?
  • replies 5
  • views 3852
  • stars 0
robinshen ADMIN ·
Please upgrade to 4.0.67: http://build.pmease.com/build/2023
In this build, the command build step is modified to not respect return code if error detection setting is specified.
mrmrcoleman ·
Hey Robin,

Unfortunately the migration fails with the following error:

C:\Users\Eaglet-Autotest\quickbuild-4.0.67\bin>migrate.bat C:\Users\Eaglet-Autotest\quickbuild-4.0.61
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
Java HotSpot(TM) Client VM (build 20.10-b01, mixed mode, sharing)
=====================================================================
2012-10-14 14:32:16,963 INFO - Cleaning cached plugin libraries...
2012-10-14 14:32:17,175 INFO - Cleaning temp directory...
2012-10-14 14:32:19,298 INFO - Checking QuickBuild NT service...
2012-10-14 14:32:19,416 INFO - Cleaning cached plugin libraries from old installation...
2012-10-14 14:32:19,416 INFO - Copying config files...
2012-10-14 14:32:19,432 INFO - Copying assets...
2012-10-14 14:32:19,436 INFO - Copying libs...
2012-10-14 14:32:19,448 INFO - Copying custom plugins...
2012-10-14 14:32:19,464 INFO - Copying sample db...
2012-10-14 14:32:19,474 INFO - Booting QuickBuild from 'C:\Users\Eaglet-Autotest\quickbuild-4.0.61'...
2012-10-14 14:32:19,480 INFO - Starting framework...
2012-10-14 14:32:22,738 INFO - Starting QuickBuild server...
2012-10-14 14:32:22,742 INFO - Checking database data version...
2012-10-14 14:32:22,948 INFO - QuickBuild version table found. Catalog: quickbuild, Schema: null, Name: qb_setting, Type: TABLE
2012-10-14 14:32:22,958 INFO - Stopping plugin manager...
2012-10-14 14:32:23,107 INFO - Stopping QuickBuild server...
2012-10-14 14:32:23,108 INFO - Stopping plugins...
2012-10-14 14:32:23,109 INFO - Stopping task scheduler...
2012-10-14 14:32:48,560 INFO - QuickBuild server stopped.
2012-10-14 14:32:48,561 INFO - Deleting sampledb...
2012-10-14 14:32:48,565 INFO - Booting QuickBuild from 'C:\Users\Eaglet-Autotest\quickbuild-4.0.67'...
2012-10-14 14:32:48,578 INFO - Starting framework...
2012-10-14 14:32:48,634 INFO - Caching plugin libraries...
2012-10-14 14:32:50,555 INFO - Starting QuickBuild server...
2012-10-14 14:32:50,558 INFO - Checking application data version...
2012-10-14 14:32:50,824 INFO - QuickBuild version table found. Catalog: quickbuild, Schema: null, Name: qb_setting, Type: TABLE
2012-10-14 14:32:50,831 INFO - Stopping plugin manager...
2012-10-14 14:32:50,979 INFO - Stopping QuickBuild server...
2012-10-14 14:32:50,980 INFO - Stopping plugins...
2012-10-14 14:32:50,980 INFO - Stopping task scheduler...
2012-10-14 14:32:50,985 INFO - QuickBuild server stopped.
2012-10-14 14:32:50,985 INFO - Copying sample db...
2012-10-14 14:32:56,100 INFO - Booting QuickBuild from 'C:\Users\Eaglet-Autotest\quickbuild-4.0.61'...
2012-10-14 14:32:56,103 INFO - Starting framework...
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.pmease.quickbuild.bootstrap.Bootstrap.boot(Bootstrap.java:561)
at com.pmease.quickbuild.bootstrap.Migrate.main(Migrate.java:265)
Caused by: java.lang.RuntimeException: java.io.IOException: Unable to delete file: C:\Users\Eaglet-Autotest\quickbuild-4.0.67\framework\configuration\org.eclipse.osgi\xstream-1.3.1.jar
at com.pmease.quickbuild.equinoxadapter.EquinoxAdapter.buildAppClassLoader(EquinoxAdapter.java:76)
at com.pmease.quickbuild.equinoxadapter.EquinoxAdapter.startup(EquinoxAdapter.java:48)
... 6 more
Caused by: java.io.IOException: Unable to delete file: C:\Users\Eaglet-Autotest\quickbuild-4.0.67\framework\configuration\org.eclipse.osgi\xstream-1.3.1.jar
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1390)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044)
at com.pmease.quickbuild.equinoxadapter.EquinoxAdapter.buildAppClassLoader(EquinoxAdapter.java:74)
... 7 more
Press any key to continue . . .

C:\Users\Eaglet-Autotest\quickbuild-4.0.67\bin>


The file in questions definitely exists:

C:\Users\Eaglet-Autotest\quickbuild-4.0.67\bin>dir C:\Users\Eaglet-Autotest\quickbuild-4.0.67\framework\configuration\org.eclipse.osgi
Volume in drive C has no label.
Volume Serial Number is 6C3B-7190

Directory of C:\Users\Eaglet-Autotest\quickbuild-4.0.67\framework\configuration\org.eclipse.osgi

14-10-2012 14:33 <DIR> .
14-10-2012 14:33 <DIR> ..
14-10-2012 14:32 54.665 activation.jar
14-10-2012 14:32 1.323.005 ant-1.7.1.jar
14-10-2012 14:32 6.998 ant-javamail-1.7.1.jar
14-10-2012 14:32 12.143 ant-launcher-1.7.1.jar
14-10-2012 14:32 443.432 antlr-2.7.6.jar
14-10-2012 14:32 4.467 aopalliance-1.0.jar
14-10-2012 14:32 43.401 asm-3.2.jar
14-10-2012 14:32 1.599.570 axis-1.4.jar
14-10-2012 14:32 31.191 axis-jaxrpc-1.4.jar
14-10-2012 14:32 18.979 axis-saaj-1.4.jar
14-10-2012 14:32 126.771 axis-wsdl4j-1.5.1.jar
14-10-2012 14:32 610.790 c3p0-0.9.1.2.jar
14-10-2012 14:32 278.682 cglib-2.2.jar
14-10-2012 14:32 231.891 commons-beanutils-1.8.2.jar
14-10-2012 14:32 571.259 commons-collections-3.2.jar
14-10-2012 14:32 41.376 commons-dbutils-1.3.jar
14-10-2012 14:32 71.442 commons-discovery-0.2.jar
14-10-2012 14:32 305.001 commons-httpclient-3.1.jar
14-10-2012 14:32 138.956 commons-validator-1.3.1.jar
14-10-2012 14:32 10.642 cubit-rest-connector-1.0.jar
14-10-2012 14:32 314.833 dom4j-1.6.1-xpp3fix.jar
14-10-2012 14:32 208.048 ehcache-1.2.3.jar
14-10-2012 14:32 5.717.095 groovy-all-1.7.9.jar
14-10-2012 14:32 164.986 gson-1.6.jar
14-10-2012 14:32 1.075.964 guava-r07.jar
14-10-2012 14:32 710.492 guice-3.0.jar
14-10-2012 14:32 34.471 guice-multibindings-3.0.jar
14-10-2012 14:32 1.255.294 h2-1.3.159.jar
14-10-2012 14:32 100.884 hibernate-jpa-2.0-api-1.0.0.Final.jar
14-10-2012 14:32 287.706 hibernate-validator-4.1.0.Final.jar
14-10-2012 14:32 4.115.591 hibernate3.jar
14-10-2012 14:32 65.368 jakarta-oro-2.0.6.jar
14-10-2012 14:32 644.931 javassist.jar
14-10-2012 14:32 2.497 javax.inject.jar
14-10-2012 14:32 104.172 jaxb-api.jar
14-10-2012 14:32 872.831 jaxb-impl.jar
14-10-2012 14:32 226.915 jaxen-1.1-beta-8.jar
14-10-2012 14:32 309.920 jcommon-1.0.17.jar
14-10-2012 14:32 6.727 jdbc2_0-stdext.jar
14-10-2012 14:32 153.115 jdom.jar
14-10-2012 14:32 90.347 jersey-client-1.1.5.1.jar
14-10-2012 14:32 344.045 jersey-core-1.1.5.1.jar
14-10-2012 14:32 580.787 jersey-server-1.1.5.1.jar
14-10-2012 14:32 539.912 jetty-6.1.26.jar
14-10-2012 14:32 177.131 jetty-util-6.1.26.jar
14-10-2012 14:32 1.461.633 jfreechart-1.0.14.jar
14-10-2012 14:32 93.310 jhighlight-1.0.jar
14-10-2012 14:32 112.650 jira-soap-3.13.4.jar
14-10-2012 14:32 94.346 jira-soap-3.7.4.jar
14-10-2012 14:32 119.567 jira-soap-4.3.2.jar
14-10-2012 14:32 363.097 jml-1.0b3-full.jar
14-10-2012 14:32 944.033 jna-3.2.4.jar
14-10-2012 14:32 88.886 jna-posix-1.0.3.jar
14-10-2012 14:32 109.362 jofc2-1.0-0.jar
14-10-2012 14:32 69.344 jsap-2.1.jar
14-10-2012 14:32 26.396 jsr173_1.0_api.jar
14-10-2012 14:32 45.927 jsr311-api-1.1.jar
14-10-2012 14:32 13.236 jta-1.1.jar
14-10-2012 14:32 253.160 junit-4.10.jar
14-10-2012 14:32 13.334 libpam4j-1.2.jar
14-10-2012 14:32 447.676 mail-1.4.1.jar
14-10-2012 14:32 688.329 mvel2-2.0.19.jar
14-10-2012 14:32 166.319 ognl-2.6.7.jar
14-10-2012 14:32 445.274 quartz-1.8.3.jar
14-10-2012 14:32 219.671 rome-1.0.jar
14-10-2012 14:32 641.694 sf_soap50_sdk-1.2.jar
14-10-2012 14:32 332.055 sjsxp.jar
14-10-2012 14:32 285.035 smack.jar
14-10-2012 14:32 514.740 smackx.jar
14-10-2012 14:32 285.603 spring-core.jar
14-10-2012 14:32 47.433 validation-api-1.0.0.GA.jar
14-10-2012 14:32 392.124 velocity-1.5.jar
14-10-2012 14:32 43.769 velocity-tools-generic-1.4.jar
14-10-2012 14:32 1.607.788 wicket-core-1.5.0.jar
14-10-2012 14:32 1.172.276 wicket-extensions-1.5.0.jar
14-10-2012 14:32 79.766 wicket-request-1.5.0.jar
14-10-2012 14:32 334.343 wicket-util-1.5.0.jar
14-10-2012 14:32 19.189 wicket-velocity-1.5.0.jar
14-10-2012 14:32 34.407 ws-commons-util-1.0.2.jar
14-10-2012 14:32 58.573 xmlrpc-client-3.1.3.jar
14-10-2012 14:32 109.131 xmlrpc-common-3.1.3.jar
14-10-2012 14:32 120.069 xpp3-1.1.4c.jar
14-10-2012 14:32 431.406 xstream-1.3.1.jar
83 File(s) 36.313.674 bytes
2 Dir(s) 154.038.685.696 bytes free


Also, the file is not read-only and I'm running as administrator. Any idea what's going wrong?

Kind regards,

Mark
robinshen ADMIN ·
There is a bug in 4.0.61 preventing migration script from running successfully. To workaround this, please take backup from 4.0.61 and restore it into 4.0.67.
mrmrcoleman ·
Evening Robin,

The upgrade worked, and so did the fix. Thanks!

Regards,

Mark
mrmrcoleman ·
Thanks for letting me know Robin!