From 71f6611082ee5728b843f582955b1a1b45bb1502 Mon Sep 17 00:00:00 2001 From: Sanghoon Lee Date: Mon, 24 Jul 2017 17:01:07 +0900 Subject: [PATCH] [TRBS][Updated jira issue receiver] 1. Updated jira issue receiver due to change the jira policy. 2. Received as file parameter. Change-Id: I77274efd568a011376b93bf023d752997ad30b06 --- job_litmus_jira_issue_receiver.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/job_litmus_jira_issue_receiver.py b/job_litmus_jira_issue_receiver.py index 7eadf84..f78e258 100644 --- a/job_litmus_jira_issue_receiver.py +++ b/job_litmus_jira_issue_receiver.py @@ -86,15 +86,16 @@ if __name__ == "__main__": - - # load received data if CONFIG['BASE']['location'] != 'internal': - trbs_data = os.getenv('TRBS_DATA').replace(' ', '+') + trbs_data = os.getenv('file0') if trbs_data: - RAW = unicode_to_str(json.loads(base64.b64decode(trbs_data))) + f = open( 'file0', 'r') + RAW = unicode_to_str(json.loads(f.read())) + f.close() + else: sys.exit( "[Error] TRBS_DATA is empty!\n" ) -- 2.7.4