Hi everyone,
I'm wondering how to manage the result of a job in other way as jenkins 
does because i have a job that the only thing it runs is a .jar file that 
can finsih ok or not but in both cases jenkins marks it as SUCESS, here is 
an example:



Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate 
element: {"method":"id","selector":"button_1_558"}
Command duration or timeout: 10.10 seconds
For documentation on this error, please visit: 
http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'ESMADSRV20', ip: '127.0.1.1', os.name: 'Linux', os.arch: 
'amd64', os.version: '3.13.0-86-generic', java.version: '1.7.0_79'
*** Element info: {Using=id, value=button_1_558}
Session ID: 209d81b2-80f5-46a5-b698-c172c66f61fd
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, 
cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, 
handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, 
rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, 
takesScreenshot=true, version=46.0.1}]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at 
org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
        at 
org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
        at 
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
        at 
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)
        at 
org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:413)
        at org.openqa.selenium.By$ById.findElement(By.java:218)
        at 
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
        at test.firefox.TC05.EditMultipleParameters(TC05.java:1056)
        at test.firefox.TC05.main(TC05.java:118)
        ... 5 more
Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate 
element: {"method":"id","selector":"button_1_558"}
For documentation on this error, please visit: 
http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'ESMADSRV20', ip: '127.0.1.1', os.name: 'Linux', os.arch: 
'amd64', os.version: '3.13.0-86-generic', java.version: '1.7.0_79'
Driver info: driver.version: unknown
        at <anonymous 
class>.FirefoxDriver.prototype.findElementInternal_(file:///tmp/anonymous7442117123704558983webdriver-profile/extensions/[email protected]/components/driver-component.js:10770)
        at <anonymous 
class>.fxdriver.Timer.prototype.setTimeout/<.notify(file:///tmp/anonymous7442117123704558983webdriver-profile/extensions/[email protected]/components/driver-component.js:625)
Finished: SUCCESS




¿How to mark a job as failure in this case?



Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d3560df3-d2ce-422f-ade8-2093ea45e6b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to