From 317e2c345e028cb12c1d95b4962615cba30ecb44 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 10 Sep 2012 11:31:37 -0400 Subject: [PATCH] Add autodeploy properties task to rakefile --- rakefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rakefile b/rakefile index 053abf56a8..9e0bbcbfa4 100644 --- a/rakefile +++ b/rakefile @@ -227,3 +227,13 @@ namespace :cms do end end end + +desc "Build a properties file used to trigger autodeploy builds" +task :autodeploy_properties do + File.open("autodeploy.properties", "w") do |file| + file.puts("UPSTREAM_NOOP=false") + file.puts("UPSTREAM_BRANCH=#{BRANCH}") + file.puts("UPSTREAM_JOB=#{PACKAGE_NAME}") + file.puts("UPSTREAM_REVISION=#{COMMIT}") + end +end