简体   繁体   English

Jenkins Websphere部署Wsadmin错误

[英]Jenkins Websphere deploy Wsadmin error

I have jenkins and websphere setup on a windowsxp environment. 我在Windowsxp环境中设置了詹金斯和Websphere。 whenever i try to run the build step to invoke WAS deployer plugin to deploy application.ear through wsadmin I get this following error. 每当我尝试运行构建步骤来调用WAS部署程序插件以通过wsadmin部署application.ear时,都会出现以下错误。

Building in workspace C:\.jenkins\jobs\websphereantdeploy\workspace
Using user admin defined at the build step level
$ C:\Program Files\IBM\WebSphere\AppServer\bin\wsadmin.bat -conntype SOAP -host localhost -port 9080 -user admin -password ******** -lang jacl -f c:/workspace/ex5.jacl C:/workspace/revision_document/build/ant/riversource.ear karanvmxpNode01
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Build step 'IBM WebSphere Application Server 6.x/7.x' marked build as failure
Finished: FAILURE

Any idea how i can change the path for wsadmin in jenkins to specify PROGRA~1 instead of program files cauz i think that might be the issue here. 任何想法我如何可以更改jenkins中wsadmin的路径以指定PROGRA〜1而不是程序文件cauz,我认为这可能是这里的问题。 please do correct me if i am wrong 如果我错了,请纠正我

In order to resolve your problem you need to add quotes in your command. 为了解决您的问题,您需要在命令中添加引号。

"<WAS_PATH>" -conntype SOAP -host localhost

Also, I wouldn't recommend to install WAS into Program Files directory or into directory with spaces in it's name. 另外,我不建议将WAS安装到Program Files目录或名称中带有空格的目录中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM