Skip to content

Instantly share code, notes, and snippets.

@Matrix7867
Created July 26, 2020 10:23
Show Gist options
  • Save Matrix7867/775a4486fb0c2bec282829ea4f234426 to your computer and use it in GitHub Desktop.
Save Matrix7867/775a4486fb0c2bec282829ea4f234426 to your computer and use it in GitHub Desktop.
copy_aritifact_to_jump_server
stage('CopyArtifactToJump') {
steps {
sshagent(credentials : ['18dddd8d7-d912-4123-bf66-303cvvvvv']) {
sh 'ssh -o StrictHostKeyChecking=no jenkins-sl@172.16.1.11 uptime'
sh 'scp /jenkins-home/workspace/dev-build/*.tar jenkins-sl@172.16.3.3:/home/jenkins-sl/workspace/volan/'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment