To call a Groovy-script in Jenkinsfile, I need to extend a file with shared libraries via @Library-import:
@Library(['my-custom-library']) _
How to call a Groovy script from a Jenkins Pipeline YAML-config?
Is it possible to import a custom library into YAML-config to extend a pipeline functionality?