• Tomasz Maczukin's avatar
    Remove legacy Runners support in /api/v4/jobs/request · e79ab111
    Tomasz Maczukin authored
    In Runner v1.3.0 we've started to send User-Agent header with Runner's
    version data. Since GitLab v8.12.0 we've started to use this header to check
    if used Runner's version supports 204 status code instead of 404 as a
    response when there is no jobs to execute by a Runner.
    
    In APIv4 (introduced in GitLab 9.0.0) will require Runner v9.0.0. And
    writing more accurately: GitLab Runner v9.0.0 will require GitLab at
    least 9.0.0. Because of such breaking change we are able to switch
    entirely to 204 response code and there is no need to do check of
    User-Agent.
    
    This commit removes useless code and complexity.
    e79ab111
runner.rb 2.03 KB