You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code does not accept a 403 Forbidden as a successful response to the test to determine whether jenkins has started. My Jenkins instance requires authentication. The Chef run hangs indefinitely:
loop do
url = URI.parse("#{node.jenkins.server.url}/job/test/config.xml")
res = Chef::REST::RESTRequest.new(:GET, url, nil).call
break if res.kind_of?(Net::HTTPSuccess) or res.kind_of?(Net::HTTPNotFound)
Chef::Log.debug "service[jenkins] not responding OK to GET / #{res.inspect}"
sleep 1
end
This change fixes it:
break if res.kind_of?(Net::HTTPSuccess) or res.kind_of?(Net::HTTPNotFound) or res.kind_of?(Net::HTTPForbidden)
The text was updated successfully, but these errors were encountered:
This code does not accept a 403 Forbidden as a successful response to the test to determine whether jenkins has started. My Jenkins instance requires authentication. The Chef run hangs indefinitely:
This change fixes it:
break if res.kind_of?(Net::HTTPSuccess) or res.kind_of?(Net::HTTPNotFound) or res.kind_of?(Net::HTTPForbidden)
The text was updated successfully, but these errors were encountered: