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!

cooow
  • 748
  • 11
  • 29

1 Answers1

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?

Community
  • 1
  • 1
Slav
  • 27,057
  • 11
  • 80
  • 104
  • It seems to me that this API is deprecated. But "http:///job//lastBuild/stop" is exactly what I need! Thank you! – cooow Mar 28 '14 at 09:34