You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 27, 2025. It is now read-only.
-[Use MATLAB in Matrix Build](#use-matlab-in-matrix-build)
16
16
17
17
## Configure Plugin in Web UI
@@ -79,7 +79,7 @@ To configure the plugin for a freestyle project, specify the location where MATL
79
79
* If you add the [**Run MATLAB Command**](#run-matlab-command) build step, enter your commands in the **Command** box.
80
80
81
81
## Set Up Multi-Configuration Project
82
-
The plugin supports [multi-configuration (matrix) projects](https://wiki.jenkins.io/display/JENKINS/Building+a+matrix+project). Multi-configuration projects are useful when builds include similar steps. For example:
82
+
The plugin supports [multi-configuration (matrix) projects](https://plugins.jenkins.io/matrix-project/). Multi-configuration projects are useful when builds include similar steps. For example:
83
83
* The same test suite is run on different platforms (Windows, Linux, and macOS).
84
84
* The same test suite is run against different versions of MATLAB.
85
85
@@ -93,7 +93,7 @@ You can define several axes in the **Configuration Matrix** section. For example
2) In the **Build Environment** section, select **Use MATLAB version** and then specify the locations where MATLAB is installed using the user-defined axis name. In this example, **$VERSION** in the **MATLAB root** box will be replaced by one axis value per build iteration.
96
+
2) In the **Build Environment** section, select **Use MATLAB version** and then specify the locations where MATLAB is installed using the user-defined axis name. In this example, **$VERSION** in the **MATLAB root** box is replaced by one axis value per build iteration.
If you define your Pipeline using scripted syntax, set the PATH environment variable in the `node` block. For example:
146
+
If you define your Pipeline using Scripted Pipeline syntax, set the PATH environment variable in the `node` block. For example:
147
147
148
148
```groovy
149
149
// Scripted Pipeline
@@ -196,7 +196,7 @@ When you use the `runMATLABCommand` step, all of the required files must be on t
196
196
197
197
### Use `runMATLABTests` Step
198
198
199
-
Use the `runMATLABTests` step in your Pipeline to run all tests in your MATLAB project and generate artifacts. MATLAB includes any files in your project that have a `Test` label. If your Pipeline does not leverage a MATLAB project or uses a MATLAB release before R2019a, then MATLAB includes all tests in the the root of your repository including its subfolders.
199
+
Use the `runMATLABTests` step in your Pipeline to run all tests in your MATLAB project and generate artifacts. MATLAB includes any files in your project that have a `Test` label. If your Pipeline does not leverage a MATLAB project or uses a MATLAB release before R2019a, then MATLAB includes all tests in the the root of your repository, including its subfolders.
200
200
201
201
For example, in your `Jenkinsfile`, define a Declarative Pipeline to run the tests in your project and fail the build if any of the tests fails.
202
202
@@ -227,7 +227,7 @@ node {
227
227
228
228
To generate artifacts using the `runMATLABTests` step, provide the step with one or more name-value pair arguments to specify the artifacts and the locations to save them. Use a colon to separate names and values.
229
229
230
-
For example, define a Declarative Pipeline to run the tests in your MATLAB project automatically, and then generate a JUnit test results report and a Cobertura code coverage report at specified locations on the build agent.
230
+
For example, define a Declarative Pipeline to run the tests in your MATLAB project, and then generate a JUnit test results report and a Cobertura code coverage report at specified locations on the build agent.
231
231
232
232
233
233
```groovy
@@ -265,7 +265,7 @@ node {
265
265
| testResultsPDF | Path to write test results report in PDF format (currently not supported on macOS platforms).<br/>**Example:**`'test-results/results.pdf'`|
266
266
| testResultsTAP | Path to write test results report in TAP format.<br/>**Example:**`'test-results/results.tap'`|
267
267
| testResultsJUnit | Path to write test results report in JUnit XML format.<br/>**Example:**`'test-results/results.xml'`|
268
-
| testResultsSimulinkTest | Path to export Simulink Test™ Manager results in MLDATX format (requires Simulink Test license and is supported in MATLAB R2019a or later).<br/>**Example:**`'test-results/results.mldatx'`|
268
+
| testResultsSimulinkTest | Path to export Simulink Test Manager results in MLDATX format (requires Simulink Test license and is supported in MATLAB R2019a or later).<br/>**Example:**`'test-results/results.mldatx'`|
269
269
| codeCoverageCobertura | Path to write code coverage report in Cobertura XML format.<br/>**Example:**`'code-coverage/coverage.xml'`|
270
270
| modelCoverageCobertura | Path to write model coverage report in Cobertura XML format (requires Simulink Coverage™ license and is supported in MATLAB R2018b or later).<br/>**Example:**`'model-coverage/coverage.xml'`|
0 commit comments