Last active
February 26, 2020 16:41
-
-
Save zett42/5961bc1e9f6a19c38ff7a92145ea6318 to your computer and use it in GitHub Desktop.
Call groovy function from Jenkins pipeline
This file contains 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
pipeline { | |
agent any | |
stages { | |
stage('Test') { | |
steps { | |
myfun() | |
} | |
} | |
} | |
} | |
void myfun() { | |
echo "It works!" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment