Websphere 无法通过脚本卷展应用程序版本

Websphere 无法通过脚本卷展应用程序版本,websphere,websphere-8,Websphere,Websphere 8,我正在WAS ND 8.5上尝试使用以下命令推出当前版本的应用程序 <target name="rolloutCurrentVersion"> <wsadmin host="${hostName}" port="${connPort}" user="${userId}" password="${password}" conntype="S

我正在WAS ND 8.5上尝试使用以下命令推出当前版本的应用程序

<target name="rolloutCurrentVersion">
        <wsadmin
            host="${hostName}" 
            port="${connPort}" 
            user="${userId}" 
            password="${password}"
            conntype="SOAP"
            lang="jacl"
            command="$AdminTask rolloutEdition {-appName ${appName} -edition 4.0 -params '{rolloutStrategy grouped}{resetStrategy soft}{groupSize 1}{drainageInterval 60}'}"
        />
    </target>

我已经在命令中提到了-appName参数。语法有问题吗?我使用文档来生成命令。

我必须更改命令才能使其正常工作。我没有用引号传递参数,而是用大括号传递值。e、 g

我通过了:

而不是:


请尝试通过wsadmin直接调用它进行测试,而不是ant,并查看它是否有任何区别。另外,您是否确定已正确设置变量,因为My_App_Cluster听起来更像群集名称而不是应用程序名称。@如果变量设置正确,则表示已在群集上部署应用程序。我直接通过wsadmin运行了该命令,但它显示了相同的错误消息。
[wsadmin] WASX7015E: Exception running command: "$AdminTask rolloutEdition {-appName My_App_Cluster -edition 4.0 -params '{rolloutStrategy grouped}{resetStrategy soft}{groupSize 1}{drainageInterval 60}'}"; exception information:
[wsadmin] com.ibm.websphere.management.cmdframework.RequiredParameterNotFoundException: ADMF0002E: Required parameter appName is not found for command rolloutEdition.
command="$AdminTask rolloutEdition {-appName ${appName} -edition 4.0 -params {{rolloutStrategy grouped}{resetStrategy soft}{groupSize 1}{drainageInterval 60}}}"
command="$AdminTask rolloutEdition {-appName ${appName} -edition 4.0 -params '{rolloutStrategy grouped}{resetStrategy soft}{groupSize 1}{drainageInterval 60}'}"