Last active
March 4, 2021 09:10
-
-
Save Dynamic-Mobile-Security/9730e8eaa1b5d5f7f21e28beb63561a8 to your computer and use it in GitHub Desktop.
Upload mobile app to maven repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deploy_to_nexus() { | |
echo "deploy_to_nexus" | |
packaging="apk" | |
file_name="app-prod-debug.apk" | |
groupId="com.appsec.mobile" | |
artifactId="app-prod-debug" | |
war_version="1.0" | |
mvn deploy:deploy-file -DgeneratePom=true -DrepositoryId=maven-dev -Durl=https://nexus.dev.dynamicmobilesecurity.com/repository/maven-releases/ \ | |
-Dpackaging=$packaging \ | |
-Dfile=$file_name \ | |
-DgroupId=$groupId \ | |
-DartifactId=$artifactId \ | |
-Dversion=$war_version \ | |
|| exit 1 | |
} | |
deploy_to_nexus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment