我在我的脚本中使用了listgitBranch插件,但它不能正常工作,并且我遇到了以下错误。脚本是这样的:
- script:
pipelineJob('app-Build-and-Deploy') {
parameters {
listGitBranches(branchFilter: '(.*)/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'BRANCH', remoteURL: 'git@git.mygit.com:app/my_app.git
}
definition { ...
错误:
groovy.lang.MissingMethodException: No signature of method: javaposse.jobdsl.dsl.helpers.BuildParametersContext.listGitBranches() is applicable for argument types: (java.util.LinkedHashMap) values: [[branchFilter:(.*)/(.*), defaultValue:master, name:BRANCH, type:BRANCH, ...]]
1条答案
按热度按时间pbossiut1#
以下是正确的格式: