Skip to content

Instantly share code, notes, and snippets.

@moondev
Last active April 6, 2017 20:52
Show Gist options
  • Save moondev/d48a0fa2d11ac4842aaa4a8d187cba33 to your computer and use it in GitHub Desktop.
Save moondev/d48a0fa2d11ac4842aaa4a8d187cba33 to your computer and use it in GitHub Desktop.
jenkinsfunctions.groovy
def buildImage(registry, imageName, tagName) {
sh "docker build -t ${registry}/${imageName}:${tagName} ."
}
return this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment