Have tried using "Exclusion plugin". It helps in achieving first point but not the second one.
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/F-AeRRUYWXg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d1684b31-8673-48c8-9a86-233b9ed8b3e6%40googlegroups.com.