Reputation: 1836
I want to deploy my created war automatically to /tomcat/webapps from jenkins scp plugin.
Hostname-deploy port-22 repository- "ipaddress:8080"/usr/bin/scp
Username-jenkins
Error here "Cant connect to server"
password-jenkins
scp site - deploy
file to upload
source - http://"ip:8080"/var/lib/jenkins/workspace/WebWarDemo/source/**
destination - http://"ip:8080"/usr/share/tomcat6/webapps/
above is my configuration for scp plugin but i am getting error in first configuration as shown. but when i tried to run the another error is "jenkins scp com.jcraft.jsch.jschexception auth cancel" i tried so many times changing user name no effect plz suggest anything
I am entering username and password of jenkins server user.
Upvotes: 0
Views: 1620
Reputation: 159
Make sure of the following things:
Login to jenkins as jenkins user and run the following
ssh repouser@repository server
What do you get?
Let me know if you have ensured these. Will take it ahead from there
Upvotes: 1