@@ -56,12 +56,13 @@ def run_pipeline(self,
5656 def _check_pipeline_response (self , response : requests .Response ):
5757 delay = 0
5858 state_url = response .json ()["_links" ]["self" ]["href" ]
59- print ("response check from our end " , response .status_code )
59+ print ("response check from our Start " , response .status_code , response . json ()[ "state" ] )
6060 while response .status_code == 200 and response .json ()["state" ] == "inProgress" :
6161 time .sleep (self .api_request_delay )
6262 delay = delay + self .api_request_delay
6363 state_response = self .api_request (state_url )
6464 self .print_response (state_response , f"Response from { state_url } after { delay } seconds" )
65+ print ("response check from our end" , response .status_code , response .json ()["state" ])
6566 return response .json ()["result" ]
6667
6768 def _build_request_body (self , pipeline_branch : str ):
@@ -111,9 +112,6 @@ def get_headers():
111112 return _headers
112113
113114 _params = {"api-version" : api_version , "NOTIFY_GITHUB_REPOSITORY" : self .notify_github_repo , "NOTIFY_COMMIT_SHA" : self .notify_commit_sha , "UTILS_PR_NUMBER" : self .utils_pr_number }
114- # _params = {"NOTIFY_GITHUB_REPOSITORY": self.notify_github_repo}
115- # _params = {"NOTIFY_COMMIT_SHA": self.notify_commit_sha}
116- # _params = {"UTILS_PR_NUMBER": self.utils_pr_number}
117115 _params .update (params or {})
118116 action = getattr (requests , method )
119117
0 commit comments