from gbp.git.repository import GitRepositoryError
from time import sleep
-def request_github_release_tag(release_version):
+def request_github_release_tag(release_version, destination):
WORKSPACE = os.getcwd()
git_tools_repo=['tools/mic', 'tools/gbs']
gitprj = Git(prjdir)
except GitRepositoryError, err:
#clone project to local workspace if it doesn't exist in git cache
-
+
localdir = os.path.join(WORKSPACE, git_repo)
if not clone_gitproject(git_repo, localdir, gerrit_hostname="review.tizen.org", gerrit_username="tizentools", gerrit_sshport=29418, git_cache_dir=WORKSPACE):
return -1
message = 'Release Tools : %s ' % (release_version)
- release_tag = "released-tools-"+release_version
+ if destination == "staging":
+ release_tag = "staging-released-tools-"+release_version
+ else:
+ release_tag = "released-tools-"+release_version
commitid = gitprj.rev_parse('HEAD')
def main(option):
release_version = option[1]
- request_github_release_tag(release_version)
+ destination = option[2]
+ request_github_release_tag(release_version, destination)
return 0
if __name__ == '__main__':