]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build: issue warning in manual build instructions
authorMathias Klette <mathias.klette@profitbricks.com>
Fri, 21 Jun 2013 14:04:52 +0000 (16:04 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Fri, 21 Jun 2013 14:04:52 +0000 (16:04 +0200)
debian_build.py

index 6ed54bb7ea4fd97e432fb170ace6069691db098b..2e7af6ae8355b1ee4085e894375eac7c530a78b1 100755 (executable)
@@ -482,6 +482,8 @@ export {gbp_env} FORCE_SHELL=TRUE
 {command}
 
 ###
+### Beware when using 'merge' trigger: The above command specifies the target
+### branch already while you want to run on original branch '{orig_branch}'.
 ###
 '''.format(
             hostname=socket.gethostname(),
@@ -491,6 +493,7 @@ export {gbp_env} FORCE_SHELL=TRUE
                               for key in gbp.env.keys()
                             ]),
             command=' '.join(gbp.command),
+            orig_branch=ENV['GIT_BRANCH'],
         ))
 
     # .. and finally handle the result