Class PublicBuildStatusAction
- java.lang.Object
-
- org.jenkinsci.plugins.badge.actions.PublicBuildStatusAction
-
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
,RootAction
,UnprotectedRootAction
@Extension public class PublicBuildStatusAction extends Object implements UnprotectedRootAction
Exposes the build status badge via unprotected URL.Even though the URL is unprotected, the user does still need the 'ViewStatus' permission on the given Job. If you want the status icons to be public readable/accessible, just grant the 'ViewStatus' permission globally to 'anonymous'.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static Permission
VIEW_STATUS
-
Constructor Summary
Constructors Constructor Description PublicBuildStatusAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kohsuke.stapler.HttpResponse
doIcon(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String job, String build, String style, String subject, String status, String color, String animatedOverlayColor, String config, String link)
org.kohsuke.stapler.HttpResponse
doIconDotSvg(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String job, String build, String style, String subject, String status, String color, String animatedOverlayColor, String config, String link)
String
doText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String job, String build)
String
getDisplayName()
String
getIconFileName()
static Run<?,?>
getRun(Job<?,?> project, String build, Boolean throwErrorWhenNotFound)
String
getUrlName()
-
-
-
Field Detail
-
VIEW_STATUS
public static final Permission VIEW_STATUS
-
-
Constructor Detail
-
PublicBuildStatusAction
public PublicBuildStatusAction() throws IOException
- Throws:
IOException
-
-
Method Detail
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
doIcon
@WebMethod(name="icon") public org.kohsuke.stapler.HttpResponse doIcon(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String job, @QueryParameter String build, @QueryParameter String style, @QueryParameter String subject, @QueryParameter String status, @QueryParameter String color, @QueryParameter String animatedOverlayColor, @QueryParameter String config, @QueryParameter String link)
-
doIconDotSvg
@WebMethod(name="icon.svg") public org.kohsuke.stapler.HttpResponse doIconDotSvg(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String job, @QueryParameter String build, @QueryParameter String style, @QueryParameter String subject, @QueryParameter String status, @QueryParameter String color, @QueryParameter String animatedOverlayColor, @QueryParameter String config, @QueryParameter String link)
-
doText
public String doText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String job, @QueryParameter String build)
-
-