I am extracting the contents of my Jenkinsfile to a common library to reuse it in a number of projects. I have a build step that may be deactivated related on some user input and this is done via when
This works fine when using the Jenkinsfile but does not as soon as i put it in a library
this is the content of the sharedLibrary:
but i get
anything i am missing?