A "fix" for this issue broke the functionality of the plugin for me.

In src/main/java/org/jenkinsci/plugins/deploy/weblogic/deployer/WebLogicDeployer.java the following line is added:

args.add("\""+ parameter.getSource()+"\"");

The result is that the source parameter is passed with two pairs of quotes (""/path/to/file""), of which the inner pair remains in the String that is being processed by the WebLogic deployer.
This finally results in a FileNotFoundException:

java.io.FileNotFoundException: /"/var/opt/jenkins/workspace/sample-project/target/sample-project-0.1.0-SNAPSHOT.war" (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.(FileInputStream.java:131)
	at weblogic.utils.FileUtils.copy(FileUtils.java:266)
	at weblogic.utils.FileUtils.copy(FileUtils.java:245)
	at weblogic.utils.FileUtils.copy(FileUtils.java:186)
	at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.upload(ServerConnectionImpl.java:849)
	at weblogic.deploy.api.spi.deploy.internal.BasicOperation.uploadFiles(BasicOperation.java:332)
	at weblogic.deploy.api.spi.deploy.internal.BasicOperation.execute(BasicOperation.java:465)
	at weblogic.deploy.api.spi.deploy.internal.BasicOperation.run(BasicOperation.java:178)
	at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.deploy(WebLogicDeploymentManagerImpl.java:390)
	at weblogic.deploy.api.tools.deployer.DeployOperation.execute(DeployOperation.java:51)
	at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:139)
	at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
	at weblogic.utils.compiler.Tool.run(Tool.java:158)
	at weblogic.utils.compiler.Tool.run(Tool.java:115)
	at weblogic.Deployer.run(Deployer.java:74)
	at weblogic.Deployer.main(Deployer.java:55)
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to