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

Commit 4d4bf0f

Browse files
author
Nikhil Bhoski
committed
removed redundant launcher object.
1 parent bb089ae commit 4d4bf0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ private synchronized int execMatlabCommand(FilePath workspace, Launcher launcher
125125
try {
126126
matlabLauncher = getProcessToRunMatlabCommand(workspace, launcher, listener, envVars,
127127
"cd('"+ uniqeTmpFolderPath.getRemote() +"');"+ uniqueCommandFile, uniqueTmpFldrName);
128-
launcher.launch().pwd(uniqeTmpFolderPath).envs(envVars);
128+
129129
listener.getLogger()
130130
.println("#################### Starting command output ####################");
131-
return matlabLauncher.join();
131+
return matlabLauncher.pwd(workspace).join();
132132

133133
} catch (Exception e) {
134134
listener.getLogger().println(e.getMessage());

0 commit comments

Comments
 (0)