refactor(executeFreeleapsPipeline): update closure handling to initialize configurations as a Map
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
5a63bf8d33
commit
d6e86827ac
@ -7,7 +7,11 @@ import com.freeleaps.devops.enums.ServiceLanguage
|
||||
import com.freeleaps.devops.CommitMessageLinter
|
||||
import com.freeleaps.devops.ChangedComponentsDetector
|
||||
|
||||
def call(Closure configurations) {
|
||||
def call(Closure closure) {
|
||||
def configurations = [:]
|
||||
closure.resolveStrategy = Closure.DELEGATE_FIRST
|
||||
closure.delegate = configurations
|
||||
closure()
|
||||
|
||||
def sourceFetcher = new SourceFetcher(this)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user