Skip to content
Snippets Groups Projects
Commit 285f1e48 authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Send runner's hostname during registration

parent 65a0e1c1
No related branches found
No related tags found
1 merge request!10Send hostname to Coordinator
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