I am working on Python BDD with selenium, and I am using
self.driver = webdriver.Chrome(
    service=ChromeService(
        ChromeDriverManager().install()
    ),
    options=chrome_options
)
to launch the chrome browser. This is working fine when it is running in local but when I try to run it through Jenkins I get the following error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection
    raise err
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
    sock.connect(sa)
OSError: [Errno 101] Network is unreachable
I tried to change the proxy setting in Jenkins but still facing the problem.
 
    