import groovy.transform.Field //global variable @Field String OPSDEV = “opsdev”
这样,groovy里就创建了一个String类型的OPSDEV全局变量了。