DEV Community

Discussion on: What Tools Do You Use To Validate Jenkins Pipeline Syntax

Collapse
 
cvega profile image
Casey Vega

Adding your code to a global shared library assumes the code is "trusted" meaning you should not have to validate each and every call outside of the sandbox.

jenkins.io/doc/book/pipeline/share...

"These libraries are considered "trusted:" they can run any methods in Java, Groovy, Jenkins internal APIs, Jenkins plugins, or third-party libraries. This allows you to define libraries which encapsulate individually unsafe APIs in a higher-level wrapper safe for use from any Pipeline"

Collapse
 
dmfay profile image
Dian Fay

That looks new! The Jenkins instance I was working with was a couple years old and I don't remember seeing anything like that functionality.