Skip to content
Browse files

Restore buildNumber puts because GFV doesn't seem to output it

  • Loading branch information...
1 parent a3cfe4c commit 1ad146c190bca68569b2c5335ad8cc19f29e3256 @danielmarbach danielmarbach committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 rakefile.rb
View
6 rakefile.rb
@@ -42,6 +42,9 @@
configatron.version.full = Configatron::Delayed.new do
`gitflowversion`.scan(/NugetVersion":"(.*)"/)[0][0][0,20]
end
+ configatron.version.short = Configatron::Delayed.new do
+ `gitflowversion`.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 1ad146c

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