2019独角兽企业重金招聘Python工程师标准>>>
git config user.name "jenkins"
git config user.email "jenkins@gerrit.XXX.net" cp $JENKINS_HOME/maven.properties $WORKSPACE
cp $JENKINS_HOME/maven.properties $WORKSPACE/app
cp $JENKINS_HOME/maven.properties $WORKSPACE/test
cp $JENKINS_HOME/maven.properties $WORKSPACE/demo
cp $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" ] ;thenecho "No model_files"
elseIFS=','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\./")"done
fi
tar cvf ${builddir}/assets.tar -C ${builddir} assetschmod a+x gradlew
cd 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