hudson.model.Hudson.getFingerprintMap()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(128)

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

Hudson.getFingerprintMap介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.hudson/hudson-inject

@Provides
private FingerprintMap getFingerprintMap() {
  return getHudson().getFingerprintMap();
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-inject

@Provides
private FingerprintMap getFingerprintMap() {
  return getHudson().getFingerprintMap();
}

代码示例来源:origin: org.jvnet.hudson.main/maven-plugin

/**
 * Called from within the master to record fingerprint.
 */
public void recordFingerprint(MavenBuild build) throws IOException {
  FingerprintMap map = Hudson.getInstance().getFingerprintMap();
  map.getOrCreate(build,fileName,md5sum);
}

代码示例来源:origin: org.jvnet.hudson.main/maven-plugin

public Void call(MavenBuild build) throws IOException, InterruptedException {
    FingerprintMap map = Hudson.getInstance().getFingerprintMap();
    for (Entry<String, String> e : p.entrySet())
      map.getOrCreate(build, e.getKey(), e.getValue()).add(build);
    for (Entry<String, String> e : u.entrySet())
      map.getOrCreate(null, e.getKey(), e.getValue()).add(build);
    Map<String,String> all = new HashMap<String, String>(u);
    all.putAll(p);
    // add fingerprints to the build
    FingerprintAction.add(build, all);
    return null;
  }
});

代码示例来源:origin: org.jvnet.hudson.main/maven-plugin

/**
 * Creates {@link FingerprintAction} for {@link MavenModuleSetBuild}
 * by aggregating all fingerprints from module builds.
 */
public static void aggregate(MavenModuleSetBuild mmsb) throws IOException {
  Map<String,String> records = new HashMap<String, String>();
  for (List<MavenBuild> builds : mmsb.getModuleBuilds().values()) {
    for (MavenBuild build : builds) {
      FingerprintAction fa = build.getAction(FingerprintAction.class);
      if(fa!=null)
        records.putAll(fa.getRecords());
    }
  }
  if(!records.isEmpty()) {
    FingerprintMap map = Hudson.getInstance().getFingerprintMap();
    for (Entry<String, String> e : records.entrySet())
      map.getOrCreate(null, e.getKey(), e.getValue()).add(mmsb);
    mmsb.addAction(new FingerprintAction(mmsb,records));
  }
}

相关文章

Hudson类方法