benjamon99/rundeck-http-plugin ? reverse-engineered prompt
Reverse engineered prompt
Build me a Rundeck plugin that sends HTTP notifications when a job runs.
I want it to support GET, POST, PUT, and DELETE, and let me set the target URL, request body, and content type. It should also let me add custom headers, since that’s important for real APIs. Make it work as a proper plugin I can drop into Rundeck’s libext folder, then restart Rundeck and use it from a job’s notification settings.
Please include solid unit tests too, with mocks so the HTTP behavior can be tested without calling a real server. Keep the setup simple, use the project’s existing Java and Gradle setup, and make sure it builds cleanly and is easy to run with the normal Gradle test and build commands. If you need to check current Rundeck plugin docs online, go ahead and look them up.
Are you gonna build this?
make sure you review the code using coderabbit