From 85982d19d1c0409808ba1919bcb51c95232fe8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?De=CC=81ja?= Date: Fri, 22 Feb 2013 14:36:46 -0500 Subject: Pass the build ref to build scripts in the CI_BUILD_REF environment variable --- lib/runner.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/runner.rb') diff --git a/lib/runner.rb b/lib/runner.rb index 9761f23..e6e3f8d 100644 --- a/lib/runner.rb +++ b/lib/runner.rb @@ -84,7 +84,8 @@ class Runner @process.environment['BUNDLE_GEMFILE'] = File.join(path, 'Gemfile') @process.environment['BUNDLE_BIN_PATH'] = '' @process.environment['RUBYOPT'] = '' - + @process.environment['CI_BUILD_REF'] = build.ref + @process.start build.set_file @tmp_file.path -- cgit v1.2.1