下面的groovy可以加在post groovy script里面在job跑完的时候自杀(把本Job删掉)

suicide_url="http://[USER]:[PASSWORD]@[JENKINS_URL]/job/"+manager.build.project.name+"/doDelete"
suicide_shell="curl-XPOST\\"${url}\\""
['/bin/sh','-c',suicide_shell].execute()

 

相关文章:

  • 2021-03-30
  • 2021-04-16
  • 2021-10-17
  • 2022-12-23
  • 2021-05-01
  • 2022-12-23
  • 2021-08-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2021-06-04
相关资源
相似解决方案