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: build_controller.rb
    path of file: ./repos/zealot/app/controllers/api/jenkins
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Api::Jenkins::BuildController < Api::JenkinsController
  before_action :set_project_status

  def create
    return render_running_status if running?
    return render_build_failed if @client.job.build
    
  def create
    return render_running_status if running?
    return render_build_failed if @client.job.build(params[:project]).to_i != 201

    project = @client.job.list_details(params[:project])
    number = project['nextBuildNumber']
    render json: {
      code: :created,
      number: number,
      url: "#{project['url']}#{number}/"
    }
  end