Jenkins 如何编写dsl以使用pathFilters为Perforce流创建scm同步?
我们需要编写一个DSL,以便将Performce流与一些过滤器同步。我找不到任何dsl的例子,它同步一个perforce流,并添加一些过滤器来排除代码生成(如果代码提交到流中的某些文件夹)。下面的代码使用流名称设置scmJenkins 如何编写dsl以使用pathFilters为Perforce流创建scm同步?,jenkins,jenkins-pipeline,perforce,dsl,jenkins-job-dsl,Jenkins,Jenkins Pipeline,Perforce,Dsl,Jenkins Job Dsl,我们需要编写一个DSL,以便将Performce流与一些过滤器同步。我找不到任何dsl的例子,它同步一个perforce流,并添加一些过滤器来排除代码生成(如果代码提交到流中的某些文件夹)。下面的代码使用流名称设置scm pipelineJob('example444444') { definition { cpsScm { scm { perforceP4('creds') { workspace { manu
pipelineJob('example444444') {
definition {
cpsScm {
scm {
perforceP4('creds') {
workspace {
manual('ws_name', '//streamname/mainline/abc/... //ws_name/...')
}
configure {
node - >
node / workspace / spec / streamName('//streamname/mainline')
}
}
}
scriptPath("abc/JenkinsFile")
}
}
}