Skip to content

Commit 0fcb459

Browse files
Migrate Jenkins connection UI metadata to YAML (#62432)
1 parent 77e057f commit 0fcb459

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

providers/jenkins/provider.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,20 @@ sensors:
9393
connection-types:
9494
- hook-class-name: airflow.providers.jenkins.hooks.jenkins.JenkinsHook
9595
connection-type: jenkins
96+
ui-field-behaviour:
97+
hidden-fields:
98+
- extra
99+
relabeling: {}
100+
placeholders:
101+
login: Login for the Jenkins service you would like to connect to
102+
password: Password for the Jenkins service you would like to connect too
103+
host: Host for your Jenkins server. Should NOT contain scheme (http:// or https://)
104+
port: Specify a port number
105+
conn-fields:
106+
use_https:
107+
label: Use Https
108+
description: Specifies whether to use https scheme. Defaults to http
109+
schema:
110+
type:
111+
- boolean
112+
- 'null'

providers/jenkins/src/airflow/providers/jenkins/get_provider_info.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,23 @@ def get_provider_info():
5050
{
5151
"hook-class-name": "airflow.providers.jenkins.hooks.jenkins.JenkinsHook",
5252
"connection-type": "jenkins",
53+
"ui-field-behaviour": {
54+
"hidden-fields": ["extra"],
55+
"relabeling": {},
56+
"placeholders": {
57+
"login": "Login for the Jenkins service you would like to connect to",
58+
"password": "Password for the Jenkins service you would like to connect too",
59+
"host": "Host for your Jenkins server. Should NOT contain scheme (http:// or https://)",
60+
"port": "Specify a port number",
61+
},
62+
},
63+
"conn-fields": {
64+
"use_https": {
65+
"label": "Use Https",
66+
"description": "Specifies whether to use https scheme. Defaults to http",
67+
"schema": {"type": ["boolean", "null"]},
68+
}
69+
},
5370
}
5471
],
5572
}

0 commit comments

Comments
 (0)