Quantcast

Mark Jenkins Builds un-stable based on Sonar Results

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Mark Jenkins Builds un-stable based on Sonar Results

krishna chaitanya kurnala
Hello Simon/Sonar Team,

We are using Jenkins/Sonar. I have installed the Build Breaker Plugin, that is Failing Jenkins Builds correctly, based on Threshholds in our Quality Profile. However, I am wondering, if there is a way, we can mark it as unstable or even just pass the build while saying, the thresh-holds are not met in the Build log, I can put together a grrovy script to mark the build un-stable.

Please let me know the options I have. I am sure, many would have attempted what i am trying to achieve.

Thanks,
Krishna Chaitanya
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mark Jenkins Builds un-stable based on Sonar Results

Simon Brandhof
Hi Krishna,

If I correctly understand, the plugin should log errors when thresholds are reached instead of breaking the build ?

Thanks


On 13 August 2012 18:19, krishna chaitanya kurnala <[hidden email]> wrote:
Hello Simon/Sonar Team,

We are using Jenkins/Sonar. I have installed the Build Breaker Plugin, that is Failing Jenkins Builds correctly, based on Threshholds in our Quality Profile. However, I am wondering, if there is a way, we can mark it as unstable or even just pass the build while saying, the thresh-holds are not met in the Build log, I can put together a grrovy script to mark the build un-stable.

Please let me know the options I have. I am sure, many would have attempted what i am trying to achieve.

Thanks,
Krishna Chaitanya



--

Simon BRANDHOF | SonarSource
http://sonarsource.com

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mark Jenkins Builds un-stable based on Sonar Results

krishna chaitanya kurnala
Hello Simon

Thanks a lot for your Response. Yes, you are right.

1) Either, mark the Build as Unstable, instead of Failing 
2) Just print a message in Build Console, that Sonar threshholds are not met.

Both of above scenarios, will work for me. Looking to hear back.

Thanks,
Krishna Chaitanya


On Mon, Aug 13, 2012 at 12:48 PM, Simon Brandhof <[hidden email]> wrote:
Hi Krishna,

If I correctly understand, the plugin should log errors when thresholds are reached instead of breaking the build ?

Thanks



On 13 August 2012 18:19, krishna chaitanya kurnala <[hidden email]> wrote:
Hello Simon/Sonar Team,

We are using Jenkins/Sonar. I have installed the Build Breaker Plugin, that is Failing Jenkins Builds correctly, based on Threshholds in our Quality Profile. However, I am wondering, if there is a way, we can mark it as unstable or even just pass the build while saying, the thresh-holds are not met in the Build log, I can put together a grrovy script to mark the build un-stable.

Please let me know the options I have. I am sure, many would have attempted what i am trying to achieve.

Thanks,
Krishna Chaitanya



--

Simon BRANDHOF | SonarSource
http://sonarsource.com


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mark Jenkins Builds un-stable based on Sonar Results

krishna chaitanya kurnala
Hello Simon

hoping to get hear from you.

Thanks,
Krishna Chaitanya


On Mon, Aug 13, 2012 at 3:07 PM, krishna chaitanya kurnala <[hidden email]> wrote:
Hello Simon

Thanks a lot for your Response. Yes, you are right.

1) Either, mark the Build as Unstable, instead of Failing 
2) Just print a message in Build Console, that Sonar threshholds are not met.

Both of above scenarios, will work for me. Looking to hear back.

Thanks,
Krishna Chaitanya



On Mon, Aug 13, 2012 at 12:48 PM, Simon Brandhof <[hidden email]> wrote:
Hi Krishna,

If I correctly understand, the plugin should log errors when thresholds are reached instead of breaking the build ?

Thanks



On 13 August 2012 18:19, krishna chaitanya kurnala <[hidden email]> wrote:
Hello Simon/Sonar Team,

We are using Jenkins/Sonar. I have installed the Build Breaker Plugin, that is Failing Jenkins Builds correctly, based on Threshholds in our Quality Profile. However, I am wondering, if there is a way, we can mark it as unstable or even just pass the build while saying, the thresh-holds are not met in the Build log, I can put together a grrovy script to mark the build un-stable.

Please let me know the options I have. I am sure, many would have attempted what i am trying to achieve.

Thanks,
Krishna Chaitanya



--

Simon BRANDHOF | SonarSource
http://sonarsource.com



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mark Jenkins Builds un-stable based on Sonar Results

Simon Brandhof
Adding a property "do not break the build" to the build breaker plugin is not a good idea. It will be hard to explain this feature to end-users.
But I think we should simply add these logs to the standard sonar analysis. Feel free to create a JIRA issue for sonar. Meanwhile it should be quite easy for you to fork the plugin and to remove the break feature.


On 15 August 2012 19:28, krishna chaitanya kurnala <[hidden email]> wrote:
Hello Simon

hoping to get hear from you.

Thanks,
Krishna Chaitanya



On Mon, Aug 13, 2012 at 3:07 PM, krishna chaitanya kurnala <[hidden email]> wrote:
Hello Simon

Thanks a lot for your Response. Yes, you are right.

1) Either, mark the Build as Unstable, instead of Failing 
2) Just print a message in Build Console, that Sonar threshholds are not met.

Both of above scenarios, will work for me. Looking to hear back.

Thanks,
Krishna Chaitanya



On Mon, Aug 13, 2012 at 12:48 PM, Simon Brandhof <[hidden email]> wrote:
Hi Krishna,

If I correctly understand, the plugin should log errors when thresholds are reached instead of breaking the build ?

Thanks



On 13 August 2012 18:19, krishna chaitanya kurnala <[hidden email]> wrote:
Hello Simon/Sonar Team,

We are using Jenkins/Sonar. I have installed the Build Breaker Plugin, that is Failing Jenkins Builds correctly, based on Threshholds in our Quality Profile. However, I am wondering, if there is a way, we can mark it as unstable or even just pass the build while saying, the thresh-holds are not met in the Build log, I can put together a grrovy script to mark the build un-stable.

Please let me know the options I have. I am sure, many would have attempted what i am trying to achieve.

Thanks,
Krishna Chaitanya



--

Simon BRANDHOF | SonarSource
http://sonarsource.com






--

Simon BRANDHOF | SonarSource
http://sonarsource.com

Loading...