svn update
svn status
ls -al
svn log --limit 8 > RELEASE_NOTE.txt
cat RELEASE_NOTE.txt
chmod a+x gradlew
pwd
project_name_prefix="${APP_PROJECT_NAME}_${VERSIONNAME}_${VERSIONCODE}"
#build_pre
sed -i 's/android:versionCode=".*"/android:versionCode="'${VERSIONCODE}'"/' AndroidManifest.xml
sed -i 's/android:versionName=".*"/android:versionName="'${VERSIONNAME}'"/' AndroidManifest.xml
sed -i 's/keyAlias ".*"/keyAlias "scansdkpubkey"/' build.gradle
sed -i 's/keyPassword ".*"/keyPassword "acsscansdk"/' build.gradle
cat src/com/baidu/security/scansdk/config/FeatureConfig.java
cat AndroidManifest.xml
cat build.gradle
./gradlew clean aR
cd build/outputs/apk
ls
mv avscan-plugin-apk-studio-release.apk avscan-plugin.apk
tar czvf ${project_name_prefix}.tar.gz avscan-plugin.apk ../../../libs/avscan-plugin.jar ../../../RELEASE_NOTE.txt
#mv ${project_name_prefix}.apk ${WORKSPACE}/output/
mv ${project_name_prefix}.tar.gz /home/jenkins/publish/sdk
svn copy https://xxxxxxx/branches/client/${APP_BRANCH} https://xxxxxxxxxx/tags/client/${project_name_prefix}_PD_BL/ -m "make tag for ${project_name_prefix}"
#build_post
# pubilsh by http
# mv ${WORKSPACE}/output/* /home/jenkins/publish/sdk