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

227 zobrazení
Přeskočit na první nepřečtenou zprávu

Kyr Shatskyy

nepřečteno,
21. 5. 2015 19:15:3921.05.15
komu: 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. 
Odpovědět všem
Odpověď autorovi
Přeposlat
0 nových zpráv