سؤال

I currently have a setup where I jobs running the same code on multiple different nodes, and am looking for a way to mark a build as "Unstable" instead of "Failed" if one configuration fails. I've attempted to look into a Groovy postbuild script, but I haven't been successful as of yet. Does anyone know of a way to mark a multiconfiguration build as Unstable if half or less of the configurations fail?

هل كانت مفيدة؟

المحلول

Jenkins Text-finder plugin allows to mark builds as unstable based on RegEx in console log and/or other files.

As for the requirement to have it done only if "half or less"... you will have to make that logic yourself.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top