Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add markdown readme

  • Loading branch information...
commit 1dd0d850fe1c198664e44ff45765234b3dba76d0 1 parent 803c0ca
c9s authored

Showing 3 changed files with 54 additions and 5 deletions. Show diff stats Hide diff stats

  1. +4 1 Makefile.PL
  2. +47 0 README.mkdn
  3. +3 4 lib/Jenkins/Trigger.pm
5 Makefile.PL
@@ -2,7 +2,10 @@ use inc::Module::Install;
2 2 name 'Jenkins-Trigger';
3 3 all_from 'lib/Jenkins/Trigger.pm';
4 4
5   -# requires '';
  5 +requires 'Moose';
  6 +requires 'LWP::UserAgent';
  7 +
  8 +readme_markdown_from_pod 'lib/Jenkins/Trigger.pm';
6 9
7 10 tests 't/*.t';
8 11 # author_tests 'xt';
47 README.mkdn
Source Rendered
... ... @@ -0,0 +1,47 @@
  1 +# NAME
  2 +
  3 +Jenkins::Trigger - trigger your Jenkins Job!
  4 +
  5 +# SYNOPSIS
  6 +
  7 + use Jenkins::Trigger;
  8 + Jenkins::Trigger->new(
  9 + host => 'build.your-machine.dev',
  10 + port => 8080,
  11 + )->trigger( 'JobName' );
  12 +
  13 +# DESCRIPTION
  14 +
  15 +Jenkins::Trigger is a simple tool for triggering projects on Jenkins CI.
  16 +
  17 +You can use this module to hook your projects on Jenkins, and trigger jenkins
  18 +jobs easily.
  19 +
  20 +You can simple write a git hook script:
  21 +
  22 + #!/usr/bin/env perl
  23 + use Jenkins::Trigger;
  24 + Jenkins::Trigger->new( host => 'your.host' )->trigger( 'YourJob' );
  25 +
  26 +# REFERENCE
  27 +
  28 +Jenkins with Git Plugin:
  29 +
  30 + $ curl http://yourserver/jenkins/git/notifyCommit?url=<URL of the Git repository>
  31 +
  32 +[https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-Buildsbysourcechanges](https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-Buildsbysourcechanges)
  33 +
  34 +[http://stackoverflow.com/questions/5784329/how-can-i-make-jenkins-ci-with-git-trigger-on-pushes-to-master](http://stackoverflow.com/questions/5784329/how-can-i-make-jenkins-ci-with-git-trigger-on-pushes-to-master)
  35 +
  36 +[http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/](http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/)
  37 +
  38 +# AUTHOR
  39 +
  40 +Yo-An Lin <cornelius.howl {at} gmail.com>
  41 +
  42 +# SEE ALSO
  43 +
  44 +# LICENSE
  45 +
  46 +This library is free software; you can redistribute it and/or modify
  47 +it under the same terms as Perl itself.
7 lib/Jenkins/Trigger.pm
@@ -51,16 +51,15 @@ __END__
51 51
52 52 =head1 NAME
53 53
54   -Jenkins::Trigger - trig your Jenkins Job!
  54 +Jenkins::Trigger - trigger your Jenkins Job!
55 55
56 56 =head1 SYNOPSIS
57 57
58 58 use Jenkins::Trigger;
59   - my $trigger = Jenkins::Trigger->new(
  59 + Jenkins::Trigger->new(
60 60 host => 'build.your-machine.dev',
61 61 port => 8080,
62   - );
63   - $trigger->trigger( 'JobName', 'BUILD' );
  62 + )->trigger( 'JobName' );
64 63
65 64 =head1 DESCRIPTION
66 65

0 comments on commit 1dd0d85

Please sign in to comment.
Something went wrong with that request. Please try again.