jenkins是使用ssh连接服务器后,如果使用grep获取进程并kill时,会jenkins Exec exit status not zero. Status [-1],解决办法:在获取进程时,使用grep -v grep进行反向过滤,就不会kill掉jenkins的进程了

eg:ps -ef|grep mall-mg | grep -v grep | awk '{print $2}'

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2021-07-04
猜你喜欢
  • 2021-09-11
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
相关资源
相似解决方案