As mentioned by @kofemann, this will work, as long as $CUR_GIT_VERSION is referenced in the subsequent job.
$CUR_GIT_VERSION