Use environment variables from bamboo, maybe?

This commit is contained in:
Zack 2015-02-21 21:17:44 -05:00
parent 349ac17388
commit 44c8f40a6a

View file

@ -3,9 +3,9 @@ import json
import sys
import os
branch = sys.argv[1]
tag_name = sys.argv[2]
name = sys.argv[3]
branch = os.environ["GIT_BRANCH"]
tag_name = os.environ["bamboo_tag_name"]
name = os.environ["bamboo_release_name"]
#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: