Skip to content
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

how to pause/resume build? #96

Open
denglitong opened this issue Mar 14, 2019 · 2 comments
Open

how to pause/resume build? #96

denglitong opened this issue Mar 14, 2019 · 2 comments

Comments

@denglitong
Copy link

denglitong commented Mar 14, 2019

i use pipeline, and i can see left-sdie button Pause/Resume which trigger api /job/${job_name}/${build_num}/pause/toggle to do pause/resume action, my question is, how can i distinguish the status the build is pausing or is resuming(that is running without pause). i do much search but found nothing about it, i even goto https://javadoc.jenkins.io/hudson/model/Run.html to read the method releated, but i cannot found the answer yet, here i beleive the api above must can known whether status of build right now whether is pausing or not, here i want to get the status, any response is appreciated, thanks a lot!

@harsh6100
Copy link

go to console output you will see if it is paused or not

@denglitong
Copy link
Author

go to console output you will see if it is paused or not

sorry about my ambiguous description, my question is how can i use the Jenkins api, to get the status of a build in process (whether is running or pausing). thanks for your time :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants