def push_release_git_changes(self):
    with self.stage('Commit Release Changes') as s:
        repo = git.Repo(self.project_path)
        repo.index.add([os.path.join(PKG_ROOT, PKG_INFO)])
        repo.index.commit('Update version for release')
        if (self.vars.version in repo.tags):
            repo.delete_tag(self.vars.version)
        repo.create_tag(self.vars.version)
def push_release_git_changes(self):
    with self.stage('Commit Release Changes') as s:
        repo = git.Repo(self.project_path)
        repo.index.add([os.path.join(PKG_ROOT, PKG_INFO)])
        repo.index.commit('Update version for release')
        if (self.vars.version in repo.tags):
            repo.delete_tag(self.vars.version)
        repo.create_tag(self.vars.version)