Fail Jenkins build if a commit lowers the current coverage ?

40 views
Skip to first unread message

ÐΞ€ρ@Ҝ (๏̯͡๏)

unread,
Jan 1, 2016, 2:41:55 PM1/1/16
to jenkins...@googlegroups.com
Hello,
I have started using Jenkins SCI plugin few months ago and would like to implement the below use case in my current Jenkins setup.

UseCase: Any commit that lowers the current coverage should cause the build to fail. Is there a way to check last coverage (branch/statement/both) and if the current build coverage numbers are lower then fail the build.  I could not find this option with scala maven scoverage plugin and was wondering if the jenkins sci plugin has this option. This will enforce to include unit test cases for every commit.

Jenkins Scoverage Plugin : 1.3.0

scoverage-maven-plugin: 1.1.0

scala.version: 2.10.3


Regards,
Deepak

Jovan Jevric

unread,
Jan 7, 2016, 1:16:59 AM1/7/16
to deep...@gmail.com, jenkins...@googlegroups.com
Thought about using CLI anyhow. I'm not really familliar with maven, we're using python. It's not a big deal for us.
 
 
Original Message     
   processed by David.fx 
Subject: 
Fail Jenkins build if a commit lowers the current coverage ? (01-Jan-2016 20:41)
From:    
To:      
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPKgQ9rv3mch2MVB24P5icKogH1C4ULB3O1syppC3HPe0pFKuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

ÐΞ€ρ@Ҝ (๏̯͡๏)

unread,
Jan 7, 2016, 2:42:21 AM1/7/16
to Jovan Jevric, jenkins...@googlegroups.com
Can you share the python script. 
--
Deepak

Reply all
Reply to author
Forward
0 new messages