Skip plugin based on context

Hello,

Is there any way to skip running a specific build plugin based on the context?

Use case: I would like to trigger e2e tests only on specific contexts (or skip on some), due mainly to it’s duration time.

Use case 2: I would like to run different specs of e2e tests if in production (smoke tests, for instance).

Thanks!

Hi @lucasconstantino,

This is a great idea! In fact, we have the following feature request currently tracking it: https://github.com/netlify/build/issues/1169
Please let us know what you think of the proposed solution on that issue. Thanks!

1 Like