Я всегда получаю это исключение при попытке загрузить файл с удаленного SFTP-сервера.Не могли бы вы помочь выяснить причину.
an exception which occurred:
in field com.cloudbees.groovy.cps.impl.BlockScopeEnv.locals
in object com.cloudbees.groovy.cps.impl.BlockScopeEnv@2c6df6df
in field com.cloudbees.groovy.cps.impl.CallEnv.caller
in object com.cloudbees.groovy.cps.impl.FunctionCallEnv@7898f23e
in field com.cloudbees.groovy.cps.Continuable.e
in object org.jenkinsci.plugins.workflow.cps.SandboxContinuable@2d32406e
in field org.jenkinsci.plugins.workflow.cps.CpsThread.program
in object org.jenkinsci.plugins.workflow.cps.CpsThread@f31965
in field org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.threads
in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@21a061fc
in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@21a061fc
Мой скрипт:
stage ("Checkout") {
checkout scm
echo "Check out SCM => Done"
def jsonSlurper = new JsonSlurper()
File fl = new File("${env.WORKSPACE}/station_sw.config")
def obj = jsonSlurper.parse(fl)
echo "Print output..."
def sftp_server = obj.sftp_server
def stations = obj.stations
//echo "${sftp_server}"
//echo "${stations}"
echo "Parsing Configuration => Done"
sshGet remote: remote, from: '/home/ITS3/Build_Release/abc.zip', into: 'abc.zip', override: true
}