#!/bin/sh -e # upload_core_ui_frameworks.sh # # Uploads all compiled framework flavors in MVMCoreUI to Artifactory with the SNAPSHOT classifier. This is to avoid accidently clobbering a release build of a particular version. Remove the classifier in Artificatory to make a release. # # Copied from Hedden, Kyle Matthew on 3/2/18. # BUILD_SETTINGS=$(xcodebuild -showBuildSettings -project ../VDS.xcodeproj) FRAMEWORK_VERSION=$(echo "$BUILD_SETTINGS" | grep -w -o 'MARKETING_VERSION = .*' | cut -d\ -f3-) if [ $(git tag --list | grep "v${FRAMEWORK_VERSION}") ]; then echo This version tag has already been committed! Aborting! exit 1 fi # Create new aggregate builds if [ -z $ARTIFACTORY_URL ]; then ARTIFACTORY_URL="https://oneartifactoryci.verizon.com/artifactory" fi # Upload BUILD_DIR=$(echo "$BUILD_SETTINGS" | grep -w -o 'BUILD_DIR = .*' | cut -d\ -f3-) ./upload_framework.sh $ARTIFACTORY_URL "${BUILD_DIR}/universal/VDS.xcframework" BPHV_MobileFirst_IOS/com/vzw/hss/myverizon/VDS/[VER]/VDS-[VER]-Debug-SNAPSHOT $FRAMEWORK_VERSION