When testing "scripts" changes with Jenkins and a leaf job fails, we currently would have to restart the whole build or update the git tag manually. Since dealing with the git tag is not straightforward, add a helper to update it.