summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-24 08:36:36 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-24 08:36:36 -0800
commit74c831f3bdcbddc190751a614a378ac5dbd3a25c (patch)
tree623b3b2b97e8b4bb03fe587a968cd3e846858c39
parent5fd3c039d465ed5e658d68fbdf064f9eb67e4c70 (diff)
parent85982d19d1c0409808ba1919bcb51c95232fe8fa (diff)
downloadgitlab-ci-2-0-stable.tar.gz
Merge pull request #112 from DejaAugustine/2-0-stable2-0-stable
Pass the build ref to build scripts
-rw-r--r--lib/runner.rb3
1 files changed, 2 insertions, 1 deletions
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