本文整理了Java中jenkins.model.Jenkins.rebuildDependencyGraph()
方法的一些代码示例,展示了Jenkins.rebuildDependencyGraph()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jenkins.rebuildDependencyGraph()
方法的具体详情如下:
包路径:jenkins.model.Jenkins
类名称:Jenkins
方法名:rebuildDependencyGraph
[英]Rebuilds the dependency map.
[中]重建依赖关系映射。
代码示例来源:origin: jenkinsci/jenkins
public void run(Reactor session) throws Exception {
rebuildDependencyGraph();
代码示例来源:origin: i-m-c/jenkins-inheritance-plugin
public void onLoaded() {
//This happens shortly before Jenkins has completely loaded; run a
//last PCE, to absolutely ensure that all jobs are present
pce().notifyJenkinsStartupComplete();
//And rebuild the job graph
Jenkins.getInstance().rebuildDependencyGraph();
}
代码示例来源:origin: hudson.plugins/project-inheritance
/**
* This method does the same as {@link #onJenkinsStart()}, except that
* it has no reason to wait, since all static Jobs are guaranteed to
* have been created by then. Unfortunately, Jenkins has most likely
* already called {@link Queue#init(Jenkins)} by this point, so the
* other function is also important.
* <p>
* In other words, this functions ensures the reliable creation of all
* transient jobs; whereas the other one tries to promise a reliable
* restoration of jobs that were stuck in the previous Queue.
*/
@Initializer(after=JOB_LOADED,fatal=false)
public static void onJenkinsJobsGuaranteedLoaded() {
//Triggering the automatic loading of transients
if (ProjectCreationEngine.instance != null) {
ProjectCreationEngine.instance.notifyJenkinsStartupComplete();
} else {
//This should never happen
log.severe(
"Issue during loading of transient jobs; PCE not yet initialized!"
);
}
//Now, that all jobs are present; we rebuild the Jenkins job
//dependency graph
Jenkins.getInstance().rebuildDependencyGraph();
}
}
代码示例来源:origin: i-m-c/jenkins-inheritance-plugin
/**
* This method does the same as {@link #onJenkinsStart()}, except that
* it has no reason to wait, since all static Jobs are guaranteed to
* have been created by then. Unfortunately, Jenkins has most likely
* already called {@link Queue#init(Jenkins)} by this point, so the
* other function is also important.
* <p>
* In other words, this functions ensures the reliable creation of all
* transient jobs; whereas the other one tries to promise a reliable
* restoration of jobs that were stuck in the previous Queue.
*/
@Initializer(after=JOB_LOADED,fatal=false)
public static void onJenkinsJobsGuaranteedLoaded() {
//Triggering the automatic loading of transients
if (ProjectCreationEngine.instance != null) {
ProjectCreationEngine.instance.notifyJenkinsStartupComplete();
} else {
//This should never happen
log.severe(
"Issue during loading of transient jobs; PCE not yet initialized!"
);
}
//Now, that all jobs are present; we rebuild the Jenkins job graph
Jenkins.getInstance().rebuildDependencyGraph();
}
代码示例来源:origin: jenkinsci/junit-plugin
private void createDownstreamProjectWithTests() throws Exception {
createDownstreamProjectWithNoTests();
addJUnitResultArchiver(downstreamProject);
j.jenkins.rebuildDependencyGraph();
}
代码示例来源:origin: jenkinsci/maven-plugin
Jenkins.getInstance().rebuildDependencyGraph();
代码示例来源:origin: JoelJ/ez-templates
Jenkins.getInstance().rebuildDependencyGraph();
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
public void run(Reactor session) throws Exception {
rebuildDependencyGraph();
代码示例来源:origin: jenkinsci/junit-plugin
private void createDownstreamProjectWithNoTests() throws Exception {
downstreamProject = j.createFreeStyleProject(TEST_PROJECT_NAME);
downstreamProject.setQuietPeriod(0);
addFingerprinterToProject(downstreamProject, singleContents, singleFiles);
upstreamProject.getPublishersList().add(new BuildTrigger(ImmutableList.of(downstreamProject), Result.SUCCESS));
upstreamProject.getPublishersList().add(new AggregatedTestResultPublisher(null));
j.jenkins.rebuildDependencyGraph();
}
内容来源于网络,如有侵权,请联系作者删除!