summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2014-12-05 15:17:57 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2014-12-05 15:17:57 +0100
commit1b400d3d94244fbb31bc7468b2559a21d5810a40 (patch)
tree0df23bfae1e6a2ab8258765e755c77ebe8203eb5
parent311e29bbc8c259b4d96339647f8a21eb3d900b74 (diff)
downloadATCD-1b400d3d94244fbb31bc7468b2559a21d5810a40.tar.gz
Added push commands
* ACE/bin/make_release.py:
-rwxr-xr-xACE/bin/make_release.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/ACE/bin/make_release.py b/ACE/bin/make_release.py
index 0b3530db473..14848ad3392 100755
--- a/ACE/bin/make_release.py
+++ b/ACE/bin/make_release.py
@@ -149,7 +149,7 @@ def ex (command):
status = system(command)
if status != 0:
- print "ERROR: Nonzero retrun value from " + command
+ print "ERROR: Nonzero return value from " + command
raise Exception
###
@@ -624,9 +624,14 @@ def update_latest_tag (which, branch):
global opts
tagname = "Latest_" + which
vprint ("Removing tag %s" % (tagname))
+ # Remove tag locally
#ex ("cd $DOC_ROOT/ATCD && git tag -d " + tagname)
+ # Place tag in the remote orgin
+ #ex ("cd $DOC_ROOT/ATCD && git push origin :refs/tags/" + tagname)
vprint ("Placing tag %s" % (tagname))
ex ("cd $DOC_ROOT/ATCD && git tag -a " + tagname + " -m\"" + tagname + "\"")
+ vprint ("Pushing tag %s" % (tagname))
+ ex ("cd $DOC_ROOT/ATCD && git push origin " + tagname)
def tag ():
""" Tags the DOC and MPC repositories for the version """
@@ -639,8 +644,12 @@ def tag ():
if opts.take_action:
vprint ("Placing tag %s on ATCD" % (tagname))
ex ("cd $DOC_ROOT/ATCD && git tag -a " + tagname + " -m\"" + tagname + "\"")
+ vprint ("Pushing tag %s on ATCD" % (tagname))
+ ex ("cd $DOC_ROOT/ATCD && git push origin tag " + tagname)
vprint ("Placing tag %s on MPC" % (tagname))
ex ("cd $DOC_ROOT/MPC && git tag -a " + tagname + " -m\"" + tagname + "\"")
+ vprint ("Pushing tag %s on MPC" % (tagname))
+ ex ("cd $DOC_ROOT/MPC && git push origin tag " + tagname)
# Update latest tag
if opts.release_type == "major":