tomcat - Error while deploying WAR in Jenkins -
i below error when trying deploy war using jenkins.
started user anoop [envinject] - loading node environment variables. building in workspace c:\users\anoop\.jenkins\workspace\automateddeploymenttest deploying c:\users\anoop\.jenkins\workspace\automateddeploymenttest\sample.war container tomcat 7.x remote error: build step failed exception org.codehaus.cargo.container.containerexception: failed redeploy [c:\users\anoop\.jenkins\workspace\automateddeploymenttest\sample.war] @ org.codehaus.cargo.container.tomcat.internal.abstracttomcatmanagerdeployer.redeploy(abstracttomcatmanagerdeployer.java:189) @ hudson.plugins.deploy.cargocontaineradapter.deploy(cargocontaineradapter.java:73) @ build step 'deploy war/ear container' marked build failure finished: failure
please me fix issue.
in conf/tomcat-user please add following :
<user username="anoop" password="yourpassword" roles="manager-script"/>
in jenkins please add following,
ear/war file: **/*.war context path: sample tomcat url : http://localhost:8080
Comments
Post a Comment