Variables in snapcraft.yaml

Hi,

is it possible to define and use variables in snapcraft.yaml.
I want to build snaps using a jenkins and need to define the branches/tags for the sources to be used. Would be perfect, if it were possible to use variables inside the snapcraft.yamle and define these from the outside. Is there a mechanism like that already?

Cheers let4hi