Finish half implemented new feature where we use bamboo for variables instead of files on the system.

This commit is contained in:
Zack Piispanen 2015-04-05 23:44:35 -04:00
parent ac5359e4f9
commit 6c27bc74c6

View file

@ -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)