When running inside Jenkins, this allows BlueOceanUI to be mapped to /bo/
This commit is contained in:
parent
73495d019f
commit
05545a2067
|
@ -0,0 +1,39 @@
|
|||
package io.jenkins.blueocean;
|
||||
|
||||
import hudson.Extension;
|
||||
import hudson.model.RootAction;
|
||||
import org.kohsuke.stapler.StaplerProxy;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
/**
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
@Extension
|
||||
public class BlueOceanRootAction implements RootAction, StaplerProxy {
|
||||
@Inject
|
||||
BlueOceanUI app;
|
||||
|
||||
@Override
|
||||
public String getIconFileName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDisplayName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* This would map to /jenkins/bo/
|
||||
*/
|
||||
@Override
|
||||
public String getUrlName() {
|
||||
return "bo";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getTarget() {
|
||||
return app;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue