jenkins-fire-cli: simplify the usage of jenkins-cli and job-dsl commandl line

29 views
Skip to first unread message

Weihong Xu

unread,
Sep 14, 2022, 11:57:19 PM9/14/22
to Jenkins Users
Jenkins community has provided the offical jenkins-cli.jar but it is not intuitive to use it. So I just create a wrapper for it to make it more easier to use.  All you need is to 

pip install jenkins-fire-cli
jenkins-fire-cli config set jenkins.url http://your-jenkins-site-url
jenkins-fire-cli config set user.name john.doe
jenkins-fire-cli config set user.token TOKEN_OR_PASSWORD
jenkins-fire-cli init  # to download jenkins-cli.jar and jenkins-job-dsl-core.jar

And then you can run the command line
jenkins-fire-cli run list-jobs

More detail could be found here: https://github.com/link89/jenkins-fire-cli 
Reply all
Reply to author
Forward
0 new messages