We’re trying to sort out how to use Contexts and Labels and we can’t figure this one scenario out.
What we want is for a changeset to be applied only if two conditions are true. This logic gets us the closest: context:"@(EnvOne and EnvTwo)"
–contexts=“EnvOne” filters it out
–contexts=“EnvOne, EnvTwo” filters it in
But running with no contexts defined still includes it.
Simple uses of the only operator (ex: context:"@EnvOne"
) filter out changesets when no context is defined. So I’m wondering if it’s a bug with @(grouped_contexts)?
Thanks,
Will
ps: we’re using Liquibase 4.25.0