Staging: be more selective about which branch of pillar-python-sdk to use
Because pillar-python-sdk doesn't have a `production` branch, it was always using `master`. Now it's only using `master` if `STAGING_BRANCH`=`production`.
This commit is contained in:
@@ -91,7 +91,13 @@ function git_clone() {
|
|||||||
git -C $STAGINGDIR clone --depth 1 --branch $BRANCH $URL $PROJECT_NAME
|
git -C $STAGINGDIR clone --depth 1 --branch $BRANCH $URL $PROJECT_NAME
|
||||||
}
|
}
|
||||||
|
|
||||||
git_clone pillar-python-sdk master $SDK_DIR
|
if [ "$STAGING_BRANCH" == "production" ]; then
|
||||||
|
SDK_STAGING_BRANCH=master # SDK doesn't have a production branch
|
||||||
|
else
|
||||||
|
SDK_STAGING_BRANCH=$STAGING_BRANCH
|
||||||
|
fi
|
||||||
|
|
||||||
|
git_clone pillar-python-sdk $SDK_STAGING_BRANCH $SDK_DIR
|
||||||
git_clone pillar $STAGING_BRANCH $PILLAR_DIR
|
git_clone pillar $STAGING_BRANCH $PILLAR_DIR
|
||||||
git_clone attract $STAGING_BRANCH $ATTRACT_DIR
|
git_clone attract $STAGING_BRANCH $ATTRACT_DIR
|
||||||
git_clone flamenco $STAGING_BRANCH $FLAMENCO_DIR
|
git_clone flamenco $STAGING_BRANCH $FLAMENCO_DIR
|
||||||
|
Reference in New Issue
Block a user