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

Commit d780380

Browse files
committed
Update README for Matrix build support.
1 parent 31d3b20 commit d780380

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,51 @@ This option enables you to develop your custom MATLAB commands for running tests
6060

6161
![new_custom_script_example](https://user-images.githubusercontent.com/47204011/55625021-32904400-57c5-11e9-86b7-478b930796c0.png)
6262

63+
## Configuring "Multi-configuration"(matrix) project.
64+
Jenkins plugin for MATLAB can be configured to run "Multi-configuration" (matrix) projects. Which allows user to run the same build steps with different configurations, such as testing on multiple environments or multiple MATLAB versions installed on the system.
65+
66+
#### Matrix build for "Automatic" option.
67+
68+
1) Create a "Multi-configuration" project.
69+
70+
![image](https://user-images.githubusercontent.com/47204011/62458632-0e586a00-b79b-11e9-8611-3671adb8c289.png)
71+
72+
2) Add User-defined axis for different MATLAB versions as shown below.
73+
74+
![image](https://user-images.githubusercontent.com/47204011/62459358-c6d2dd80-b79c-11e9-90dc-37891b8179ea.png)
75+
76+
3) Replace the user defined axis variable in MATLAB root appropriately.
77+
78+
![image](https://user-images.githubusercontent.com/47204011/62459137-3c8a7980-b79c-11e9-9bee-305b4cabfd42.png)
79+
80+
4) Save and run the build.
81+
82+
#### Matrix build for "Custom" option.
83+
84+
1) Create a "Multi-configuration" project.
85+
86+
![image](https://user-images.githubusercontent.com/47204011/62458632-0e586a00-b79b-11e9-8611-3671adb8c289.png)
87+
88+
2) Add User-defined axis for different MATLAB versions as shown below.
89+
90+
![image](https://user-images.githubusercontent.com/47204011/62459358-c6d2dd80-b79c-11e9-90dc-37891b8179ea.png)
91+
92+
3) Add another User-defined axis for custom commands as shown below.
93+
94+
![image](https://user-images.githubusercontent.com/47204011/62459898-22519b00-b79e-11e9-8021-a27ab8d43001.png)
95+
96+
4) Replace the user defined axis variable in MATLAB root appropriately.
97+
98+
![image](https://user-images.githubusercontent.com/47204011/62459137-3c8a7980-b79c-11e9-9bee-305b4cabfd42.png)
99+
100+
5) Select "Custom" option from "Test mode" drop-down and replace user defined axis variable for custom command appropriately.
101+
102+
![image](https://user-images.githubusercontent.com/47204011/62460012-6e9cdb00-b79e-11e9-92a4-609c6201dc67.png)
103+
104+
4) Save and run the build.
105+
106+
107+
Note: Axis variables can be replaced in either "$VAR" or "${VAR}" formats. Do not use complete MATLAB root path as axis values. Multi-configuration project creates separate workspace folder for each user defined axis values with same name, and file separators in complete path will cause Jenkins build to fail as folder creation fails.
63108

64109
## Contact Us
65110
If you have any questions or suggestions, please feel free to contact MathWorks.

0 commit comments

Comments
 (0)