Skip to content
Snippets Groups Projects
Commit 053e721b authored by Valery Sizov's avatar Valery Sizov
Browse files

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
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -17,6 +17,12 @@ module GitlabCi
end
end
 
def hostname
@config.fetch('hostname') do
Socket.gethostname
end
end
def token
@config['token']
end
Loading
Loading
Loading
Loading
@@ -75,7 +75,8 @@ module GitlabCi
 
def register_runner(token)
body = {
token: token
token: token,
hostname: config.hostname
}
 
opts = {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment