def release(self):
    if (self.vars.version is None):
        raise ValueError('Must set --version when releasing')
    if (self.vars.post_version is None):
        raise ValueError('Must set --post-version when releasing')
    self.set_version()
    self.build()
    self.push_whl()
    print('Waiting 5 seconds for Pypi to update....')
    time.sleep(5)
    self.build_jnlp_docker_image()
    self.push_jnlp_docker_image()
    self.push_release_git_changes()
    self.set_post_version()
    self.push_post_release_git_changes()
def release(self):
    if (self.vars.version is None):
        raise ValueError('Must set --version when releasing')
    if (self.vars.post_version is None):
        raise ValueError('Must set --post-version when releasing')
    self.set_version()
    self.build()
    self.push_whl()
    print('Waiting 5 seconds for Pypi to update....')
    time.sleep(5)
    self.build_jnlp_docker_image()
    self.push_jnlp_docker_image()
    self.push_release_git_changes()
    self.set_post_version()
    self.push_post_release_git_changes()