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

Commit 0efb33a

Browse files
author
Nikhil Bhoski
committed
changed bin path logic as per review
1 parent b6c8f9a commit 0efb33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/mathworks/ci/UseMatlabVersionBuildWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public synchronized void setUp(Context context, Run<?, ?> build, FilePath worksp
144144
// Add "matlabroot" without bin as env variable which will be available across the build.
145145
context.env("matlabroot", getLocalMatlab());
146146
// Add matlab bin to path to invoke MATLAB directly on command line.
147-
context.env("PATH+matlabroot", getLocalMatlab() + "/bin");
147+
context.env("PATH+matlabroot", matlabExecutablePath.getParent().getRemote());
148148
}
149149

150150
private String getNodeSpecificExecutable(Launcher launcher) {

0 commit comments

Comments
 (0)