Scripting / Automation With Jenkins DevOps

Advertisement

Aniruddha
Joined:
Posts:
2
Location:
India

Scripting / Automation With Jenkins DevOps

Hi Martin Přikryl,
I hope you're doing well!
First of all, I would like to thank you to provide us this brilliant software.
I'm using this application for the last 2 years.
Currently, I'm have implemented Jenkins DevOps tools in my environment.
And In the CI/CD process, the deployment part is only taken care of by WinSCP.
till now I'm using WinSCP below mention scripting for auto deploy.
[option confirm off
option batch abort
open sftp://username:password@server_ip -hostkey="ssh-ed25519 *****"
synchronize -filemask="|.svn/; E:\WorkSpace\PHP\abc\.htaccess; E:\WorkSpace\PHP\abc\wp-config.php" remote "E:\WorkSpace\PHP\abc" /home/project/abc
exit]
But now I need to add this script by in my Jenkins build process. In the time of the intregation, I'm getting one error. I'm attaching the screenshot.
Please help me, it would be very match appreciated.
Thanks In Advance!

Description: This error I'm getting...

error.jpg

Description: This command I'm using...

command.jpg

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,103
Location:
Prague, Czechia

Re: Scripting / Automation With Jenkins DevOps

You have the question all wrong.
It should be like:
"open sftp://username:password@server_ip -hostkey=""ssh-ed25519 *****"""
See https://winscp.net/eng/docs/commandline#syntax
I'm also not sure that you can use the ^ in Jenkins. That's a batch file syntax.

Reply with quote

Advertisement

You can post new topics in this forum