我正在尝试创建一个创建Maven项目的Jenkins Job DSL。创建的Maven项目应该执行我的Bitbucket Git仓库中的另一个Job DSL。我很难找到实现这一目标所需的正确的Job DSL标签/方法。任何人都可以帮我解决这个问题吗?
mavenJob('CD/cd-parent-master') {
scm {
git {
remote {
name('origin')
url('-------')
credentials('Bitbucket_Access')
}
}
}
description 'MavenJob which calls another Job DSL'
/* Tag which specifies that the created MavenJob should process another Job
DSL and the location of that Job DSL on my Jenkins FileSystem.*/
wrappers {
mavenRelease { }
}
jdk('JDK 8')
mavenInstallation('connecteddrive Maven 3')
goals('clean deploy')
}