bndr/gojenkins

Add support for executing groovy scripts

Open

#55 创建于 2016年12月12日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Go (454 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (903 star)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南