From 37554fc9cf2d7c458f2e8fda225fd680662ecfe2 Mon Sep 17 00:00:00 2001 From: James Nord Date: Thu, 14 Nov 2024 13:34:57 +0000 Subject: [PATCH] [JENKINS-72958] expose buildable property to API https://github.com/jenkinsci/branch-api-plugin/pull/468 but on the base class that defines `isBuildable` --- .../hudson/plugins/folder/computed/ComputedFolder.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder.java b/src/main/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder.java index 722966db..e5d15e85 100644 --- a/src/main/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder.java +++ b/src/main/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder.java @@ -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; @@ -528,6 +529,7 @@ public List getActions() { * * @return {@code true} if this folder can currently be recomputed. */ + @Exported public boolean isBuildable() { if (isDisabled()) { return false;