Finish half implemented new feature where we use bamboo for variables instead of files on the system.
This commit is contained in:
parent
ac5359e4f9
commit
6c27bc74c6
1 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue