feat(pipeline): enhance dependency resolution with caching support in executeFreeleapsPipeline
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
7ed8ecb671
commit
99f6534370
@ -141,7 +141,23 @@ def generateComponentStages(component, configurations) {
|
|||||||
sourceFetcher.fetch(configurations)
|
sourceFetcher.fetch(configurations)
|
||||||
|
|
||||||
def linterType = CodeLinterTypes.parse(component.linter)
|
def linterType = CodeLinterTypes.parse(component.linter)
|
||||||
|
def language = ServiceLanguage.parse(component.language)
|
||||||
|
|
||||||
|
def depManager = DependenciesManager.parse(component.dependenciesManager)
|
||||||
|
|
||||||
|
// resolving deps from cache
|
||||||
|
def dependenciesResolver = new DependenciesResolver(this, language, env.workroot + "/" + component.root + "/")
|
||||||
|
dependenciesResolver.useManager(depManager)
|
||||||
|
|
||||||
|
if (component.buildCacheEnabled) {
|
||||||
|
dependenciesResolver.enableCachingSupport()
|
||||||
|
} else {
|
||||||
|
dependenciesResolver.disableCachingSupport()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependenciesResolver.resolve(component)
|
||||||
|
|
||||||
|
// lint codes
|
||||||
def codeLintExecutor = new CodeLintExecutor(this, env.workroot + "/" + component.root + "/", component.linterConfig, linterType, component)
|
def codeLintExecutor = new CodeLintExecutor(this, env.workroot + "/" + component.root + "/", component.linterConfig, linterType, component)
|
||||||
codeLintExecutor.execute()
|
codeLintExecutor.execute()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user