How to manipulate the build result of a Jenkins pipeline job (back to 'SUCCESS')?

前端 未结 5 1532
温柔的废话
温柔的废话 2020-11-28 14:20

I\'m having some trouble to manipulate the build result of a Jenkins pipeline. I\'ve narrowed it down to the following issue: anyone know why the following Jenkins pipeline

5条回答
  •  一向
    一向 (楼主)
    2020-11-28 14:50

    For simplier answer, just get raw build, and set field directly:

    currentBuild.rawBuild.@result = hudson.model.Result.SUCCESS
    

提交回复
热议问题