Skip to content

Commit 75ec75a

Browse files
committed
Update for vc_scripts
1 parent d2c9796 commit 75ec75a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/main/resources/scripts/prevcast_parallel_build_execute.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@
66
from datetime import timedelta
77
from io import open
88

9+
# adding path
10+
workspace = os.getenv("WORKSPACE")
11+
if workspace is None:
12+
workspace = os.getcwd()
13+
14+
jenkinsScriptHome = os.path.join(workspace,"vc_scripts")
15+
python_path_updates = jenkinsScriptHome
16+
sys.path.append(python_path_updates)
17+
18+
# needed because vc18 vpython does not have bs4 package
19+
if sys.version_info[0] < 3:
20+
python_path_updates += os.sep + 'vpython-addons'
21+
sys.path.append(python_path_updates)
22+
923
try:
1024
from vector.apps.DataAPI.vcproject_api import VCProjectApi
1125
from vector.apps.DataAPI.vcproject_models import VCProject

src/main/resources/scripts/vcast_exec.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
import cobertura
3030
import generate_lcov
31+
import patch_rgw_directory as rgw
3132

3233
try:
3334
import generate_results
@@ -294,6 +295,10 @@ def runReports(self):
294295
if self.fullstatus:
295296
self.manageWait.exec_manage_command ("--full-status=" + self.mpName + "_full_status_report.html")
296297
self.needIndexHtml = True
298+
299+
def exportRgw(self):
300+
rgw.updateReqRepo(VC_Manage_Project=self.FullMP, VC_Workspace=os.getcwd() , top_level=False)
301+
self.manageWait.exec_manage_command ("--clicast-args rgw export")
297302

298303
def runExec(self):
299304

@@ -355,6 +360,7 @@ def runExec(self):
355360
metricsGroup.add_argument('--cobertura_extended', help='Generate coverage results in extended Cobertura xml format', action="store_true", default = False)
356361
metricsGroup.add_argument('--lcov', help='Generate coverage results in an LCOV format', action="store_true", default = False)
357362
metricsGroup.add_argument('--junit', help='Generate test results in Junit xml format', action="store_true", default = False)
363+
metricsGroup.add_argument('--export_rgw', help='Export RGW data', action="store_true", default = False)
358364
metricsGroup.add_argument('--junit_use_cte_for_classname', help=argparse.SUPPRESS, action="store_true", dest="use_cte")
359365
metricsGroup.add_argument('--sonarqube', help='Generate test results in SonarQube Generic test execution report format (CppUnit)', action="store_true", default = False)
360366
metricsGroup.add_argument('--pclp_input', help='Generate static analysis results from PC-lint Plus XML file to generic static analysis format (codequality)', action="store", default = None)
@@ -427,3 +433,6 @@ def runExec(self):
427433
if vcExec.needIndexHtml:
428434
vcExec.generateIndexHtml()
429435

436+
if args.export_rgw:
437+
vcExec.exportRgw()
438+

0 commit comments

Comments
 (0)