summaryrefslogtreecommitdiff
path: root/lib/runner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/runner.rb')
-rw-r--r--lib/runner.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/runner.rb b/lib/runner.rb
index e6e3f8d..98db11a 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'] = GitlabCi::Name
+ @process.environment['CI_SERVER_VERSION'] = GitlabCi::Version
+ @process.environment['CI_SERVER_REVISION'] = GitlabCi::Revision
+
@process.environment['CI_BUILD_REF'] = build.ref
@process.start