How to call Groovy script from Jenkins Pipeline YAML-config?

Viewed 35

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?

0 Answers
Related