Warnings Plugin - not working properly

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

Warnings Plugin - not working properly

Tilivea, Nicolae Serban
Warnings Plugin - not working properly

Hello,

I have set up the warnings plugin I have a warning in my compile job

javac:

    [javac] Compiling 5 source files to C:\Users\tiliven\.hudson\jobs\Hello THS Trunk - compile\workspace\HelloTHSTest\build\classes

    [javac] C:\Users\tiliven\.hudson\jobs\Hello THS Trunk - compile\workspace\HelloTHSTest\src\ths\Hallo.java:28: warning: begrussen() in ths.types.IGruss has been deprecated

    [javac]                     System.out.println(grussen[i].begrussen());

    [javac]                                                   ^

    [javac] 1 warning

The plugin doesn’t catch the warning.

Is there another way to make a job fail/became unstable if there are warnings ?

Thanks.

Reply | Threaded
Open this post in threaded view
|

RE: Warnings Plugin - not working properly

Ulli Hafner-2
Seems that no regular expression matches in your case. I use the
following regular expressions:
- javac maven: \\[WARNING\\]\\s*(.*):\\[(\\d*).*\\[(.*)\\]\\s*(.*)
- hpi maven: (.*\\.java):(\\d*):.*\\[(.*)\\]\\s*(.*)

Could you please add your example to
https://hudson.dev.java.net/issues/show_bug.cgi?id=1688

(Or even better, provide a new regexp parser class, that matches your
expression:-)

Ulli

________________________________

        From: Tilivea, Nicolae Serban
[mailto:[hidden email]]
        Sent: Dienstag, 20. Mai 2008 13:37
        To: [hidden email]
        Subject: Warnings Plugin - not working properly
       
       

        Hello,

        I have set up the warnings plugin I have a warning in my compile
job

        javac:

            [javac] Compiling 5 source files to
C:\Users\tiliven\.hudson\jobs\Hello THS Trunk -
compile\workspace\HelloTHSTest\build\classes

            [javac] C:\Users\tiliven\.hudson\jobs\Hello THS Trunk -
compile\workspace\HelloTHSTest\src\ths\Hallo.java:28: warning:
begrussen() in ths.types.IGruss has been deprecated

            [javac]
System.out.println(grussen[i].begrussen());

            [javac]                                                   ^

            [javac] 1 warning

                The plugin doesn't catch the warning.

        Is there another way to make a job fail/became unstable if there
are warnings ?

        Thanks.


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

Reply | Threaded
Open this post in threaded view
|

RE: Warnings Plugin - not working properly

Ulli Hafner-2
In reply to this post by Tilivea, Nicolae Serban
Warnings Plugin - not working properly
Should be fixed in releae 1.3.
 
Ulli


From: Tilivea, Nicolae Serban [mailto:[hidden email]]
Sent: Dienstag, 20. Mai 2008 13:37
To: [hidden email]
Subject: Warnings Plugin - not working properly

Hello,

I have set up the warnings plugin I have a warning in my compile job

javac:

    [javac] Compiling 5 source files to C:\Users\tiliven\.hudson\jobs\Hello THS Trunk - compile\workspace\HelloTHSTest\build\classes

    [javac] C:\Users\tiliven\.hudson\jobs\Hello THS Trunk - compile\workspace\HelloTHSTest\src\ths\Hallo.java:28: warning: begrussen() in ths.types.IGruss has been deprecated

    [javac]                     System.out.println(grussen[i].begrussen());

    [javac]                                                   ^

    [javac] 1 warning

The plugin doesn’t catch the warning.

Is there another way to make a job fail/became unstable if there are warnings ?

Thanks.