jenkins 删除

  • 删除workspace
    rm -rf workspace/
  • 删除war包
    find jobs/ -name “” |grep -v config.xml |grep -v lastStableBuild|grep -v lastUnsuccessfulBuild|grep -v lastSuccessfulBuild|grep “.war$”|xargs rm -rf
  • 删除jar包
    find jobs/ -name “” |grep -v config.xml |grep -v lastStableBuild|grep -v lastUnsuccessfulBuild|grep -v lastSuccessfulBuild|grep “.jar$”|xargs rm -rf

Leave a Reply

Your email address will not be published. Required fields are marked *