This module provide the C command to allow interactions with a
Jenkins server via the command line.
INSTALLATION
To install this module, run the following commands:
# from CPAN
# with cpanm client (https://cpanmin.us/)
cpanm [--sudo] App::JenkinsCli
# with cpan client
cpan App::JenkinsCli
# from source
perl Build.PL
./Build
./Build test
./Build install
SYNOPSIS
jenkins-cli [option] command
OPTIONS:
-b --base-url[=]str
The base url of the Jenkins instance to talk to
-U --username[=]str
The username to interact with Jenkins
-P --password[=]str
The passowrd of --username
-v --verbose Show more detailed option
--version Prints the version information
--help Prints this help information
--man Prints the full documentation for jenkins-cli
COMMANDS:
ls|list [search]
List jenkins jobs
start job Start the Jenkins job "job"
stop job Stop a Jenkins job (not yet implemented)
tail job Tail a jenkins job (not yet implemented)
disable job Diable a job
enable job Enable a job
wipe job Wipeout workspace for job (not yet implemented)
queue Show the current job build queue
history job Show a jobs build history (not yet implemented)
config job Show a config for a job
create job config.xml
Create a new job from "config.xml"
CONFIGURATION
You can save your configuration into C<~/.jenkins-cli.yml> so that you don't
have to enter them each time. The following is an example of what the file
looks like:
---
base_url: http://localhost:8080/
username: admin
password: my-secrent-password
SUPPORT AND DOCUMENTATION
Copyright (C) 2016 Ivan Wills
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.