Jenkins: scanning tasks on Package phase + groovy