git config user.name "jenkins"git config user.email "jenkins@gerrit.XXX.net" cp $JENKINS_HOME/maven.properties $WORKSPACEcp $JENKINS_HOME/maven.properties $WORKSPACE/appcp $JENKINS_HOME/maven.properties $WORKSPACE/testcp $JENKINS_HOME/maven.properties $WORKSPACE/democp $JENKINS_HOME/maven.properties $WORKSPACE/SmsDataStructurecp $JENKINS_HOME/local.properties $WORKSPACEecho ${model_files}#file_version="v1.0.${BUILD_ID}"assetsdir="$WORKSPACE/test/src/main/assets/"assets_target_builddir="$WORKSPACE/build/sdk_out_temp/${flavor}/assets/"builddir="$WORKSPACE/build/sdk_out_temp/${flavor}"rm -r "$WORKSPACE/build"mkdir -p $assets_target_builddirecho ${model_files}if [ ! -n "$model_files" ] ;then echo "No model_files"else IFS=',' for file in $model_files; do #echo $(echo $file | sed "s/\./_$file_version\./") cp $assetsdir/$file "$assets_target_builddir/$(echo $file | sed "s/\./_$file_version\./")" donefitar cvf ${builddir}/assets.tar -C ${builddir} assetschmod a+x gradlewcd test../gradlew clean assembleDebugcd ..cp "$WORKSPACE/test/build/outputs/apk/test-debug.apk" $builddirfolder="${branch##*/}/${flavor}/Jenkins_Job_${BUILD_ID}"echo "http://static.XXXXX.net/test/$folder" > $WORKSPACE/build/sdk_out_temp/${flavor}/test_link.txtssh root@XXXX "mkdir -p /data/test/$folder"scp -r $WORKSPACE/build/sdk_out_temp/${flavor}/* root@192.168.20.229:/data/test/$folder