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 {
211
211
" }\n " +
212
212
" }\n " +
213
213
"}" ;
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
+
215
219
jenkins .assertBuildStatus (Result .SUCCESS ,build );
216
220
jenkins .assertLogContains ("test-results/results.mldatx" , build );
217
221
jenkins .assertLogContains ("model-coverage/coverage.xml" , build );
@@ -223,7 +227,7 @@ public void verifyCustomFilenamesForArtifactsPipeline() throws Exception {
223
227
}
224
228
225
229
@ Test
226
- public void verifyCOverageReportDoesNotIncludeOtherSourceFolder () throws Exception {
230
+ public void verifyCoverageReportDoesNotIncludeOtherSourceFolder () throws Exception {
227
231
this .buildWrapper .setMatlabBuildWrapperContent (new MatlabBuildWrapperContent (Message .getValue ("matlab.custom.location" ), Utilities .getMatlabRoot ()));
228
232
project .getBuildWrappersList ().add (this .buildWrapper );
229
233
You can’t perform that action at this time.
0 commit comments