Seems like a potential candidate for workflow job too.
Le 5 janv. 2016 8:29 AM, "Victor Martinez" <victormartinezru...@gmail.com>
a écrit :

> Hi,
>
>  Off the top of my head I'll suggest the two below options:
>
> 1) Groovy Post Build
> <https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin> and 
> Promoted
> Plugin
> <https://wiki.jenkins-ci.org/display/JENKINS/Promoted+Builds+Plugin>, so
> run your maven test command as usual, then a post build action will
> evaluate the UT rate and threshold and in that case it will change the
> status of the build as stable/unstable, the Promoted Plugin will trigger a
> maven deploy action only when the build is stable and will reuse the same
> slave/workspace.
>
> 2) Conditional build steps
> <https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin>,
> so you can add some validations during the build, but I haven't used that
> one much
>
> 3) Create your own maven plugin in order to fail a build when the UT rate
> is lower than X%
>
> My two cents
>
>
> On Tuesday, 5 January 2016 06:31:36 UTC+1, foolhunger Hsiao wrote:
>>
>> Hi, all
>>
>>
>>
>> We encountered a situation where we want only to deploy maven build
>> artifacts if the UT pass rate is above 80%.
>>
>>
>>
>> In order to do that, we need to get the all UT count, UT pass count, UT
>> failed count etc. (if UT failed > 80% of UT all, skip the deploy)
>>
>>
>>
>> Since we need to get this information during the build process, is
>> writing a plugin the only option?
>>
>>
>> If so, are there any recommended resources.
>>
>> Thanks
>>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/73aa6e81-8a97-46d2-9c4d-71aca722e5cc%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/73aa6e81-8a97-46d2-9c4d-71aca722e5cc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6Yfsmx5LZGb-je0YFv5T-AjZ-qCrK47GqQ4UPvS%3DdyNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to