Merge "Add possibility to build iso with specific nailgun/astute/ostf gerrit commits"
This commit is contained in:
commit
98331ec4fe
11
config.mk
11
config.mk
|
@ -49,6 +49,17 @@ NAILGUN_REPO?=https://github.com/stackforge/fuel-web.git
|
|||
ASTUTE_REPO?=https://github.com/stackforge/fuel-astute.git
|
||||
OSTF_REPO?=https://github.com/stackforge/fuel-ostf.git
|
||||
|
||||
# Gerrit URLs and commits
|
||||
FUELLIB_GERRIT_URL?=https://review.openstack.org/stackforge/fuel-library
|
||||
NAILGUN_GERRIT_URL?=https://review.openstack.org/stackforge/fuel-web
|
||||
ASTUTE_GERRIT_URL?=https://review.openstack.org/stackforge/fuel-astute
|
||||
OSTF_GERRIT_URL?=https://review.openstack.org/stackforge/fuel-ostf
|
||||
|
||||
FUELLIB_GERRIT_COMMIT?=none
|
||||
NAILGUN_GERRIT_COMMIT?=none
|
||||
ASTUTE_GERRIT_COMMIT?=none
|
||||
OSTF_GERRIT_COMMIT?=none
|
||||
|
||||
LOCAL_MIRROR_SRC:=$(LOCAL_MIRROR)/src
|
||||
LOCAL_MIRROR_EGGS:=$(LOCAL_MIRROR)/eggs
|
||||
LOCAL_MIRROR_GEMS:=$(LOCAL_MIRROR)/gems
|
||||
|
|
15
repos.mk
15
repos.mk
|
@ -17,7 +17,12 @@ $(BUILD_DIR)/repos/$1.done:
|
|||
# Clone repo and checkout required commit
|
||||
mkdir -p $(BUILD_DIR)/repos
|
||||
rm -rf $(BUILD_DIR)/repos/$1
|
||||
git clone --depth 1 --branch $3 $2 $(BUILD_DIR)/repos/$1
|
||||
# Clone with depth=1 if no gerrit commits given, otherwise clone everything
|
||||
test "$5" = "none" && git clone --depth 1 --branch $3 $2 $(BUILD_DIR)/repos/$1 || git clone --branch $3 $2 $(BUILD_DIR)/repos/$1
|
||||
# Pull gerrit commits if given
|
||||
$(foreach var,$5,
|
||||
test "$(var)" = "none" || ( cd $(BUILD_DIR)/repos/$1 && git fetch $4 $(var) && git cherry-pick FETCH_HEAD ) ;
|
||||
)
|
||||
# Update versions.yaml
|
||||
touch $(BUILD_DIR)/repos/version.yaml
|
||||
sed -i '/^ $1_sha:/d' $(BUILD_DIR)/repos/version.yaml
|
||||
|
@ -25,7 +30,7 @@ $(BUILD_DIR)/repos/$1.done:
|
|||
touch $(BUILD_DIR)/repos/$1.done
|
||||
endef
|
||||
|
||||
$(eval $(call build_repo,nailgun,$(NAILGUN_REPO),$(NAILGUN_COMMIT)))
|
||||
$(eval $(call build_repo,astute,$(ASTUTE_REPO),$(ASTUTE_COMMIT)))
|
||||
$(eval $(call build_repo,fuellib,$(FUELLIB_REPO),$(FUELLIB_COMMIT)))
|
||||
$(eval $(call build_repo,ostf,$(OSTF_REPO),$(OSTF_COMMIT)))
|
||||
$(eval $(call build_repo,nailgun,$(NAILGUN_REPO),$(NAILGUN_COMMIT),$(NAILGUN_GERRIT_URL),$(NAILGUN_GERRIT_COMMIT)))
|
||||
$(eval $(call build_repo,astute,$(ASTUTE_REPO),$(ASTUTE_COMMIT),$(ASTUTE_GERRIT_URL),$(ASTUTE_GERRIT_COMMIT)))
|
||||
$(eval $(call build_repo,fuellib,$(FUELLIB_REPO),$(FUELLIB_COMMIT),$(FUELLIB_GERRIT_URL),$(FUELLIB_GERRIT_COMMIT)))
|
||||
$(eval $(call build_repo,ostf,$(OSTF_REPO),$(OSTF_COMMIT),$(OSTF_GERRIT_URL),$(OSTF_GERRIT_COMMIT)))
|
||||
|
|
Loading…
Reference in New Issue