testtry.groovy
try{ def giturl=repo }catch (Exception e){ println e }
the var repo is null ,it is not predictable , I want that it can be