本文整理了Java中hudson.model.Run.onLoad
方法的一些代码示例,展示了Run.onLoad
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Run.onLoad
方法的具体详情如下:
包路径:hudson.model.Run
类名称:Run
方法名:onLoad
[英]Called after the build is loaded and the object is added to the build list.
[中]
代码示例来源:origin: jenkinsci/jenkins
@Override
protected R retrieve(File d) throws IOException {
if(new File(d,"build.xml").exists()) {
// if the build result file isn't in the directory, ignore it.
try {
R b = cons.create(d);
b.onLoad();
if (LOGGER.isLoggable(FINEST)) {
LOGGER.log(FINEST, "Loaded " + b.getFullDisplayName() + " in " + Thread.currentThread().getName(), new ThisIsHowItsLoaded());
}
return b;
} catch (IOException e) {
LOGGER.log(Level.WARNING, "could not load " + d, e);
} catch (InstantiationError e) {
LOGGER.log(Level.WARNING, "could not load " + d, e);
} catch (Exception e) {
LOGGER.log(Level.WARNING, "could not load " + d, e);
}
}
return null;
}
代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper
public void superOnLoad() {
super.onLoad();
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
@Override
public R getBuild() {
R v= (R) runMap().runValueCache().get(key);
if ( key.refreshed ) {
// key.refreshed is true if item has been loaded from disk
// for the first time by the cache.
key.refreshed = false;
v.onLoad();
}
return v;
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Override
protected R retrieve(File d) throws IOException {
if(new File(d,"build.xml").exists()) {
// if the build result file isn't in the directory, ignore it.
try {
R b = cons.create(d);
b.onLoad();
if (LOGGER.isLoggable(FINEST)) {
LOGGER.log(FINEST, "Loaded " + b.getFullDisplayName() + " in " + Thread.currentThread().getName(), new ThisIsHowItsLoaded());
}
return b;
} catch (IOException e) {
LOGGER.log(Level.WARNING, "could not load " + d, e);
} catch (InstantiationError e) {
LOGGER.log(Level.WARNING, "could not load " + d, e);
} catch (Exception e) {
LOGGER.log(Level.WARNING, "could not load " + d, e);
}
}
return null;
}
代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper
@Override
public @SuppressWarnings("deprecation")
void onLoad() {
initPython();
if (pexec.isImplemented(1)) {
pexec.execPythonVoid("on_load");
} else {
super.onLoad();
}
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
r.onLoad();
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
r.onLoad();
代码示例来源:origin: hudson/hudson-2.x
r.onLoad();
代码示例来源:origin: org.jenkins-ci.plugins.workflow/workflow-job
@Override protected void onLoad() {
super.onLoad();
if (completed != null) {
throw new IllegalStateException("double onLoad of " + this);
内容来源于网络,如有侵权,请联系作者删除!