There's Git Parameter Plugin, which allows you to do exactly that:
This plugin allows you to assign git tag or revision number as
parameter in Parametrized builds. There is no need to set up anything
special, this plugin will read your default configuration from Git
Plugin.