Skip to content

Instantly share code, notes, and snippets.

@zett42
Last active February 26, 2020 16:41
Show Gist options
  • Save zett42/5961bc1e9f6a19c38ff7a92145ea6318 to your computer and use it in GitHub Desktop.
Save zett42/5961bc1e9f6a19c38ff7a92145ea6318 to your computer and use it in GitHub Desktop.
Call groovy function from Jenkins pipeline
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