Hudson returns "FAILURE" even though the ant build succeeded

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Hudson returns "FAILURE" even though the ant build succeeded

Thibaut Colar
Why does it do that ?
Could it be because of the "deprecation" warnings ? (if yes unfortunately i have no choice but having them, so can i somehow tell Hudson to ignore warnings ?).
Thanks.

See the console output :
----------------------------------------------
At revision 632
[pcf_java] $ cmd.exe /C ant.bat && exit %%ERRORLEVEL%%
C:\j2sdk1.4.2_09\\bin\java.exe.
-Dsap.crm.java.folder=../../../SAP_Libs/workspace/sap_crm_java/ -Dsap.crm.libs.folder=../../../SAP_Libs/workspace/sap_crm_libs/.
C:\j2sdk1.4.2_09\\lib\tools.jar;c:\Ant\bin\..\lib\xsltc.jar;c:\Ant\bin\..\lib\xml-apis.jar;c:\Ant\bin\..\lib\xercesImpl.jar;c:\Ant\bin\..\lib\xalan.jar;c:\Ant\bin\..\lib\serializer.jar;c:\Ant\bin\..\lib\optional.jar;c:\Ant\bin\..\lib\inqmyxml.jar;c:\Ant\bin\..\lib\ant.jar;.
c:\Ant\bin\...
.echo .
Buildfile: build.xml

