我在windowsxp环境下安装了jenkins和websphere。每当我尝试运行构建步骤以通过wsadmin调用WAS部署程序插件来部署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我知道如何在jenkins中更改wsadmin的路径以指定PROGRA~1而不是程序文件cauz,我认为这可能是问题所在。如果我错了,请纠正我
发布于 2014-04-10 19:38:51
为了解决您的问题,您需要在命令中添加引号。
"<WAS_PATH>" -conntype SOAP -host localhost此外,我不建议将WAS安装到Program Files目录或名称中包含空格的目录中。
https://stackoverflow.com/questions/22828734
复制相似问题