从ant脚本中,我可以使用带有worklightServerhost属性的app-部署器、适配器-部署程序来发布应用程序
<!-- Deploys adapter file to configured host & project -->
<target name="adapterDeployer" depends="init">
<echo.timestamp message="Deploying adapter ${adapterFile}" />
<adapter-deployer worklightServerHost="${WLSERVERHOST}/${project.name}"
deployable="${adapterFile}" />
</target>为什么,当我想发布项目WAR文件时,我需要引用installdir?我的CI环境没有运行environment。
<target name="deployWar" depends="init">
<updateapplicationserver>
<project warfile="${build.dir}/${project.name}.war" />
<applicationserver>
<websphereApplicationserver installdir="WTH this is a CI server" />
</applicationserver>
</updateapplicationserver>
</target>有没有捷径,或者我需要把我的战争到另一个盒子,运行一个不同的蚂蚁脚本?
发布于 2014-05-21 06:18:57
我们有一个类似的场景,我们正在从Jenkins以自动化的方式部署,答案基本上是‘是’;您需要将您的WAR配置到目标框,并使用一个小的ANT脚本来部署它,然后运行该‘本地’(我们使用一个远程SSH命令来完成这个任务)。当您使用<adapter-deployer> (或<app-deployer>)时,您基本上是连接到一个现有的已部署的Worklight服务器(实质上是.war文件)。但是,首先在WAR文件上使用<updateapplicationserver> ANT任务(实际上,在我们的场景中,我们使用<unconfigureapplicationserver>,然后是<configureapplicationserver>,因为这也提供了更新JNDI属性的机会)。
https://stackoverflow.com/questions/23662851
复制相似问题