Maria Rebelka created AIRFLOW-3639:
--------------------------------------
Summary: Jenkins Operator does not set up "Authorization" header
correctly
Key: AIRFLOW-3639
URL: https://issues.apache.org/jira/browse/AIRFLOW-3639
Project: Apache Airflow
Issue Type: Bug
Components: contrib, operators
Affects Versions: 1.10.1
Reporter: Maria Rebelka
Assignee: Maria Rebelka
When working with Jenkins with security enabled, auth header is missing and
Jenkins rejects the request.
In Jenkins operator, function jenkins_request_with_headers creates request
manually, and authentication mechanism against Jenkins server never
initialised, resulting jenkins_server.auth being 'None'.
{code:python}
if jenkins_server.auth:
req.add_header('Authorization', jenkins_server.auth)
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)