나는 ANT로만 문제를 해결할 수있었습니다. 젠킨스의 jboss 플러그인이 작동한다고 생각하는 다음 사람에게 도움이되기를 바랍니다. 확실히 v7.1.1에서는 그렇지 않습니다.
그래서 해결 방법 :
확인 예, 모든 배포
을 보스를 중지하고 삭제하면 보스가
<condition property="jboss.online">
<socket server="localhost" port="8080"/>
</condition>
를 응답하는 경우는
<target name="stop" depends="-check-status" if="${start.successful}">
<java jar="${jboss.home}/jboss-modules.jar" fork="true">
<arg line="-mp ${jboss.home}/modules org.jboss.as.cli -c command=:shutdown" />
</java>
<sleep seconds="10" />
<delete quiet="false" includeEmptyDirs="true">
<fileset dir="${jboss.home}/standalone/deployments/">
<include name="**/*" />
</fileset>
</delete>
</target>
은 모두 복사 귀와 전쟁에서 배포 한
<copy file="${publish.dir}/main.ear" overwrite="true" todir="${jboss.home}/standalone/deployments" />
<copy file="${publish.dir}/first.war" overwrite="true" todir="${jboss.home}/standalone/deployments" />
<copy file="${publish.dir}/second.war" overwrite="true" todir="${jboss.home}/standalone/deployments" />
시작 JBoss의
<exec executable="${jboss.home}/bin/standalone.bat" spawn="true">
배포 기다린 시작하는 단위 테스트
<!-- startup, deploy -->
<target name="deploy-war" description="deploy war file" depends="-start">
<condition property="jboss.online">
<socket server="localhost" port="8080"/>
</condition>
<echo message="${jboss.online}"> ONLINE STATUS</echo>
<sequential>
<echo>WAITING FOR DEPLOYMENT...</echo>
<waitfor>
<or>
<available file="${jboss.home}/standalone/deployments/main.ear.deployed" />
<available file="${jboss.home}/standalone/deployments/main.ear.failed" />
</or>
</waitfor>
<condition property="deployed">
<available file="${jboss.home}/standalone/deployments/main.ear.deployed" />
</condition>
<antcall target="deploy.failed"/>
<antcall target="deploy.success"/>
<echo>+----------------------------+</echo>
<echo>| W A R D E P L O Y E D |</echo>
<echo>+----------------------------+</echo>
</sequential>
</target>
<!-- Deploy success, run unit tests -->
<target name="deploy.success" if="deployed">
<echo>DEPLOY SUCCESS</echo>
<sleep seconds="10" />
<antcall target="unit-test.-multi-only-unit-test-noreport"></antcall>
</target>
<!-- Deploy failed, fail -->
<target name="deploy.failed" unless="deployed">
<echo>DEPLOY FAILED</echo>
<fail/>
</target>
아무것도 젠킨스는 오류에 대한 메일을 보낼 수 있도록, 개미 오류 호출에 실패하면
.
내가 내 코드를 리팩토링 할 때 내가
지금까지 내가 개미 스크립트 단지 해결 방법을 생각하고 최종 버전을 게시 할 예정입니다, 난 아무것도 찾을 수있는 더 좋은 기회를 볼 수 없습니다. – CsBalazsHungary