mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2024-11-30 09:46:41 +02:00
15 lines
477 B
Groovy
15 lines
477 B
Groovy
import ru.pulsar.jenkins.library.configuration.ConfigurationReader
|
|
import ru.pulsar.jenkins.library.configuration.JobConfiguration
|
|
import ru.pulsar.jenkins.library.ioc.ContextRegistry
|
|
|
|
JobConfiguration call(String path = "jobConfiguration.json") {
|
|
ContextRegistry.registerDefaultContext(this)
|
|
|
|
if (fileExists(path)) {
|
|
def config = readFile(path)
|
|
return ConfigurationReader.create(config)
|
|
} else {
|
|
return ConfigurationReader.create()
|
|
}
|
|
|
|
} |