# Conditional running of Build Plugins

**URL:** <https://answers.netlify.com/t/conditional-running-of-build-plugins/18908>\
**Category:** Support\
**Tags:** building, deployment\
**Created:** [July 15, 2020, 10:53am UTC](https://answers.netlify.com/t/conditional-running-of-build-plugins/18908 "2020-07-15T10:53:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andypattenden](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/andypattenden/32/57026_2.png) [@andypattenden](https://answers.netlify.com/u/andypattenden)\
**Post date:** [July 15, 2020, 10:53am UTC](https://answers.netlify.com/t/conditional-running-of-build-plugins/18908/1 "2020-07-15T10:53:06Z")

</div>

I’m aware that there is ongoing work to enable context sensitive build plugins as part of [Allow context sensitive build plugins config in netlify.toml · Issue #1169 · netlify/build · GitHub](https://github.com/netlify/build/issues/1169) but I was wondering if there was any way to control the running of build plugins based on conditions other than context?

For example, an incoming webhook from a headless CMS will trigger a static site rebuild. For these occasions we might not want to run a particular plugin.

Is there any way to use the build hook metadata to ignore certain hooks when running build plugins?

TIA

---

<div class="post-metadata">

**Author:** ![ehmicky](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/ehmicky/32/4051_2.png) [@ehmicky](https://answers.netlify.com/u/ehmicky)\
**Post date:** [July 15, 2020, 11:51am UTC](https://answers.netlify.com/t/conditional-running-of-build-plugins/18908/2 "2020-07-15T11:51:15Z")

</div>

Hi @andypattenden,

We haven’t had this request nor have we thought of this specific feature. Would you like to open a feature request in [Issues · netlify/build · GitHub](https://github.com/netlify/build/issues) describing the different conditional values (e.g. hook payload) that you’d like, and explaining your use case? This will allow us to discuss this feature and prioritize it.

Thanks!
