lib/jenkins_pipeline_builder/generator.rb
# Works for jobs, views, and promotions
Works for jobs, views, and promotions
Works for jobs views and promotions
def resolve_job_by_name(name, settings = {})
      job = job_collection.get_item(name)
      raise "Failed to locate job by name '#{name}'" if job.nil?
      job_value = job[:value]
      logger.debug "Compiling job #{name}"
      compiler = JenkinsPipelineBuilder::Compiler.new self
      success, payload = compiler.compile_job(job_value, settings)
      [success, payload]
    end
def resolve_job_by_name ( name , settings = { } ) job = job_collection . get_item ( name ) raise "Failed to locate job by name '#{name}'" if job . nil? job_value = job [ :value ] logger . debug "Compiling job #{name}" compiler = JenkinsPipelineBuilder :: Compiler . new self success , payload = compiler . compile_job ( job_value , settings ) [ success , payload ] end
Works for jobs, views, and promotions
Works for jobs views and promotions
name
settings