mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
This reverts commit b760bf48e7
.
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
parent
547ef5b55d
commit
78c4a8fe93
@ -130,7 +130,6 @@ func getConfig() (config.StepConfig, error) {
|
||||
if GeneralConfig.MetaDataResolver == nil {
|
||||
GeneralConfig.MetaDataResolver = GetAllStepMetadata
|
||||
}
|
||||
log.Entry().Debugf("Trying to resolve metadata for step %s out of all metadata: %v", configOptions.stepName, GeneralConfig.MetaDataResolver())
|
||||
metadata, err := config.ResolveMetadata(GeneralConfig.GitHubAccessTokens, GeneralConfig.MetaDataResolver, configOptions.stepMetadata, configOptions.stepName)
|
||||
if err != nil {
|
||||
return stepConfig, errors.Wrapf(err, "failed to resolve metadata")
|
||||
|
@ -501,7 +501,6 @@ func ResolveMetadata(gitHubTokens map[string]string, metaDataResolver func() map
|
||||
}
|
||||
} else {
|
||||
if stepName != "" {
|
||||
log.Entry().Debugf("Resolving metadata for step: %s", stepName)
|
||||
if metaDataResolver == nil {
|
||||
return metadata, errors.New("metaDataResolver is nil")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user