reports_file = os.path.join(ENV['WORKSPACE'], '../build-area/result/reports.tgz',)
gitrepo = git.Repo('.')
curr_commit = gitrepo.commit(ENV['GIT_COMMIT'])
- # collect all 'trigger' expressions found in the commit message
+ # collect all 'trigger' expressions found in the commit message, i.e.
+ # <<< "[merge][no-test][provisioning] my commit message"
+ # >>> ['merge','no-test','provisioning']
commit_triggers = re.findall('\[([^\]]+)\]', curr_commit.message)
# id attribute used in python-git 0.3.2~RC1-1 found in wheezy
if hasattr(curr_commit, 'hexsha'):