Browse files

Merge pull request #117 from cabeca/environment-variables

Added CI_SERVER* environment variables to build process.
  • Loading branch information...
2 parents 8746f60 + f66478e commit f6e66372f4629d229240497b900b76967bc9ecc0 @randx randx committed Mar 3, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/runner.rb
View
6 lib/runner.rb
@@ -84,6 +84,12 @@ def command(cmd, path)
@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

0 comments on commit f6e6637

Please sign in to comment.