From c018996e06893bcac46a16226101267c4e503036 Mon Sep 17 00:00:00 2001 From: Alexander Ryabokon Date: Wed, 29 May 2024 12:06:38 +0300 Subject: [PATCH] Fix VCS Facade URL parameter (#8) --- .../octopus/jira/vcs/config/PluginProperty.kt | 20 ++++++++++--------- src/main/resources/plugin.properties | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/main/kotlin/org/octopusden/octopus/jira/vcs/config/PluginProperty.kt b/src/main/kotlin/org/octopusden/octopus/jira/vcs/config/PluginProperty.kt index 0bbe72b..b57e89a 100644 --- a/src/main/kotlin/org/octopusden/octopus/jira/vcs/config/PluginProperty.kt +++ b/src/main/kotlin/org/octopusden/octopus/jira/vcs/config/PluginProperty.kt @@ -1,17 +1,19 @@ package org.octopusden.octopus.jira.vcs.config -enum class PluginProperty(val key: String, val displayName: String, val sensitive: Boolean) { - VCS_FACADE_API_URL("vcs-facade.api.url", "VCS Facade API URL", false), +enum class PluginProperty( + val key: String, + @Suppress("unused") val displayName: String, + @Suppress("unused") val sensitive: Boolean +) { + VCS_FACADE_API_URL("vcs-facade.url", "VCS Facade API URL", false), VCS_FACADE_RETRY_DELAY_MILLIS("vcs-facade.retry.delay.millis", "VCS Facade API retry timeout (msecs)", false), VCS_PANEL_DISPLAY("octopus-vcs-plugin.vcs-panel.show", "Display VCS Panel", false), - VCS_PANEL_CACHE_SUMMARY_EXPIRE_AFTER_SECS("octopus-vcs-plugin.vcs-panel.cache.summary.expire-after.secs", "VCS Panel Summary Cache Expire After (secs)", false), + VCS_PANEL_CACHE_SUMMARY_EXPIRE_AFTER_SECS( + "octopus-vcs-plugin.vcs-panel.cache.summary.expire-after.secs", + "VCS Panel Summary Cache Expire After (secs)", + false + ), VCS_PANEL_COMMIT_FILE_LIMIT("octopus-vcs-plugin.vcs-panel.commit.file-limit", "File limit per commit", false); - - companion object { - fun valueOfPropertyName(propertyName: String): PluginProperty? { - return entries.firstOrNull { it.key == propertyName } - } - } } diff --git a/src/main/resources/plugin.properties b/src/main/resources/plugin.properties index 76f1e00..e355b79 100644 --- a/src/main/resources/plugin.properties +++ b/src/main/resources/plugin.properties @@ -1,5 +1,5 @@ # used for FT and can be overridden via UI on production -vcs-facade.api.url=http://localhost:8765/vcs-facade +vcs-facade.url=http://localhost:8765/vcs-facade # used for FT and can be overridden via UI on production vcs-facade.retry.delay.millis=180 # used for FT and can be overridden via UI on production