Skip to content

Commit

Permalink
Merge pull request #4056 from AliRizvi1/commit_field_deploy
Browse files Browse the repository at this point in the history
Add commit field to record_successful_deploy()
  • Loading branch information
esoergel authored Aug 5, 2020
2 parents a0dc755 + 7c05ea5 commit bbe0286
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/commcare_cloud/fab/operations/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,15 @@ def record_successful_deploy():
sudo((
'%(virtualenv_current)s/bin/python manage.py '
'record_deploy_success --user "%(user)s" --environment '
'"%(environment)s" --url %(url)s --minutes %(minutes)s --mail_admins'
'"%(environment)s" --url %(url)s --minutes %(minutes)s --mail_admins '
'--commit %(commit)s'
) % {
'virtualenv_current': env.py3_virtualenv_current,
'user': env.user,
'environment': env.deploy_env,
'url': env.deploy_metadata.diff.url,
'minutes': str(int(delta.total_seconds() // 60))
'minutes': str(int(delta.total_seconds() // 60)),
'commit': env.deploy_metadata.deploy_ref
})


Expand Down

0 comments on commit bbe0286

Please sign in to comment.