Permalink
Browse files

Added directory for hudson configuration and scripts.

  • Loading branch information...
1 parent 0be8cd5 commit 835ce4eab0762806eeeacfce27ab12185fb6a557 @gabrielf committed Dec 18, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 hudson/create_release_branch.rb
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+
+ignore, major_version, minor_version, path_version = File.read("../pom.xml").match(/<version>(\d*)\.(\d*)\.(\d*)-SNAPSHOT<\/version>/).to_a
+
+branch_name = "#{major_version}.#{minor_version}"
+next_development_version = "#{major_version}.#{minor_version.to_i + 1}.0-SNAPSHOT"
+
+puts "mvn -B release:branch -DbranchName='#{branch_name}' -DdevelopmentVersion='#{next_development_version}'"

0 comments on commit 835ce4e

Please sign in to comment.