]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build: add some explanation for RE to collect triggers
authorMathias Klette <mathias.klette@profitbricks.com>
Wed, 22 May 2013 17:59:06 +0000 (19:59 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Wed, 22 May 2013 17:59:06 +0000 (19:59 +0200)
debian_build.py

index d2e9bb4e57f092f043f25f8345ba8f949008e455..a2909042f7ee171e2034db00527ad5e6a60f983a 100755 (executable)
@@ -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'):