re: How-To: Setup a unit-testable Jenkins shared pipeline library VIEW POST

FULL DISCUSSION
 

Hi Adrian

Thank you very much for the article.
I'm maintaining a shared library that I'd like to test more. I like your solution very much.

Some of my vars use the openshift client plugin. github.com/openshift/jenkins-clien...

openshift.withCluster() {
   openshift.withProject() {
      openshift.raw("project")
   }
}

I was looking for a way to mock the calls to the openshift variable, but didn't find a way how to do that.

Have you ever tried something like that? / Do you have an idea how to do that?

code of conduct - report abuse