Skip to content

Instantly share code, notes, and snippets.

@evasilchenko
Created December 19, 2016 03:47
Show Gist options
  • Save evasilchenko/652215b84d2f1ea1b270fe87373bc358 to your computer and use it in GitHub Desktop.
Save evasilchenko/652215b84d2f1ea1b270fe87373bc358 to your computer and use it in GitHub Desktop.
stage ("Copy Artifact file to Repo") {
node {
def deployTarget = '<target repo server to copy file to>',
deployFolder = '<absolute path to target folder which will store all artifacts files>'
sh "scp ${applicationZip} jenkins@${deployTarget}:${deployFolder}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment