Created
April 4, 2019 15:34
-
-
Save baumato/9271383bfeb344bd7f8e6b28a83a9d4a to your computer and use it in GitHub Desktop.
Jenkinsfile: Load groovy library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//In Jenkinsfile: | |
def gitlab() { | |
return load("jenkins/library/gitlab.groovy") | |
} | |
//In jenkinks/library/gitlab.groovy: | |
def veryGoodMethods() { | |
// ... | |
} | |
// do not forget | |
return this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment