Skip to content

Commit

Permalink
[JENKINS-72958] expose buildable property to API (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtnord authored Nov 16, 2024
2 parents 5af53dd + 37554fc commit 4ed5cc9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.interceptor.RequirePOST;

import static javax.servlet.http.HttpServletResponse.SC_INTERNAL_SERVER_ERROR;
Expand Down Expand Up @@ -528,6 +529,7 @@ public List<Action> getActions() {
*
* @return {@code true} if this folder can currently be recomputed.
*/
@Exported
public boolean isBuildable() {
if (isDisabled()) {
return false;
Expand Down

0 comments on commit 4ed5cc9

Please sign in to comment.