Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
Supply the pull_request_number when generating PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Tyler authored and McAfee, Patrick committed Jan 21, 2016
1 parent a4fed16 commit 1fa7daa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jenkins_pipeline_builder/pull_request_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def initialize(defaults = {})

def convert!(job_collection, pr)
job_collection.defaults[:value][:application_name] = "#{application_name}-PR#{pr}"
job_collection.defaults[:value][:pull_request_number] = pr
job_collection.jobs.each { |j| override j[:value], pr }
end

Expand Down

0 comments on commit 1fa7daa

Please sign in to comment.