From: Mathias Klette Date: Wed, 22 May 2013 17:59:06 +0000 (+0200) Subject: debian_build: add some explanation for RE to collect triggers X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=c6dca1d09daece8397ad1447b487c278f5346852;p=profitbricks%2Fjenkins-build-scripts.git debian_build: add some explanation for RE to collect triggers --- diff --git a/debian_build.py b/debian_build.py index d2e9bb4..a290904 100755 --- a/debian_build.py +++ b/debian_build.py @@ -139,7 +139,9 @@ if __name__ == '__main__': 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'):