2016-01-12 47 views

回答

1

Groovy Postbuild插件公開一個名爲manager的變量,該變量可用於訪問Jenkins對象。查看插件的wiki頁面details

要構建結果設置爲NOT_BUILT,這樣做:

manager.build.result = hudson.model.Result.NOT_BUILT