diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-03 11:46:07 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-03 11:46:07 -0800 |
commit | f6e66372f4629d229240497b900b76967bc9ecc0 (patch) | |
tree | 64147d35e2b7070cd98c4a0d8043b33193248ca7 /lib | |
parent | 8746f609e8892b62b16362a5d08159bd61d92105 (diff) | |
parent | f66478eb40013a8343a5435beacb6f2f5c371ba1 (diff) | |
download | gitlab-ci-f6e66372f4629d229240497b900b76967bc9ecc0.tar.gz |
Merge pull request #117 from cabeca/environment-variables
Added CI_SERVER* environment variables to build process.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/runner.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/runner.rb b/lib/runner.rb index a6fef28..c856d3a 100644 --- a/lib/runner.rb +++ b/lib/runner.rb @@ -84,6 +84,12 @@ class Runner @process.environment['BUNDLE_GEMFILE'] = File.join(path, 'Gemfile') @process.environment['BUNDLE_BIN_PATH'] = '' @process.environment['RUBYOPT'] = '' + + @process.environment['CI_SERVER'] = 'yes' + @process.environment['CI_SERVER_NAME'] = 'GitLab CI' + @process.environment['CI_SERVER_VERSION'] = GitlabCi::Version + @process.environment['CI_SERVER_REVISION'] = GitlabCi::Revision + @process.environment['CI_BUILD_REF'] = build.ref @process.start |