Maven清理脚本

#!/bin/sh

# Clean /root/.jenkins/workspace/ AND /opt/mavenrepo/net/freeapis/  directory

rm -rf /root/.jenkins/workspace/* && echo "本机Jenkins缓存已经清空"
rm -rf /opt/mavenrepo/net/freeapis/* && echo "本机maven仓库缓存已经清空"
ssh 192.168.2.140 "/script/clean_JenkinsAndMavenrepo.sh" && echo "Jenkins从属服务器2.140缓存已经清空"
posted @ 2018-07-31 09:55  一王小可一  阅读(1234)  评论(0编辑  收藏  举报