bndr/gojenkins

Add support for executing groovy scripts

Open

#55 opened on Dec 12, 2016

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Go (454 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (903 stars)
PR merge metrics
 (PR metrics pending)

Description

via the jenkins API /scriptText endpoint and return the script output if any (plain text, not json). To execute a groovy script you send a POST request to the /scriptText endpoint with Content-Type = application/x-www-form-urlencoded and a parameter named script which holds the groovy script to execute (as a string). The request returns the output of the script as a plain text. It's the same as running the script from Jenkins' Script Console

Contributor guide