jenkins.model.Jenkins.createLauncher()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(193)

本文整理了Java中jenkins.model.Jenkins.createLauncher()方法的一些代码示例,展示了Jenkins.createLauncher()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jenkins.createLauncher()方法的具体详情如下:
包路径:jenkins.model.Jenkins
类名称:Jenkins
方法名:createLauncher

Jenkins.createLauncher介绍

暂无

代码示例

代码示例来源:origin: jenkinsci/mercurial-plugin

@Before
public void setUp() throws Exception {
  this.mercurialInstallation = new MercurialInstallation(
      INSTALLATION, "",
      "hg", false, true, false, Collections
      .<ToolProperty<?>> emptyList());
  this.listener = new StreamTaskListener(System.out, Charset.defaultCharset());
  this.launcher = j.jenkins.createLauncher(listener);
  this.vars = new EnvVars();
}

代码示例来源:origin: jenkinsci/mercurial-plugin

launcher = jenkins.createLauncher(listener);
CachedRepo possiblyCachedRepo = cachedSource(Jenkins.getInstance(), env, launcher, listener, true, credentials);
if (possiblyCachedRepo == null) {

代码示例来源:origin: jenkinsci/mercurial-plugin

@Test public void triggersNewBuild() throws Exception {
  TaskListener listener = new StreamTaskListener(System.out, Charset.defaultCharset());
  Launcher launcher = j.jenkins.createLauncher(listener);
  
  FreeStyleProject project = j.createFreeStyleProject();
  
  // TODO switch to MercurialContainer
  MercurialSCM scm = new MercurialSCM(null, tmp.getRoot().getPath(), null, null, null, null, false, null);
  project.setScm(scm);
  File repo = tmp.getRoot();
  
  m.hg(repo, "init");
  m.touchAndCommit(repo, "x");
  
  PollingResult pr = scm.compare(
      launcher, 
      listener, 
      new MercurialTagAction("tip","",null,null),
      listener.getLogger(), 
      j.jenkins, 
      new FilePath(tmp.getRoot()), 
      project);
  assertEquals(PollingResult.Change.SIGNIFICANT, pr.change);
  
}

代码示例来源:origin: jenkinsci/mercurial-plugin

MercurialInstallation installation = new MercurialInstallation(instName, "", "hg", false, true, false, null, null);
LogTaskListener listener = new LogTaskListener(Logger.getLogger(getClass().getName()), Level.INFO);
final HgExe hg = new HgExe(installation, null, r.jenkins.createLauncher(
    listener), r.jenkins, listener, new EnvVars());
String version;

相关文章

Jenkins类方法