@@ -267,11 +267,11 @@ def deploy(self):
267267 """Uploads binaries to IBM COS"""
268268 apikey = os .getenv ("IBMCLOUD_APIKEY" )
269269 # if IBMCLOUD_TRACE is true the upload will print out the binary file data to the screen.
270- os .environ ["IBMCLOUD_TRACE" ] = False
270+ os .environ ["IBMCLOUD_TRACE" ] = " False"
271271 if not apikey :
272272 raise Exception ("IBMCLOUD_APIKEY needs to be set to the proper API key first." )
273- login_cmd = ["ibmcloud" , "login" , f"--apikey={ apikey } " ]
274- print (f"[yellow]Running: ibmcloud login --apikey $IBMCLOUD_APIKEY" )
273+ login_cmd = ["ibmcloud" , "login" , f"--apikey={ apikey } " , "-r=us-east" ]
274+ print (f"[yellow]Running: ibmcloud login --apikey $IBMCLOUD_APIKEY -r us-east " )
275275 subprocess .run (login_cmd )
276276 files = glob .glob (os .path .join (self .cwd , 'out' , f"sl-{ self .version } -*" ))
277277 for f in files :
@@ -339,7 +339,7 @@ def runJenkins(self):
339339 print (f"[yellow]Trying to start jenkins job on { jenkinsUrl } " )
340340 print (form_json )
341341 result = requests .post (f"{ jenkinsUrl } /build" , auth = ('cgallo@us.ibm.com' , jenkins_token ), data = {'json' :json .dumps (form_json )})
342- if (reult .status_code == 201 ):
342+ if (result .status_code == 201 ):
343343 print (f"[green] Created Job! Check { jenkinsUrl } " )
344344 else :
345345 print (f"[red]Error: { result .status_code } { result .reason } " )
0 commit comments