【发布时间】:2018-12-13 12:33:31
【问题描述】:
"hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: org.jenkinsci.plugins.docker.workflow.Docker.minus() is applicable for argument types: (java.lang.String) values: [/var/lib/jenkins] Possible solutions: find(), image(java.lang.String), is(java.lang.Object), find(groovy.lang.Closure), any(), build(java.lang.String)"
以下是我的脚本,为什么会出现上述错误?请帮我解决这个错误
node{
stage('Login to server') {
sshagent(['ssh-login']) {
sh 'ssh -o StrictHostKeyChecking=no Server_name'
withCredentials([string(credentialsId: 'dockerhubpwd', variable: 'docker-pwd')]) {
sh "docker -u my_username -p ${docker-pwd}"
}
}
} }
【问题讨论】:
标签: jenkins jenkins-pipeline dockerhub