You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
This is more of a question than an issue, and I couldn't find a better place to ask.
In some of our Jenkinsfiles we use functions outside of node() block, I know it's not a best practice, but anyway it looks like this:
We'd probably have to modify the implementation of getPipelineScriptForTest(...) to automatically inject imports for all of the classes that Jenkins does. That would be a good thing for jenkins-spock to do, for completeness' and correctness' sake.
Hi,
This is more of a question than an issue, and I couldn't find a better place to ask.
In some of our Jenkinsfiles we use functions outside of
node()
block, I know it's not a best practice, but anyway it looks like this:Jenkinsfile
is there any way to test this function in jenkins-spock without having to add:
import com.cloudbees.groovy.cps.NonCPS;
To the Jenkinsfile?
I guess it is a similar issue to #21 (comment)
The text was updated successfully, but these errors were encountered: