Permalink
Browse files

Putting back buildNumber for TC until fixed

  • Loading branch information...
1 parent dbd1219 commit 442947fe5c94264e05543306cf114b5c00b90411 @danielmarbach danielmarbach committed Jan 6, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 rakefile.rb
View
@@ -42,6 +42,9 @@
configatron.version.full = Configatron::Delayed.new do
open("|Tools/GitFlowVersion/GitFlowVersion.exe").read().scan(/NugetVersion":"(.*)"/)[0][0][0,20]
end
+ configatron.version.short = Configatron::Delayed.new do
+ open("|Tools/GitFlowVersion/GitFlowVersion.exe").read().scan(/ShortVersion":"(.*)"/)[0][0]
+ end
configatron.configure_from_hash build_config
#configatron.protect_all!
@@ -117,6 +120,9 @@
end
task :templates do
+ #Write teamcity build number
+ puts "##teamcity[buildNumber '#{configatron.version.short}']"
+
#Prepare templates
FileList.new('**/*.template').each do |template|
QuickTemplate.new(template).exec(configatron)

0 comments on commit 442947f

Please sign in to comment.