mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
fix: use correct metadata resolver (#3342)
* fix something * add default metadata resolver Co-authored-by: ffeldmann <f.feldmann@sap.com>
This commit is contained in:
parent
79f7ccd0f5
commit
d0762f5db9
@ -127,7 +127,10 @@ func getConfig() (config.StepConfig, error) {
|
||||
|
||||
} else {
|
||||
log.Entry().Infof("Printing stepName %s", configOptions.stepName)
|
||||
metadata, err := config.ResolveMetadata(GeneralConfig.GitHubAccessTokens, GetAllStepMetadata, configOptions.stepMetadata, configOptions.stepName)
|
||||
if GeneralConfig.MetaDataResolver == nil {
|
||||
GeneralConfig.MetaDataResolver = GetAllStepMetadata
|
||||
}
|
||||
metadata, err := config.ResolveMetadata(GeneralConfig.GitHubAccessTokens, GeneralConfig.MetaDataResolver, configOptions.stepMetadata, configOptions.stepName)
|
||||
if err != nil {
|
||||
return stepConfig, errors.Wrapf(err, "failed to resolve metadata")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user