-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
from cliffmeyers:
Hitting the /runs REST API for a Pipeline shows all the job runs, including those that probably should be in the /queue. The status of all jobs is "RUNNING" which also feels a bit misleading.
from vivek
What needs to happen is that if a build item is in queue, should not be returned. We should not be mixing run object with queue because they are vastly different. There is already an API /pipeline/:id/activities Ivan implemented to give all runs and items in queue, so if this is what you look for you can use that.
- is related to
-
JENKINS-37337 Pipeline scripts that appear as "queued" in classic UI are not returned from /queue API
-
- Closed
-
I think the missing piece is showing the activity of Jenkins in the not-yet-implemented GUI, this would make it clear...
otherwise, if there was a way we could enquire as to what "parts" of a pipeline are doing... we could report more intelligently why it is waiting when it is in the RUNNING state...
IN a sense we don't really want "Queued" anyway - it is an artifact of Jenkins internals that we don't always want to expose.
What we may want to expose is that their build is in a bad way because of exahusted executors or mis configuration - that is really what it is about.