-
Notifications
You must be signed in to change notification settings - Fork 386
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
Add support for mocking library with mapped args #422
Add support for mocking library with mapped args #422
Conversation
Amazing! Thanks |
@dblock regarding the |
def lib = library(identifier: 'commons', changelog: false) | ||
def utils = lib.net.courtanet.jenkins.Utils.new() | ||
sh "${utils.gitTools()}" | ||
sh 'sleep 3' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What’s this sleep about? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dunno, I just copy/pasted it from another library test. 🙈 However, let's keep things simple; I'll remove the line (see fixup).
I think it’s definitely enough and we can add later the other stubs. I am not super familiar whether one expects |
|
b922359
to
34f1130
Compare
This PR adds support for mocking the
library
step when called with mapped arguments.Fixes #418, FYI @dblock