How to run job-dsl scripts on remote jenkins instance from command line interface

227 views
Skip to first unread message

Kyr Shatskyy

unread,
May 21, 2015, 7:15:39 PM5/21/15
to job-dsl...@googlegroups.com
Jenkins has groovy plugin and makes it possible to run groovy scripts remotely using following cli:

java -jar jenkins-cli.jar -s http://localhost:8080/ -noKeyAuth groovy local-script.groovy

This script will be executed RemoteClass context, but for the job-dsl scripts it makes sense run in JobParent class context.
Do you have any idea how to run job-dsl scripts on a remote jenkins without creating any jobs with job dsl script steps? 
Or maybe it is possible to implement easily a command extension for the jenkins-cli with such a facility. 
Reply all
Reply to author
Forward
0 new messages