Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
Merge pull request #117 from cabeca/environment-variables
Browse files Browse the repository at this point in the history
Added CI_SERVER* environment variables to build process.
  • Loading branch information
dzaporozhets committed Mar 3, 2013
2 parents 8746f60 + f66478e commit f6e6637
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/runner.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ def command(cmd, path)
@process.environment['BUNDLE_GEMFILE'] = File.join(path, 'Gemfile') @process.environment['BUNDLE_GEMFILE'] = File.join(path, 'Gemfile')
@process.environment['BUNDLE_BIN_PATH'] = '' @process.environment['BUNDLE_BIN_PATH'] = ''
@process.environment['RUBYOPT'] = '' @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.environment['CI_BUILD_REF'] = build.ref


@process.start @process.start
Expand Down

0 comments on commit f6e6637

Please sign in to comment.