1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-11-24 08:52:14 +02:00

IgnoreCase deserialization

fix
This commit is contained in:
Nikita Gryzlov 2020-04-17 15:53:21 +03:00
parent 06d78d2ba1
commit 13eaf45115
No known key found for this signature in database
GPG Key ID: C1EAE411FEF0BF2F

View File

@ -1,6 +1,7 @@
package ru.pulsar.jenkins.library.configuration
import com.cloudbees.groovy.cps.NonCPS
import com.fasterxml.jackson.databind.MapperFeature
import com.fasterxml.jackson.databind.ObjectMapper
import org.apache.commons.beanutils.BeanUtils
import ru.pulsar.jenkins.library.IStepExecutor
@ -8,7 +9,12 @@ import ru.pulsar.jenkins.library.ioc.ContextRegistry
class ConfigurationReader implements Serializable {
private static ObjectMapper mapper = new ObjectMapper()
private static ObjectMapper mapper
static {
mapper = new ObjectMapper()
mapper.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true);
}
private static final String DEFAULT_CONFIGURATION_RESOURCE = 'globalConfiguration.json'
static JobConfiguration create() {