Commit 053e721b authored by Valery Sizov's avatar Valery Sizov

Merge branch 'send-hostname' into 'master'

Send hostname to Coordinator

Runner sends it's hostname during registration which allows for easier identification.

See merge request !10
parents 65a0e1c1 285f1e48
Pipeline #609 passed with stage
......@@ -17,6 +17,12 @@ module GitlabCi
end
end
def hostname
@config.fetch('hostname') do
Socket.gethostname
end
end
def token
@config['token']
end
......
......@@ -75,7 +75,8 @@ module GitlabCi
def register_runner(token)
body = {
token: token
token: token,
hostname: config.hostname
}
opts = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment