./ gradlew clean :app:generateStagingDebugSources :app:generateStagingDebugAndroidTestSources :app:mockableAndroidJar :app:assembleStagingDebug
cd /var/lib/jenkins/workspace/yourproject
export CHANGE_LOG="$(git log -1 --pretty=format:%s $GIT_COMMIT)"
export NEW_BRANCH=echo $GIT_BRANCH | awk -Forigin/ '{print $2}'
export DATE_TIME=$(date +%d-%m-%Y--%T)
curl -H "Content-Type: application/json" -X POST -d '{"name":"'$BUILD_NUMBER'", "link":"http://ci.example.com:8080/job/yourproject/'$BUILD_NUMBER'/artifact/app/build/outputs/apk/staging/debug/app-staging-debug.apk", "branch":"'"$NEW_BRANCH"'", "production": false, "platform":"android", "changelog":"'"$CHANGE_LOG"'", "date":"'$DATE_TIME'"}' http://yourprojects.com.br/
**/*debug.apk
brunomartins84[at]yahoo[dot]com[dot]br