Returns Git hash if the current commit.
(self)
| 164 | sleep(10) |
| 165 | |
| 166 | def get_git_hash(self): |
| 167 | '''Returns Git hash if the current commit. ''' |
| 168 | with settings( |
| 169 | warn_only=True, |
| 170 | host_string='{0}@{1}:{2}'.format(DOCKER_USER_NAME, self.host, self.ssh_port), |
| 171 | password=os.environ['DOCKER_PASSWORD'] |
| 172 | ): |
| 173 | git_hash = retry(run)('cd {IMPALA_HOME} && git rev-parse --short HEAD'.format( |
| 174 | IMPALA_HOME=IMPALA_HOME)) |
| 175 | return git_hash |
| 176 | |
| 177 | def run_all(self): |
| 178 | with settings( |