Jenkins: Invoking REST API (or wget) at end of Jenkins job without writing any script

jenkins

Solution

There is a plugin that allows to make an HTTP request (GET and POST) as a build step.

There is also a plugin that allows any build step to be used in post-build actions.

Use both and you get what you are asking for.

To be able to use any build step as a post-build action, you need to enable this in the settings. Go to: Jenkins → Manage Jenkins → Configure System → Flexible Push and switch the dropdown menu to "Any build step".

Problem

I thought this should be simple, but I am not able to find any Jenkins plugin which would simply let me call a REST GET API (equivalent of `wget URL`) when the job is finished. Am I missing something here? As I certainly don't want to write a new plugin for this simple task. I have scanned through all the plugins and the only interesting one are: - Post build task - Groovy Postbuild Plugin But in my case, I don't have access to Jenkins' file system, so I can't write a post-build script to do this job, or neither can I install Groovy on that machine. Also, Jenkins is running on a Windows Server 2008 machine.

Original source