jenkins中使用shell的try命令

{ 
   rm  test.sh
} || { 
    echo  "文件不存在"
}

 

posted @ 2021-06-23 17:48  Tarzen  阅读(84)  评论(0编辑  收藏  举报