Closed stuhood closed 5 years ago
i have same problem
I think the problem is this function in class Build:
def get_status(self):
return self._data["result"]
Once build is instantiated, the status is not automatically refreshed by call poll
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closed due to inactivity
ISSUE TYPE
Jenkinsapi VERSION
0.3.8
Jenkins VERSION
2.150.2
SUMMARY
A single
Build
object (as returned byJob.get_build(buildid)
) will transition fromis_running
tonot is_running
, but it will not transition fromnot is_good
tois_good
at the same time.A small repro of this looks like:
In short: the job is initially running, but completes at some point. But when it completes,
is_good
does not begin to return the final result for the build. If you recreate theBuild
object, you see the final result for the build.EXPECTED RESULTS
I would expect that when
not is_running
, the final result/status of the job would be visible viais_good
.ACTUAL RESULTS
See above.