Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_connection_form_widgets(cls) -> dict[str, Any]:
def get_ui_field_behaviour(cls) -> dict[str, Any]:
"""Return custom UI field behaviour for Jenkins connection."""
return {
"hidden_fields": ["schema", "extra"],
"hidden_fields": ["extra"],
"relabeling": {},
"placeholders": {
"login": "Login for the Jenkins service you would like to connect to",
Expand All @@ -67,7 +67,9 @@ def __init__(self, conn_id: str = default_conn_name) -> None:
# connection.extra contains info about using https (true) or http (false)
if connection.extra_dejson.get("use_https"):
connection_prefix = "https"
url = f"{connection_prefix}://{connection.host}:{connection.port}/{connection.schema}"
url = f"{connection_prefix}://{connection.host}:{connection.port}"
if connection.schema:
url = f"{url}/{connection.schema}"
self.log.info("Trying to connect to %s", url)
self.jenkins_server = jenkins.Jenkins(url, connection.login, connection.password)

Expand Down