后端jar方式
打包
PACKAGE_NAME=cloud-eureka.jar # 归档的包名
# 上传云存储
python /home/shell/upload_source_package.py $JOB_BASE_NAME $GIT_COMMIT $WORKSPACE/target/$PACKAGE_NAME
rm -rf /data/k8s/$JOB_BASE_NAME/$PACKAGE_NAME
cp ./target/$PACKAGE_NAME /data/k8s/$JOB_BASE_NAME/
cd /data/k8s/$JOB_BASE_NAME
sh /home/shell/upload_ali_images.sh $JOB_BASE_NAME $GIT_COMMIT
标签:NAME,项目,部署,PACKAGE,JOB,BASE,jenkins,k8s,data
From: https://www.cnblogs.com/devopsyyds/p/16835774.html