Skip to content

Job retry method should return created job #825

@PavelGloba

Description

@PavelGloba

Description of the problem, including code/CLI snippet

There should be a way to get an id of a freshly created job, when the retry method is used, like it's done for creating a new pipeline.

>>> job = project.jobs.get('7659')
>>> q = job.retry()
>>> print(q)
None

Expected Behavior

Job retrying returns RESTObject

Actual Behavior

Job retrying returns nothing

Specifications

  • python-gitlab version: 1.9.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): 11.8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions