Skip to content

jenkins/jenkins-job-trigger HTTP failure should not be silent #2681

@JanZerebecki

Description

@JanZerebecki

After looking at #2679 it seems to me from the logs that when

server.build_job(job_name, job_parameters)
fails to create a job when the HTTPS certificate is expired it doesn't print any output. But it should. Also I'm unsure whether it correctly sets a failure exit return value.

The request is made around here: https://github.com/openstack/python-jenkins/blob/1.2.1/jenkins/__init__.py#L543
I would expect an SSLError exception or something to be printed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions