【发布时间】:2019-12-30 06:57:14
【问题描述】:
我正在尝试运行 Jenkins 作业以将我的 war 文件发布到 Artifactory。
我正在使用 Declarative Pipeline 语法
// ... previous stages
stage('rtServer to Artifactory'){
steps {
rtServer (
id: 'Artifactory-MC',
url: 'http://my-artifactory-domain/artifactory',
credentialsId: 'credentialsID',
timeout = 100
)
}
}
... //rtUpload stages and post block
当我运行 Jenkins 作业时,我收到以下错误:
java.lang.NoSuchMethodError: No such DSL method 'rtServer' found among steps
【问题讨论】:
标签: jenkins jenkins-pipeline artifactory