[TRBS][Updated jira issue receiver] 45/140245/3
authorSanghoon Lee <shooney.lee@samsung.com>
Mon, 24 Jul 2017 08:01:07 +0000 (17:01 +0900)
committerLee Sanghoon <shooney.lee@samsung.com>
Mon, 24 Jul 2017 08:03:16 +0000 (08:03 +0000)
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

index 7eadf84..f78e258 100644 (file)
@@ -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" )