Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 50c54c1

Browse files
authored
revision based on technical review
1 parent 43fc1d1 commit 50c54c1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CONFIGDOC.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ When Jenkins executes MATLAB-related steps in your Pipeline, it uses the first M
125125
To update the system PATH environment variable using Declarative Pipeline syntax, use an `environment` block in your `Jenkinsfile`. For example, prepend MATLAB R2019a to the system PATH environment variable and use it to run your command.
126126

127127
```groovy
128+
// Declarative Pipeline
128129
pipeline {
129130
agent any
130131
environment {
@@ -145,6 +146,7 @@ pipeline {
145146
If you define your Pipeline using scripted syntax, set the PATH environment variable in the `node` block. For example:
146147

147148
```groovy
149+
// Scripted Pipeline
148150
node {
149151
env.PATH = "C:\\Program Files\\MATLAB\\R2019a\\bin;${env.PATH}" //Windows agent
150152
// env.PATH = "/usr/local/MATLAB/R2019a/bin:${env.PATH}" //Linux agent
@@ -165,6 +167,7 @@ For example, in your `Jenkinsfile`, define a Declarative Pipeline to run the com
165167

166168

167169
```groovy
170+
// Declarative Pipeline
168171
pipeline {
169172
agent any
170173
stages{
@@ -181,6 +184,7 @@ pipeline {
181184
You also can use `runMATLABCommand` in a Scripted Pipeline.
182185

183186
```groovy
187+
// Scripted Pipeline
184188
node {
185189
runMATLABCommand 'myscript'
186190
}
@@ -198,6 +202,7 @@ For example, in your `Jenkinsfile`, define a Declarative Pipeline to run the tes
198202

199203

200204
```groovy
205+
// Declarative Pipeline
201206
pipeline {
202207
agent any
203208
stages{
@@ -214,6 +219,7 @@ pipeline {
214219
Use the `runMATLABTests` step in a Scripted Pipeline to run the tests in your project.
215220

216221
```groovy
222+
// Scripted Pipeline
217223
node {
218224
runMATLABTests()
219225
}
@@ -225,6 +231,7 @@ node {
225231

226232

227233
```groovy
234+
// Declarative Pipeline
228235
pipeline {
229236
agent any
230237
stages{
@@ -242,6 +249,7 @@ pipeline {
242249
Define a Scripted Pipeline to run your tests and generate artifacts.
243250

244251
```groovy
252+
// Scripted Pipeline
245253
node {
246254
runMATLABTests(testResultsJUnit: 'test-results/results.xml',
247255
codeCoverageCobertura: 'code-coverage/coverage.xml')
@@ -268,6 +276,7 @@ Similar to multi-configuration projects, you can use MATLAB as part of a [matrix
268276
Your Pipeline must have a `matrix` section to define the possible name-value combinations that should run in parallel. This example shows how to define a Pipeline to run your MATLAB code and generate test artifacts using MATLAB R2018b, R2019a, and R2020a.
269277

270278
```groovy
279+
// Declarative Pipeline
271280
pipeline {
272281
agent any
273282
stages {

0 commit comments

Comments
 (0)