1 新建项目android
#cat android.sh
#!/bin/bash
rm -rf /data/.jenkins/workspace/android/app/build/outputs/apk/debug/*
rm -rf /data/.jenkins/workspace/android/app/build/outputs/apk/release/*
cd /data/.jenkins/workspace/android/app
source /etc/profile
gradle build
sleep 2
cd /data/.jenkins/workspace/android/app
gradle clean
2点击 构建任务