From 6c27bc74c623b6ffd5b3525ace5818618afbbda8 Mon Sep 17 00:00:00 2001 From: Zack Piispanen Date: Sun, 5 Apr 2015 23:44:35 -0400 Subject: [PATCH] Finish half implemented new feature where we use bamboo for variables instead of files on the system. --- deploy_release.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deploy_release.py b/deploy_release.py index d7d7fe44..1c420198 100644 --- a/deploy_release.py +++ b/deploy_release.py @@ -52,14 +52,11 @@ branch = os.environ["GIT_BRANCH"] tag_name = os.environ["bamboo_tag_name"] name = os.environ["bamboo_release_name"] body = os.environ["bamboo_release_body"] +token = os.environ["bamboo_github_oauth_password"] #build release file name using the tag, stripping the 'v' off the front ie 'v.1.2.3' => '.1.2.3' resulting in a file called 'tshock.1.2.3.zip' release_name = 'tshock_' + tag_name[1:] + '.zip' -#because we can't find any other secure way to get a token into this script run from bamboo :'( -with open('/home/bamboo/scripts/token.py') as f: - # token = f.read().rsplit('=', 1)[1].strip() - #invoke the mv command on the artifact from bamboo to the new name above subprocess.call('mv tshock_release.zip ' + release_name, shell=True)