Reputation: 4740
I want to simply deploy the war file present on a jenkins slave on a remote tomcat.
I thought this plugin is useful https://wiki.jenkins.io/display/JENKINS/Deploy+Plugin
The console output is as follows:
Building remotely on temporary node (temporary) in workspace /home/ubuntu/workspace/container
[] $ /bin/sh -xe /tmp/jenkins6494228973021674867.sh
Performing Post build task...
Match found for : : True
Logical operation result is TRUE
Running script : echo "running post build task"
[ifx-pre-jill] $ /bin/sh -xe /tmp/jenkins194585219316925654.sh
+ echo running post build task
running post build task
POST BUILD TASK : SUCCESS
END OF POST BUILD TASK : 0
Finished: SUCCESS
I can't see the logs for deployment. Am I missing something?
I tried referring this https://www.jdev.it/deploying-your-war-file-from-jenkins-to-tomcat/, but it does not give me option to enter manager username and password. So, I entered the ssh public key location for the tomcat instance as credentials.
Upvotes: 0
Views: 3782
Reputation: 2682
You can use cURL
to deploy your WAR file to Tomcat.
curl -T "app.war" "http://managerUser:managerPass@http://<TOMCAT_URL>/manager/text/deploy?path=/appContext&update=true"
Upvotes: 2