Mercurial Workaround (Bitbucket)

Add these to your build environment:

GIT_ID=$(hg tip --template '{node}\n')
GIT_AUTHOR_NAME=$(hg tip --template '{author|person}\n') 
GIT_AUTHOR_EMAIL=$(hg tip --template '{author|email}\n') 
GIT_COMMITTER_NAME=$(hg tip --template '{author|person}\n') 
GIT_COMMITTER_EMAIL=$(hg tip --template '{author|email}\n') 
GIT_MESSAGE=$(hg tip --template '{desc}\n') 
GIT_BRANCH=$(hg branch)

The mercurial revision ID will be used to pull files from the Bitbucket API for viewing.

Have more questions? Submit a request

Comments

Powered by Zendesk