aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/jenkins.rb
diff options
context:
space:
mode:
authorPaul Phillips2011-09-04 10:37:05 -0700
committerCharlie Sharpsteen2011-09-06 07:58:43 -0700
commitd5fbf804a74229f2adae5dea5eaa540c0eebe7e1 (patch)
treec373816a75658b7f0edf8bf07cc7aa06b542f5ce /Library/Formula/jenkins.rb
parent4955ac918e44ca55904c17ae6ceeaaf7afedbbcf (diff)
downloadhomebrew-d5fbf804a74229f2adae5dea5eaa540c0eebe7e1.tar.bz2
jenkins: Update to 1.428
Also add a --HEAD option. Closes #7438. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula/jenkins.rb')
-rw-r--r--Library/Formula/jenkins.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/Library/Formula/jenkins.rb b/Library/Formula/jenkins.rb
index 0918890a9..e9891de56 100644
--- a/Library/Formula/jenkins.rb
+++ b/Library/Formula/jenkins.rb
@@ -1,12 +1,14 @@
require 'formula'
class Jenkins < Formula
- url 'http://mirrors.jenkins-ci.org/war/1.427/jenkins.war', :using => :nounzip
- version '1.427'
- md5 '1d898294dc5f72b2b9c81ca423606f99'
+ url 'http://mirrors.jenkins-ci.org/war/1.428/jenkins.war', :using => :nounzip
+ head 'git://github.com/jenkinsci/jenkins.git'
+ version '1.428'
+ md5 '5817e09ccc3a2996addeb8f1bc1cb6c8'
homepage 'http://jenkins-ci.org'
def install
+ system "mvn clean install -pl war -am -DskipTests && mv war/target/jenkins.war ." if ARGV.build_head?
lib.install "jenkins.war"
(prefix+'org.jenkins-ci.plist').write startup_plist
(prefix+'org.jenkins-ci.plist').chmod 0644
@@ -28,6 +30,11 @@ Or start it manually:
EOS
end
+ # There is a startup plist, as well as a runner, here and here:
+ # https://raw.github.com/jenkinsci/jenkins/master/osx/org.jenkins-ci.plist
+ # https://raw.github.com/jenkinsci/jenkins/master/osx/Library/Application%20Support/Jenkins/jenkins-runner.sh
+ #
+ # Perhaps they could be integrated.
def startup_plist
return <<-EOS
<?xml version="1.0" encoding="UTF-8"?>
@@ -48,5 +55,4 @@ EOS
</plist>
EOS
end
-
end