Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep the behaviour of unstable calls #107

Open
pgbastante opened this issue Sep 2, 2021 · 0 comments
Open

Keep the behaviour of unstable calls #107

pgbastante opened this issue Sep 2, 2021 · 0 comments

Comments

@pgbastante
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant