Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree-based project view with auto-refresh #87

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import java.io.IOException;
import javax.servlet.ServletException;

import hudson.model.AbstractBuild;
import hudson.model.Cause;
import com.tikal.jenkins.plugins.multijob.views.MultiJobItem;
import com.tikal.jenkins.plugins.multijob.views.MultiView;
import jenkins.model.Jenkins;
import hudson.Extension;
import hudson.model.DependencyGraph;
Expand All @@ -18,14 +18,13 @@
import hudson.model.Descriptor.FormException;
import hudson.util.AlternativeUiTextProvider;
import hudson.scm.PollingResult;
import hudson.scm.PollingResult.*;

import com.tikal.jenkins.plugins.multijob.views.MultiJobView;
import hudson.tasks.test.AbstractTestResultAction;

import net.sf.json.JSONObject;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.bind.JavaScriptMethod;

public class MultiJobProject extends Project<MultiJobProject, MultiJobBuild>
implements TopLevelItem {
Expand Down Expand Up @@ -78,9 +77,16 @@ public boolean isTopMost() {
return getUpstreamProjects().size() == 0;
}

public MultiJobView getView() {
return new MultiJobView("");
}
@JavaScriptMethod
public List<MultiJobItem> getHierarchy() {
MultiView view = new MultiView(this);
return view.getHierarchy();
}

@JavaScriptMethod
public boolean isBuilding() {
return null != this.getLastBuild() ? this.getLastBuild().isBuilding() : false;
}

public String getRootUrl() {
return Jenkins.getInstance().getRootUrl();
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading