Skip to content

Commit

Permalink
Check
Browse files Browse the repository at this point in the history
  • Loading branch information
ozonophore committed May 28, 2024
1 parent d8e245a commit 649b44f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const val BITBUCKET = "bitbucket"
*/
object Configuration {

private val logger = LoggerFactory.getLogger(Configuration::class.java)

val model: ConfigModel by lazy {
val yaml = Yaml()
val inputStream = ConfigModel::class.java.getClassLoader().getResourceAsStream(PROPERTY_FILE)
Expand All @@ -32,7 +30,7 @@ object Configuration {
configModel.gitlab.host = System.getProperty("gitlabHost", configModel.gitlab.host)
configModel.gitlab.url = System.getProperty("gitlabUrl", configModel.gitlab.url)
configModel.vcsFacadeUrl = System.getProperty("vcsFacadeUrl", configModel.vcsFacadeUrl)
logger.info("Configuration: $configModel")
throw IllegalArgumentException("Unknown VCS type: ${configModel.vcsFacadeUrl}")
return configModel
}
}
Expand Down

0 comments on commit 649b44f

Please sign in to comment.