This repository was archived by the owner on Mar 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/test/java/com/mathworks/ci/systemtests Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,11 @@ public void verifyCustomFilenamesForArtifactsPipeline() throws Exception {
211211 " }\n " +
212212 " }\n " +
213213 "}" ;
214- WorkflowRun build = getPipelineBuild (script );
214+
215+ WorkflowJob project = jenkins .createProject (WorkflowJob .class );
216+ project .setDefinition (new CpsFlowDefinition (script ,true ));
217+ WorkflowRun build = project .scheduleBuild2 (0 ).get ();
218+
215219 jenkins .assertBuildStatus (Result .SUCCESS ,build );
216220 jenkins .assertLogContains ("test-results/results.mldatx" , build );
217221 jenkins .assertLogContains ("model-coverage/coverage.xml" , build );
@@ -223,7 +227,7 @@ public void verifyCustomFilenamesForArtifactsPipeline() throws Exception {
223227 }
224228
225229 @ Test
226- public void verifyCOverageReportDoesNotIncludeOtherSourceFolder () throws Exception {
230+ public void verifyCoverageReportDoesNotIncludeOtherSourceFolder () throws Exception {
227231 this .buildWrapper .setMatlabBuildWrapperContent (new MatlabBuildWrapperContent (Message .getValue ("matlab.custom.location" ), Utilities .getMatlabRoot ()));
228232 project .getBuildWrappersList ().add (this .buildWrapper );
229233
You can’t perform that action at this time.
0 commit comments