sjyangkevin opened a new issue, #55351:
URL: https://github.com/apache/airflow/issues/55351

   ### Apache Airflow Provider(s)
   
   jenkins
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-jenkins==4.1.2
   
   ### Apache Airflow version
   
   3.0.6
   
   ### Operating System
   
   Ubuntu 22.04.3 LTS
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   Follow the Airflow documentation to run Airflow with Docker: 
https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html
   
   ### What happened
   
   Cannot find where to set schema in Airflow UI when defining Jenkins 
connection. Maybe the field is hidden?
   
   <img width="891" height="786" alt="Image" 
src="https://github.com/user-attachments/assets/bf7d187f-a12e-4870-a46c-9f9ba58f7c1f";
 />
   
   <img width="895" height="571" alt="Image" 
src="https://github.com/user-attachments/assets/8c7f4d88-3f47-449d-a4d4-fab5cf1a5d89";
 />
   
   <img width="892" height="717" alt="Image" 
src="https://github.com/user-attachments/assets/51cfa203-503b-46ee-8273-f0c418b0ca49";
 />
   
   If the `schema` is not specified, the connection to Jenkins server to failed 
due to it is being added to the URL as `None`, as shown in the screenshot below.
   <img width="1576" height="389" alt="Image" 
src="https://github.com/user-attachments/assets/f37474cd-1b45-45ad-a439-2d8020eb578a";
 />
   
   
https://github.com/apache/airflow/blob/69bdd6bc04db34f764f64c34b7d1cd79cc372e2b/providers/jenkins/src/airflow/providers/jenkins/hooks/jenkins.py#L48-L72
   
   ### What you think should happen instead
   
   We should be able to specify `schema` in the UI, so it will not be rendered 
as `None` in the connection string. If the `schema` is optional. Then, we also 
should not put it into the connection string if its value is `None`.
   
   ### How to reproduce
   
   Run Airflow through the Docker compose deployment, or in breeze development 
environment. Install Jenkins provider, and attempt to set the connection. The 
following DAG may be helpful to re-produce the error.
   
   
https://github.com/apache/airflow/blob/main/providers/jenkins/tests/system/jenkins/example_jenkins_job_trigger.py
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to