How this code works in groovysh:
whatever: { x = 1+1 }
I dont understand how Groovy execute this closure and how interpreted this:'\<anyText\> :'. For calling closure used () or call() according documentation. Groovy doesnt have ':' operator.
I seen this this code in Jenkinsfile and tried to analyze it. I used groovysh, code is worked, and i dont understand how it works.