Skip to content

Instantly share code, notes, and snippets.

@ECiurleo
ECiurleo / groovySFTPfileupload
Last active November 15, 2017 18:14
SoapUI Groovy Script compatible SFTP file upload
@Grab(group='commons-net', module='commons-net', version='2.0')
@Grab(group='com.jcraft', module='jsch', version='0.1.51')
import org.apache.commons.net.ftp.FTPSClient
import com.jcraft.jsch.*;
/////////////////////////////////////////////////////////////
/////////////////////////Configs/////////////////////////////
/////////////////////////////////////////////////////////////
String ftpdomain = "yourdomain.org"