Skip to content
Permalink
Browse files

[JENKINS-34259] Build History and People links are working fine

  • Loading branch information...
recena
recena committed Apr 28, 2016
1 parent c0b4d47 commit f2ae21fd12f44221aa5a982ae939207f86d3183b
@@ -554,7 +554,7 @@ protected void submit(StaplerRequest req, StaplerResponse rsp)
@Override
public View getPrimaryView() {
if (getItems().isEmpty()) {
// when there's no branches to show, switch to the special welcome view
// when there are no branches nor pull requests to show, switch to the special welcome view
return getWelcomeView();
}
return super.getPrimaryView();
@@ -567,6 +567,11 @@ protected View getWelcomeView() {
return new MultiBranchProjectEmptyView(this);
}

@Override
public View getView(String name) {
return getPrimaryView();
}

/**
* Represents the branch indexing job.
*
@@ -252,7 +252,8 @@ public SCMSourceCriteria getSCMSourceCriteria(SCMSource source) {
}

/**
* Will create an specialized view when there are no repositories found, which contain a Jenkinsfile
* Will create an specialized view when there are no repositories or branches found, which contain a Jenkinsfile
* or other MARKER file.
*/
@Override
public View getPrimaryView() {
@@ -262,6 +263,11 @@ public View getPrimaryView() {
return super.getPrimaryView();
}

@Override
public View getView(String name) {
return getPrimaryView();
}

@Extension
public static class DescriptorImpl extends AbstractFolderDescriptor {

0 comments on commit f2ae21f

Please sign in to comment.
You can’t perform that action at this time.