You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: jenkins_controller.rb
    path of file: ./repos/redmine_jenkins/app/controllers
    
    the code of the file until where you have to start completion: class JenkinsC
    
  def refresh
    success = []
    errors  = []
    @project.jenkins_jobs.each do |job|
      result = BuildManager.update_last_build!(job)
      if result.success?
        success << result.message_on_success
      else
        errors << result.message_on_errors
      end
    end