1

I'm looking for a method to stop the execution of a Jenkins build. This job is composed by several python scripts, and I want to the first is able to stop it, according an argument passed to the build. I know stop one script, but how stop the entiere build ? Can I do that with python ? Or with a plugin ?

Thanks!

1 Answer 1

1

There is a Jenkins API for Python here:
https://pypi.python.org/pypi/jenkinsapi

You can also just do a wget to http://<hudson_url>/job/<JOBNAME>/lastBuild/stop.
More details on the above in this answer HUDSON: How to stop hudson job from command line?

Sign up to request clarification or add additional context in comments.

1 Comment

It seems to me that this API is deprecated. But "http://<hudson_url>/job/<JOBNAME>/lastBuild/stop" is exactly what I need! Thank you!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.