node-jenkins-api icon indicating copy to clipboard operation
node-jenkins-api copied to clipboard

How to get current running build status is completed or not?

Open ajithr opened this issue 9 years ago • 2 comments

Is it possible to get current running build status and can it be return in a callback function with details? If a build is running in the jenkins server, it needs to be return a callback function once it will be completed. jenkins.last_build_info only get last build details not current running build details.

ajithr avatar Oct 19 '16 06:10 ajithr

there is a parameter "building" in the jenkins.last_build_info,if "building": true, means the build is running

huangrurong avatar Oct 19 '16 09:10 huangrurong

thanks for the reply. Is there any callback function avail when the current build is completed? Is it necessary to wait until this 'building' parameter get false itself?

ajithr avatar Oct 19 '16 09:10 ajithr