Slackbot
04/05/2022, 12:48 PMDmitry Trubin
04/05/2022, 12:50 PMtheTask
is a lifecycle task and is actually supposed to be invoked by user (be it a human or CI server), but I am actually looking for general recommendations.vierbergenlars
04/05/2022, 12:53 PMdoFirst{}
you can check if the conditions to actually execute the task are fulfilled. If not, throw an exception to fail the build before the task is executed.ephemient
04/05/2022, 12:57 PMenabled = false
(eagerly configured) and onlyIf { false }
(lazily evaluated) to ensure that the task is not executedephemient
04/05/2022, 12:57 PM