diff --git a/recipes/default.rb b/recipes/default.rb index 615738e..4a381c5 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -166,7 +166,7 @@ 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) + break if res.kind_of?(Net::HTTPSuccess) or res.kind_of?(Net::HTTPNotFound) or res.kind_of?(Net::HTTPForbidden) Chef::Log.debug "service[jenkins] not responding OK to GET /job/test/config.xml #{res.inspect}" sleep 1 end