本文整理了Java中hudson.model.Fingerprint.add()
方法的一些代码示例,展示了Fingerprint.add()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Fingerprint.add()
方法的具体详情如下:
包路径:hudson.model.Fingerprint
类名称:Fingerprint
方法名:add
暂无
代码示例来源:origin: jenkinsci/jenkins
/**
* Adds a usage reference to the build.
* @param b {@link Run} to be referenced in {@link #usages}
* @since 1.577
*/
public synchronized void addFor(@Nonnull Run b) throws IOException {
add(b.getParent().getFullName(), b.getNumber());
}
代码示例来源: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.jenkins-ci.main/jenkins-core
/**
* Adds a usage reference to the build.
* @param b {@link Run} to be referenced in {@link #usages}
* @since 1.577
*/
public synchronized void addFor(@Nonnull Run b) throws IOException {
add(b.getParent().getFullName(), b.getNumber());
}
代码示例来源:origin: jenkinsci/maven-plugin
public Void call(MavenBuild build) throws IOException, InterruptedException {
FingerprintMap map = Jenkins.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 action
FingerprintAction fa = build.getAction(FingerprintAction.class);
if (fa!=null) fa.add(all);
else build.getActions().add(new FingerprintAction(build,all));
return null;
}
}
代码示例来源:origin: hudson/hudson-2.x
public synchronized void add(AbstractBuild b) throws IOException {
add(b.getParent().getFullName(),b.getNumber());
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
public synchronized void add(AbstractBuild b) throws IOException {
add(b.getParent().getFullName(), b.getNumber());
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public synchronized void add(AbstractBuild b) throws IOException {
add(b.getParent().getFullName(),b.getNumber());
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
public synchronized void add(AbstractBuild b) throws IOException {
add(b.getParent().getFullName(),b.getNumber());
}
代码示例来源: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));
}
}
代码示例来源:origin: jenkinsci/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<>();
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 = Jenkins.getInstance().getFingerprintMap();
for (Entry<String, String> e : records.entrySet())
map.getOrCreate(null, e.getKey(), e.getValue()).add(mmsb);
mmsb.addAction(new FingerprintAction(mmsb,records));
}
}
代码示例来源:origin: org.jvnet.hudson.main/maven3-plugin
fingerprint.add(build);
代码示例来源:origin: org.jenkins-ci.plugins/s3
f.add((AbstractBuild)src);
f.add(dst);
fingerprints.put(record.getName(), record.getFingerprint());
代码示例来源:origin: org.eclipse.hudson/hudson-core
continue;
fp.add(build);
record.put(r.relativePath, fp.getHashString());
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
continue;
fp.add(build);
record.put(r.relativePath,fp.getHashString());
代码示例来源:origin: hudson/hudson-2.x
continue;
fp.add(build);
record.put(r.relativePath,fp.getHashString());
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
continue;
fp.add(build);
record.put(r.relativePath,fp.getHashString());
代码示例来源:origin: org.jenkins-ci.plugins/s3
continue;
fp.add(build);
record.put(r.getName(),fp.getHashString());
内容来源于网络,如有侵权,请联系作者删除!