I am going to deploy a war file from bamboo server to a different server by using SSH Task. When I run the plan it was showing...
Failed to connect to host
net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods
But if I am running the same command through putty it can deploy the war file to that particular server.
I am using the below mentioned command.
scp /apps/bamboo.home/xml-data/build-dir/3604482/SCI-SER-JOB1/ServicehubV0.2/target/ServicehubV0.2-1.0.0-SNAPSHOT.war root@10.10.16.47:/apps/liferay-portal-6.2-ce-ga6/deploy/
Again,
If I perform the same job through a SCP Task it was showing " There were no files to upload."
In SCP Task I am selecting Artifact- Local Files
Local File Path- /apps/bamboo.home/xml-data/build-dir/3604482/SCI-SER-JOB1/ServicehubV0.2/target/ServicehubV0.2
and remote path- /apps/liferay-portal-6.2-ce-ga6/deploy/
My bamboo version- 5.10.2
This is a Liferay Project
Project is maven build
Project repository GitLab.
Is there any idea why I am getting this error?
Thanks in advance.