Skip to content

Commit

Permalink
Fix VCS Facade URL parameter (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryabokon committed May 29, 2024
1 parent 90b7bd6 commit c018996
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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 }
}
}
}
2 changes: 1 addition & 1 deletion src/main/resources/plugin.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c018996

Please sign in to comment.