Skip to content
This repository
Browse code

Merge pull request #117 from cabeca/environment-variables

Added CI_SERVER* environment variables to build process.
  • Loading branch information...
commit f6e66372f4629d229240497b900b76967bc9ecc0 2 parents 8746f60 + f66478e
Dmitriy Zaporozhets authored March 03, 2013

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  lib/runner.rb
6  lib/runner.rb
@@ -84,6 +84,12 @@ def command(cmd, path)
84 84
     @process.environment['BUNDLE_GEMFILE'] = File.join(path, 'Gemfile')
85 85
     @process.environment['BUNDLE_BIN_PATH'] = ''
86 86
     @process.environment['RUBYOPT'] = ''
  87
+
  88
+    @process.environment['CI_SERVER'] = 'yes'
  89
+    @process.environment['CI_SERVER_NAME'] = 'GitLab CI'
  90
+    @process.environment['CI_SERVER_VERSION'] = GitlabCi::Version
  91
+    @process.environment['CI_SERVER_REVISION'] = GitlabCi::Revision
  92
+
87 93
     @process.environment['CI_BUILD_REF'] = build.ref
88 94
     
89 95
     @process.start

0 notes on commit f6e6637

Please sign in to comment.
Something went wrong with that request. Please try again.