Permalink
Browse files

Putting back buildNumber for TC until fixed

  • Loading branch information...
1 parent e6839a1 commit 7a3671a2e0b2e4bc4d98f7fff8f7dd69e0490110 @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 7a3671a

Please sign in to comment.