From 4c8814866c0d5d9ada6afc8fdb09369dbc3493ed Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Fri, 13 Mar 2015 14:58:05 -0400 Subject: [PATCH] buildman: add git_url to build_config --- buildman/component/buildcomponent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildman/component/buildcomponent.py b/buildman/component/buildcomponent.py index 00ec892a7..2215babe3 100644 --- a/buildman/component/buildcomponent.py +++ b/buildman/component/buildcomponent.py @@ -107,6 +107,7 @@ class BuildComponent(BaseComponent): # Parse the build queue item into build arguments. # build_package: URL to the build package to download and untar/unzip. + # git_url: URL to clone a repository (builder will create and upload the buildpack). # sub_directory: The location within the build package of the Dockerfile and the build context. # repository: The repository for which this build is occurring. # registry: The registry for which this build is occuring (e.g. 'quay.io', 'staging.quay.io'). @@ -120,6 +121,7 @@ class BuildComponent(BaseComponent): # password: The password for pulling the base image (if any). build_arguments = { 'build_package': buildpack_url, + 'git_url': build_config.get('git_url', ''), 'sub_directory': build_config.get('build_subdir', ''), 'repository': repository_name, 'registry': self.registry_hostname,