@@ -134,30 +134,30 @@ def generate_report(self, key):
134134
135135 if env .definition .is_monitored :
136136 build_dir = os .path .join (os .path .dirname (self .api .vcm_file ), env .definition .original_environment_directory )
137- # print("Monitored: ", build_dir, env.name)
137+ print ("Monitored: " , build_dir , env .name )
138138 else :
139139 build_dir = self .api .project .workspace + '/' + env .relative_working_directory
140- # print("Migrated : ", build_dir, env.name)
140+ print ("Migrated : " , build_dir , env .name )
141141
142142 if len (key .split ("/" )) != 3 :
143143 comp , ts , group , env_name = key .split ("/" )
144144 else :
145145 comp , ts , env_name = key .split ("/" )
146146
147- report_name = " management/" + comp + "_" + ts + "_" + env_name + ".html"
147+ report_name = self . jenkins_workspace + "/ management/" + comp + "_" + ts + "_" + env_name + ".html"
148148
149149 try :
150150 cmd = ""
151151
152152 if isinstance (env .api ,CoverApi ):
153- cmd = self .VCD + "/clicast -e " + env .name + " COVER REPORT AGGREGATE " + os . getcwd () + "/" + report_name
154- # print("Report command: "+ cmd + " in " + build_dir)
155- result = subprocess .run (cmd .split (), capture_output = True , text = True , cwd = self . jenkins_workspace )
153+ cmd = self .VCD + "/clicast -e " + env .name + " COVER REPORT AGGREGATE " + report_name
154+ print ("Report command: " + cmd + " in " + build_dir )
155+ result = subprocess .run (cmd .split (), capture_output = True , text = True , cwd = build_dir )
156156
157157 elif isinstance (env .api ,UnitTestApi ):
158- cmd = self .VCD + "/clicast -e " + env .name + " REPORT CUSTOM FULL " + os . getcwd () + "/" + report_name
159- # print("Report command: "+ cmd + " in " + build_dir)
160- result = subprocess .run (cmd .split (), capture_output = True , text = True , cwd = self . jenkins_workspace )
158+ cmd = self .VCD + "/clicast -e " + env .name + " REPORT CUSTOM FULL " + report_name
159+ print ("Report command: " + cmd + " in " + build_dir )
160+ result = subprocess .run (cmd .split (), capture_output = True , text = True , cwd = build_dir )
161161
162162 else :
163163 return "Error: Cannot find the environment " + build_dir + "/" + env .name + ".vcp/.vce): " + cmd
0 commit comments