superlint/test/linters/groovy/groovy_good_02.groovy

13 lines
268 B
Groovy
Raw Normal View History

import groovy.text.*
import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
@Library('somelib')
import com.mycorp.pipeline.somelib.Helper
int useSomeLib(Helper helper) {
helper.prepare()
return helper.count()
}
echo useSomeLib(new Helper('some text'))