-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-72958] expose buildable property on MultiBranchProject to API #468
Conversation
35416c8
to
862cea9
Compare
862cea9
to
09b3c76
Compare
I have a feeling this is a bug in Stapler and not this plugin. |
I am also confused as to why branch-api-plugin/src/main/java/jenkins/branch/MultiBranchProject.java Lines 847 to 860 in 46de1e8
Exported but overridden...
|
Because this is an Does it not make sense for all |
jenkinsci/branch-api-plugin#468 but on the base class that defines `isBuildable`
@MarkRx jenkinsci/cloudbees-folder-plugin#441 if you would like to try that instead. |
@jtnord tested works thanks! http://localhost:8080/jenkins/job/folder1/job/pipeline1/api/json?tree=buildable Enabled:
Disabled:
Note child jobs will have buildable=true even if the parent is disabled (buildable=false). The buildable property doesn't propagate so the parent job needs to be checked. This is existing behavior and unrelated to exposing the buildable property. |
Closed as jenkinsci/cloudbees-folder-plugin#441 merged instead |
Exposes the "buildable" field to the REST API indicating if the multi-branch job has been disabled
https://issues.jenkins.io/browse/JENKINS-73425
Testing done
Create a multi-branch pipeline branch. Enable it. Disable it.
http://localhost:8080/jenkins/job/test/job/myprimarybranch/api/xml?tree=property[buildable[*]]
Enabled
Disabled
Submitter checklist