本文整理了Java中hudson.model.Hudson.getFingerprintMap()
方法的一些代码示例,展示了Hudson.getFingerprintMap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hudson.getFingerprintMap()
方法的具体详情如下:
包路径:hudson.model.Hudson
类名称: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));
}
}
内容来源于网络,如有侵权,请联系作者删除!