Skip to content

Commit

Permalink
JENKINS-45044 Don't display Launcher command line
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphC committed Aug 25, 2017
1 parent 5555a79 commit 6c60600
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -243,7 +243,7 @@ private void deploy(DeploymentTask task, AbstractBuild<?, ?> build, BuildListene
String[] deployCommand = WebLogicDeployer.getWebLogicCommandLine(deployWebLogicDeployerParameters, envVars);
listener.getLogger().println("[WeblogicDeploymentPlugin] - DEPLOYING ARTIFACT...");
deploymentLogOut.write("------------------------------------ ARTIFACT DEPLOYMENT ------------------------------------------------\r\n".getBytes());
int exitStatus = launcher.launch().cmds(deployCommand).envs(envVars).stdout(deploymentLogOut).join();
int exitStatus = launcher.launch().cmds(deployCommand).quiet(true).envs(envVars).stdout(deploymentLogOut).join();
if(exitStatus != 0){
throw new RuntimeException("task completed abnormally (exit code = "+exitStatus+")");
}
Expand Down Expand Up @@ -275,7 +275,7 @@ private void undeploy(DeploymentTask task, AbstractBuild<?, ?> build, BuildListe

deploymentLogOut.write("------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------\r\n".getBytes());
listener.getLogger().println("[WeblogicDeploymentPlugin] - UNDEPLOYING ARTIFACT...");
final Proc undeploymentProc = launcher.launch().cmds(undeployCommand).envs(envVars).stdout(deploymentLogOut).start();
final Proc undeploymentProc = launcher.launch().cmds(undeployCommand).quiet(true).envs(envVars).stdout(deploymentLogOut).start();
undeploymentProc.join();
listener.getLogger().println("[WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY.");
}
Expand Down Expand Up @@ -340,7 +340,7 @@ private void customize(DeploymentTask task, AbstractBuild<?, ?> build, BuildList

deploymentLogOut.write("------------------------------------ TASK EXECUTION ------------------------------------------------\r\n".getBytes());
listener.getLogger().println("[WeblogicDeploymentPlugin] - EXECUTING TASK ...");
int exitStatus = launcher.launch().cmds(executionCommand).envs(envVars).stdout(deploymentLogOut).join();
int exitStatus = launcher.launch().cmds(executionCommand).quiet(true).envs(envVars).stdout(deploymentLogOut).join();
if(exitStatus != 0){
throw new RuntimeException("task completed abnormally (exit code = "+exitStatus+"). Check your Weblogic Deployment logs.");
}
Expand Down

0 comments on commit 6c60600

Please sign in to comment.