Skip to content

Keep the behaviour of unstable calls #107

@pgbastante

Description

@pgbastante

Desired Behavior

unstable jenkins call is being mocked by jenkins-spock (as it is supposed to) but by doing this the currentBuild.status/currentBuild.result variable is not updated when unstable is called so any pipeline script that depends on this mechanism will not be able to check if the script worked or not. In my case, I catch all exceptions so the noExceptionThrown() for the then block is not enougth.

The request is to provide a way to keep the behaviour of unstable or at least keep the update of theese variables

Benefits

As I mentioned, allow the update of the currentBuild.status/currentBuild.result variables during test and check them to assert the correct execution of the test

Hope you can help. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions