App::JenkinsCli - Command line tool for interacting with Jenkins
This documentation refers to App::JenkinsCli version 0.011
use App::JenkinsCli; # Brief but working code example(s) here showing the most common usage(s) # This section will be as far as many users bother reading, so make it as # educational and exemplary as possible.
ls ($query)
list ($query)
List all jobs, optionally filtering with $query
$query
start ($job)
Start $job
$job
delete ($job)
Delete $job
status ($job)
Status of $job
enable ($job)
enable $job
disable ($job)
disable $job
conf ($job)
config ($job)
Show the config of $job
queue ()
Show the queue of running jobs
create ($job)
Create a new Jenkins job
load ()
Show the load stats for the server
change ($query, $xsl)
Run the XSLT file ($xsl) over each job matching $query to generate a new config which is then sent back to Jenkins.
$xsl
copy ( $old, $new )
Copy $old to $new
$old
$new
watch ($job)
Watch jobs to track changes.
The base URL of Jenkins
The username to access jenkins by
The password to access jenkins by
Flag to not actually perform changes
Internal Jenkins::API object
Mapping of Jenkins states to Term::ANSIColors
User options
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
Inspired by https://github.com/Netflix-Skunkworks/jenkins-cli
Ivan Wills - (ivan.wills@gmail.com)
Copyright (c) 2016 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install App::JenkinsCli, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::JenkinsCli
CPAN shell
perl -MCPAN -e shell install App::JenkinsCli
For more information on module installation, please visit the detailed CPAN module installation guide.