Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dynamic-Mobile-Security/9730e8eaa1b5d5f7f21e28beb63561a8 to your computer and use it in GitHub Desktop.
Save Dynamic-Mobile-Security/9730e8eaa1b5d5f7f21e28beb63561a8 to your computer and use it in GitHub Desktop.
Upload mobile app to maven repo
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