version fix for upload
This commit is contained in:
parent
8fb9f7e605
commit
22f2b18057
@ -7,7 +7,8 @@
|
|||||||
# Copied from Hedden, Kyle Matthew on 3/2/18.
|
# Copied from Hedden, Kyle Matthew on 3/2/18.
|
||||||
#
|
#
|
||||||
|
|
||||||
FRAMEWORK_VERSION=$(cd ../MVMCore && agvtool vers -terse)
|
BUILD_SETTINGS=$(xcodebuild -showBuildSettings -project ../MVMCore/MVMCore.xcodeproj)
|
||||||
|
FRAMEWORK_VERSION=$(echo "$BUILD_SETTINGS" | grep -w -o 'MARKETING_VERSION = .*' | cut -d\ -f3-)
|
||||||
if [ $(git tag --list | grep "v${FRAMEWORK_VERSION}") ]; then
|
if [ $(git tag --list | grep "v${FRAMEWORK_VERSION}") ]; then
|
||||||
echo This version tag has already been committed! Aborting!
|
echo This version tag has already been committed! Aborting!
|
||||||
exit 1
|
exit 1
|
||||||
@ -19,5 +20,5 @@ if [ -z $ARTIFACTORY_URL ]; then
|
|||||||
ARTIFACTORY_URL="https://oneartifactoryprod.verizon.com/artifactory"
|
ARTIFACTORY_URL="https://oneartifactoryprod.verizon.com/artifactory"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BUILD_DIR=$(xcodebuild -showBuildSettings -project ../MVMCore/MVMCore.xcodeproj | grep -w -o 'BUILD_DIR = .*' | cut -d\ -f3-)
|
BUILD_DIR=$(echo "$BUILD_SETTINGS" | grep -w -o 'BUILD_DIR = .*' | cut -d\ -f3-)
|
||||||
./upload_framework.sh $ARTIFACTORY_URL "${BUILD_DIR}/universal/MVMCore.xcframework" BPHV_MobileFirst_IOS/com/vzw/hss/myverizon/MVMCore/[VER]/MVMCore-[VER]-Debug-SNAPSHOT
|
./upload_framework.sh $ARTIFACTORY_URL "${BUILD_DIR}/universal/MVMCore.xcframework" BPHV_MobileFirst_IOS/com/vzw/hss/myverizon/MVMCore/[VER]/MVMCore-[VER]-Debug-SNAPSHOT
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user