如何编写dsl以使用pathFilters为Perforce Stream创建scm同步?

时间:2018-02-15 10:05:20

标签: jenkins jenkins-pipeline perforce dsl jenkins-job-dsl

我们需要编写DSL以便使用某些过滤器同步perforce流。我找不到dsl同步perforce流的任何示例,并添加一些过滤器以排除代码构建,如果对流中的某些文件夹进行了代码提交。以下代码使用流名称设置scm ..

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")
    }
  }
}

0 个答案:

没有答案
相关问题