Skip to content

Instantly share code, notes, and snippets.

@sanjaygeeky
Created August 4, 2020 15:00
Show Gist options
  • Save sanjaygeeky/ef62549a3c455c372a7c231590f089f0 to your computer and use it in GitHub Desktop.
Save sanjaygeeky/ef62549a3c455c372a7c231590f089f0 to your computer and use it in GitHub Desktop.
docker.withRegistry('https://index.docker.io/v1/', 'dockerlogin') {
def dockerImage = docker.build("xxxxxx/xxxxx:v${env.BUILD_ID}", "./")
dockerImage.push()
dockerImage.push("latest")
}
@sanjaygeeky
Copy link
Author

This script is used for arbitrary pipeline for archive stage as part of docker and Jenkins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment