Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Build
def initialize(data)
@commands = data[:commands].to_a
@ref = data[:ref]
@ref_name = data[:ref_name]
@id = data[:id]
@project_id = data[:project_id]
@repo_url = data[:repo_url]
Expand Down Expand Up @@ -95,6 +96,7 @@ def command(cmd)
@process.environment['CI_SERVER_REVISION'] = nil# GitlabCi::Revision

@process.environment['CI_BUILD_REF'] = @ref
@process.environment['CI_BUILD_REF_NAME'] = @ref_name

@process.start

Expand Down
1 change: 1 addition & 0 deletions lib/network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def get_build
commands: response['commands'].lines,
repo_url: response['repo_url'],
ref: response['sha'],
ref_name: response['ref'],
}
elsif response.code == 403
puts 'forbidden'
Expand Down