compile:
    [mkdir] Created dir: C:\Documents and Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\bin
    [javac] Compiling 137 source files to C:\Documents and Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\bin
    [javac] C:\Documents and Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:143: warning: perform(org.apache.struts.action.ActionMapping,org.apache.struts.action.ActionForm,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) in org.apache.struts.action.Action has been deprecated
    [javac] public final ActionForward perform(ActionMapping mapping,
    [javac]                                    ^
    [javac] C:\Documents and Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:303: warning: getResources() in org.apache.struts.action.ActionServlet has been deprecated
    [javac] new MetaBusinessObjectManager(getServlet().getResources(), mbomProps);
    [javac]                                                                         ^
    [javac] C:\Documents and Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:549: warning: getResources() in org.apache.struts.action.ActionServlet has been deprecated
    [javac] FrameworkConfigManager.Servlet.initXCMBasedEnvironment(request, getServlet().getResources(), props);
    [javac]                                                                                           ^
    [javac] 3 warnings

jar:
      [jar] Building jar: C:\Documents and Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\pcf_java.jar

BUILD SUCCESSFUL
Total time: 14 seconds
finished: FAILURE
-----------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Hudson returns "FAILURE" even though the ant build succeeded

Thibaut Colar
Actually i was able to remove the deprecation warnings, but i still get
a FAILURE from Hudson, what am i missing here ??

Thibaut Colar wrote:

> Why does it do that ?
> Could it be because of the "deprecation" warnings ? (if yes
> unfortunately i have no choice but having them, so can i somehow tell
> Hudson to ignore warnings ?).
> Thanks.
>
> See the console output :
> ----------------------------------------------
> At revision 632
> [pcf_java] $ cmd.exe /C ant.bat && exit %%ERRORLEVEL%%
> C:\j2sdk1.4.2_09\\bin\java.exe.
> -Dsap.crm.java.folder=../../../SAP_Libs/workspace/sap_crm_java/
> -Dsap.crm.libs.folder=../../../SAP_Libs/workspace/sap_crm_libs/.
> C:\j2sdk1.4.2_09\\lib\tools.jar;c:\Ant\bin\..\lib\xsltc.jar;c:\Ant\bin\..\lib\xml-apis.jar;c:\Ant\bin\..\lib\xercesImpl.jar;c:\Ant\bin\..\lib\xalan.jar;c:\Ant\bin\..\lib\serializer.jar;c:\Ant\bin\..\lib\optional.jar;c:\Ant\bin\..\lib\inqmyxml.jar;c:\Ant\bin\..\lib\ant.jar;.
>
> c:\Ant\bin\...
> .echo .
> Buildfile: build.xml
>
> compile:
>    [mkdir] Created dir: C:\Documents and
> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\bin
>    [javac] Compiling 137 source files to C:\Documents and
> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\bin
>    [javac] C:\Documents and
> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:143:
> warning:
> perform(org.apache.struts.action.ActionMapping,org.apache.struts.action.ActionForm,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
> in org.apache.struts.action.Action has been deprecated
>    [javac]     public final ActionForward perform(ActionMapping mapping,
>    [javac]                                    ^
>    [javac] C:\Documents and
> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:303:
> warning: getResources() in org.apache.struts.action.ActionServlet has
> been deprecated
>    [javac]                 new
> MetaBusinessObjectManager(getServlet().getResources(), mbomProps);
>    
> [javac]                                                                        
> ^
>    [javac] C:\Documents and
> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:549:
> warning: getResources() in org.apache.struts.action.ActionServlet has
> been deprecated
>    [javac]        
> FrameworkConfigManager.Servlet.initXCMBasedEnvironment(request,
> getServlet().getResources(), props);
>    
> [javac]                                                                                          
> ^
>    [javac] 3 warnings
>
> jar:
>      [jar] Building jar: C:\Documents and
> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\pcf_java.jar
>
> BUILD SUCCESSFUL
> Total time: 14 seconds
> finished: FAILURE
> -----------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Hudson returns "FAILURE" even though the ant build succeeded

Kohsuke Kawaguchi
Administrator

For some reason the Ant process is returning non-zero exit code. Does
your ant.bat do any post-processing?

Thibaut Colar wrote:

> Actually i was able to remove the deprecation warnings, but i still get
> a FAILURE from Hudson, what am i missing here ??
>
> Thibaut Colar wrote:
>> Why does it do that ?
>> Could it be because of the "deprecation" warnings ? (if yes
>> unfortunately i have no choice but having them, so can i somehow tell
>> Hudson to ignore warnings ?).
>> Thanks.
>>
>> See the console output :
>> ----------------------------------------------
>> At revision 632
>> [pcf_java] $ cmd.exe /C ant.bat && exit %%ERRORLEVEL%%
>> C:\j2sdk1.4.2_09\\bin\java.exe.
>> -Dsap.crm.java.folder=../../../SAP_Libs/workspace/sap_crm_java/
>> -Dsap.crm.libs.folder=../../../SAP_Libs/workspace/sap_crm_libs/.
>> C:\j2sdk1.4.2_09\\lib\tools.jar;c:\Ant\bin\..\lib\xsltc.jar;c:\Ant\bin\..\lib\xml-apis.jar;c:\Ant\bin\..\lib\xercesImpl.jar;c:\Ant\bin\..\lib\xalan.jar;c:\Ant\bin\..\lib\serializer.jar;c:\Ant\bin\..\lib\optional.jar;c:\Ant\bin\..\lib\inqmyxml.jar;c:\Ant\bin\..\lib\ant.jar;.
>>
>> c:\Ant\bin\...
>> .echo .
>> Buildfile: build.xml
>>
>> compile:
>>    [mkdir] Created dir: C:\Documents and
>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\bin
>>    [javac] Compiling 137 source files to C:\Documents and
>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\bin
>>    [javac] C:\Documents and
>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:143:
>> warning:
>> perform(org.apache.struts.action.ActionMapping,org.apache.struts.action.ActionForm,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
>> in org.apache.struts.action.Action has been deprecated
>>    [javac]     public final ActionForward perform(ActionMapping mapping,
>>    [javac]                                    ^
>>    [javac] C:\Documents and
>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:303:
>> warning: getResources() in org.apache.struts.action.ActionServlet has
>> been deprecated
>>    [javac]                 new
>> MetaBusinessObjectManager(getServlet().getResources(), mbomProps);
>>    
>> [javac]                                                                        
>> ^
>>    [javac] C:\Documents and
>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:549:
>> warning: getResources() in org.apache.struts.action.ActionServlet has
>> been deprecated
>>    [javac]        
>> FrameworkConfigManager.Servlet.initXCMBasedEnvironment(request,
>> getServlet().getResources(), props);
>>    
>> [javac]                                                                                          
>> ^
>>    [javac] 3 warnings
>>
>> jar:
>>      [jar] Building jar: C:\Documents and
>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\pcf_java.jar

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Hudson returns "FAILURE" even though the ant build succeeded

Thibaut Colar
Hum, i did not define any custom ANT installation in Hudson, so i'm
guessing either Hudson as one ANT builtin or it found it in my path.
I made a search on m,y drive for ant.bat and found nothing (well that
was the windows search which is never reliable), i'll keep looking for
that ant.bat.
As far as i remember i have not changed it.
Anyway i've completed my testing and will install Hudson on the server
now (Linux) so the issue might just not occur there anyway.

Kohsuke Kawaguchi wrote:

>
> For some reason the Ant process is returning non-zero exit code. Does
> your ant.bat do any post-processing?
>
> Thibaut Colar wrote:
>> Actually i was able to remove the deprecation warnings, but i still
>> get a FAILURE from Hudson, what am i missing here ??
>>
>> Thibaut Colar wrote:
>>> Why does it do that ?
>>> Could it be because of the "deprecation" warnings ? (if yes
>>> unfortunately i have no choice but having them, so can i somehow
>>> tell Hudson to ignore warnings ?).
>>> Thanks.
>>>
>>> See the console output :
>>> ----------------------------------------------
>>> At revision 632
>>> [pcf_java] $ cmd.exe /C ant.bat && exit %%ERRORLEVEL%%
>>> C:\j2sdk1.4.2_09\\bin\java.exe.
>>> -Dsap.crm.java.folder=../../../SAP_Libs/workspace/sap_crm_java/
>>> -Dsap.crm.libs.folder=../../../SAP_Libs/workspace/sap_crm_libs/.
>>> C:\j2sdk1.4.2_09\\lib\tools.jar;c:\Ant\bin\..\lib\xsltc.jar;c:\Ant\bin\..\lib\xml-apis.jar;c:\Ant\bin\..\lib\xercesImpl.jar;c:\Ant\bin\..\lib\xalan.jar;c:\Ant\bin\..\lib\serializer.jar;c:\Ant\bin\..\lib\optional.jar;c:\Ant\bin\..\lib\inqmyxml.jar;c:\Ant\bin\..\lib\ant.jar;.
>>>
>>> c:\Ant\bin\...
>>> .echo .
>>> Buildfile: build.xml
>>>
>>> compile:
>>>    [mkdir] Created dir: C:\Documents and
>>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\bin
>>>    [javac] Compiling 137 source files to C:\Documents and
>>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\bin
>>>    [javac] C:\Documents and
>>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:143:
>>> warning:
>>> perform(org.apache.struts.action.ActionMapping,org.apache.struts.action.ActionForm,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
>>> in org.apache.struts.action.Action has been deprecated
>>>    [javac]     public final ActionForward perform(ActionMapping
>>> mapping,
>>>    [javac]                                    ^
>>>    [javac] C:\Documents and
>>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:303:
>>> warning: getResources() in org.apache.struts.action.ActionServlet
>>> has been deprecated
>>>    [javac]                 new
>>> MetaBusinessObjectManager(getServlet().getResources(), mbomProps);
>>>    
>>> [javac]                                                                        
>>> ^
>>>    [javac] C:\Documents and
>>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\src\com\sap\isa\core\Z_InitAction.java:549:
>>> warning: getResources() in org.apache.struts.action.ActionServlet
>>> has been deprecated
>>>    [javac]        
>>> FrameworkConfigManager.Servlet.initXCMBasedEnvironment(request,
>>> getServlet().getResources(), props);
>>>    
>>> [javac]                                                                                          
>>> ^
>>>    [javac] 3 warnings
>>>
>>> jar:
>>>      [jar] Building jar: C:\Documents and
>>> Settings\thibautc\.hudson\jobs\pcf_java\workspace\pcf_java\pcf_java.jar
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]