Skip to content

Pretested checkout should fail if git is configured wrong #135

@zlepper

Description

@zlepper

When Jenkins does the checkout so it can merge ready branches into the integration branch, it attempts to do a new commit. However if git credentials has not been configured on the server, this commit will fail with a message that tells the user to configure git user.name and user.email.

If this happens jenkins still proceed with the rest of the pipeline, instead of actually marking the stage failed. The rest of the pipeline will run successfully, until it attempts to push things back to git. Here Pretested will complain [PREINT] Build result not satisfied - skipped post-build step..

The main problem with this is that it can be extremely difficult to debug, as none of the previous stages apparently didn't fail, you have to read the log pretty closely to actually find the issue.

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