How to execute grovvy script remotely on Jenkins server?
A Jenkins Admin can execute groovy scripts remotely by sending an HTTP POST request to /script/ url or /scriptText/. curl example via bash [code] curl -d “script=<your_script_here>” https://jenkins/script # or to get output as a plain text result (no HTML) curl -d “script=<your_script_here>” https://jenkins/scriptText [/code] curl submitting groovy file via bash [code] curl –data-urlencode “script=$(<…
